org.lexgrid.loader.processor
Class EntityAssnsToEntityProcessor<I>

java.lang.Object
  extended by org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
      extended by org.lexgrid.loader.processor.AbstractSupportedAttributeRegisteringProcessor<I,ParentIdHolder<AssociationSource>>
          extended by org.lexgrid.loader.processor.EntityAssnsToEntityProcessor<I>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,ParentIdHolder<AssociationSource>>, org.springframework.beans.factory.InitializingBean

public class EntityAssnsToEntityProcessor<I>
extends AbstractSupportedAttributeRegisteringProcessor<I,ParentIdHolder<AssociationSource>>
implements org.springframework.beans.factory.InitializingBean

The Class EntityAssnsToEntityProcessor.

Author:
Kevin Peterson

Nested Class Summary
static class EntityAssnsToEntityProcessor.SelfReferencingAssociationPolicy
           
 
Constructor Summary
EntityAssnsToEntityProcessor()
           
 
Method Summary
 void afterPropertiesSet()
           
 ParentIdHolder<AssociationSource> doProcess(I item)
          Do process.
 AssociationInstanceIdResolver<I> getAssociationInstanceIdResolver()
           
 AssociationPredicateKeyResolver getAssociationPredicateKeyResolver()
           
 DatabaseServiceManager getDatabaseServiceManager()
           
 java.util.List<OptionalQualifierResolver<I>> getQualifierResolvers()
           
 RelationResolver<I> getRelationResolver()
          Gets the relation resolver.
 EntityAssnsToEntityProcessor.SelfReferencingAssociationPolicy getSelfReferencingAssociationPolicy()
           
 PropertyIdResolver<I> getSourcePropertyIdResolver()
           
 PropertyIdResolver<I> getTargetPropertyIdResolver()
           
protected  void insertPropertyLink(java.lang.String code, java.lang.String namespace, java.lang.String link, java.lang.String sourcePropertyId, java.lang.String targetPropertyId)
           
protected  void registerSupportedAttributes(SupportedAttributeTemplate template, ParentIdHolder<AssociationSource> item)
          Register supported attributes.
 void setAssociationInstanceIdResolver(AssociationInstanceIdResolver<I> associationInstanceIdResolver)
           
 void setAssociationPredicateKeyResolver(AssociationPredicateKeyResolver associationPredicateKeyResolver)
           
 void setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager)
           
 void setQualifierResolvers(java.util.List<OptionalQualifierResolver<I>> qualifierResolvers)
           
 void setRelationResolver(RelationResolver<I> relationResolver)
          Sets the relation resolver.
 void setSelfReferencingAssociationPolicy(EntityAssnsToEntityProcessor.SelfReferencingAssociationPolicy selfReferencingAssociationPolicy)
           
 void setSourcePropertyIdResolver(PropertyIdResolver<I> sourcePropertyIdResolver)
           
 void setTargetPropertyIdResolver(PropertyIdResolver<I> targetPropertyIdResolver)
           
 
Methods inherited from class org.lexgrid.loader.processor.AbstractSupportedAttributeRegisteringProcessor
getSupportedAttributeTemplate, isRegisterSupportedAttributes, process, setRegisterSupportedAttributes, setSupportedAttributeTemplate
 
Methods inherited from class org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
getCodingSchemeIdSetter, setCodingSchemeIdSetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityAssnsToEntityProcessor

public EntityAssnsToEntityProcessor()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

doProcess

public ParentIdHolder<AssociationSource> doProcess(I item)
                                            throws java.lang.Exception
Description copied from class: AbstractSupportedAttributeRegisteringProcessor
Do process.

Specified by:
doProcess in class AbstractSupportedAttributeRegisteringProcessor<I,ParentIdHolder<AssociationSource>>
Parameters:
item - the item
Returns:
the o
Throws:
java.lang.Exception - the exception

insertPropertyLink

protected void insertPropertyLink(java.lang.String code,
                                  java.lang.String namespace,
                                  java.lang.String link,
                                  java.lang.String sourcePropertyId,
                                  java.lang.String targetPropertyId)

registerSupportedAttributes

protected void registerSupportedAttributes(SupportedAttributeTemplate template,
                                           ParentIdHolder<AssociationSource> item)
Description copied from class: AbstractSupportedAttributeRegisteringProcessor
Register supported attributes.

Specified by:
registerSupportedAttributes in class AbstractSupportedAttributeRegisteringProcessor<I,ParentIdHolder<AssociationSource>>
Parameters:
template - the s
item - the item

getRelationResolver

public RelationResolver<I> getRelationResolver()
Gets the relation resolver.

Returns:
the relation resolver

setRelationResolver

public void setRelationResolver(RelationResolver<I> relationResolver)
Sets the relation resolver.

Parameters:
relationResolver - the new relation resolver

getAssociationInstanceIdResolver

public AssociationInstanceIdResolver<I> getAssociationInstanceIdResolver()

setAssociationInstanceIdResolver

public void setAssociationInstanceIdResolver(AssociationInstanceIdResolver<I> associationInstanceIdResolver)

getAssociationPredicateKeyResolver

public AssociationPredicateKeyResolver getAssociationPredicateKeyResolver()

setAssociationPredicateKeyResolver

public void setAssociationPredicateKeyResolver(AssociationPredicateKeyResolver associationPredicateKeyResolver)

setSelfReferencingAssociationPolicy

public void setSelfReferencingAssociationPolicy(EntityAssnsToEntityProcessor.SelfReferencingAssociationPolicy selfReferencingAssociationPolicy)

getSelfReferencingAssociationPolicy

public EntityAssnsToEntityProcessor.SelfReferencingAssociationPolicy getSelfReferencingAssociationPolicy()

getDatabaseServiceManager

public DatabaseServiceManager getDatabaseServiceManager()

setDatabaseServiceManager

public void setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager)

getSourcePropertyIdResolver

public PropertyIdResolver<I> getSourcePropertyIdResolver()

setSourcePropertyIdResolver

public void setSourcePropertyIdResolver(PropertyIdResolver<I> sourcePropertyIdResolver)

getTargetPropertyIdResolver

public PropertyIdResolver<I> getTargetPropertyIdResolver()

setTargetPropertyIdResolver

public void setTargetPropertyIdResolver(PropertyIdResolver<I> targetPropertyIdResolver)

setQualifierResolvers

public void setQualifierResolvers(java.util.List<OptionalQualifierResolver<I>> qualifierResolvers)

getQualifierResolvers

public java.util.List<OptionalQualifierResolver<I>> getQualifierResolvers()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.