org.lexgrid.loader.processor
Class EntityAssnsToEntityProcessor<I>
java.lang.Object
org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
org.lexgrid.loader.processor.AbstractSupportedAttributeRegisteringProcessor<I,ParentIdHolder<AssociationSource>>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityAssnsToEntityProcessor
public EntityAssnsToEntityProcessor()
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 sitem
- 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()