Package com.priint.pubserver.entity
Class EntityDependency
java.lang.Object
com.priint.pubserver.entity.EntityDependency
- All Implemented Interfaces:
GetSequence,Serializable
Dependency of one entity to another entity.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe cardinality of anEntityDependency.static enumPossible types of a dependencyEntityDependency -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the method call for bulk load.Defaults toEntityDependency.EntityCardinality.ONE_TO_ONE.Get the identifier of the destination entity.Get the (default) load method for the dependencies.Get the path to the configuration file containing default data.intGet the sequence number for sorting of dependencies.Get the identifier of the source entity.getType()Get the dependency type.voidsetBulkloadMethod(EntityMethodCall bulkloadMethod) Set the method call for bulk load.voidsetCardinality(EntityDependency.EntityCardinality cardinality) Throws a NullArgumentException if argument isnull.voidsetDestinationEntity(Entity destinationEntity) Set the destination entity identifier by Entity.voidsetDestinationEntity(String destinationEntityIdentifier) Set the destination entity identifier.voidsetLoadMethod(EntityMethodCall loadMethod) Set the (default) load method for the dependencies.voidsetMetaDataDefaultValuesConfigFile(String metaDataDefaultValuesConfigFile) Set the path to the configuration file containing default data.voidsetSequence(int sequence) Set the sequence number for sorting of dependencies.voidsetSourceEntity(Entity sourceEntity) Set the source entity identifier by Entity.voidsetSourceEntity(String sourceEntityIdentifier) Set the source entity identifier.voidSet the dependency type.toString()
-
Constructor Details
-
EntityDependency
public EntityDependency()
-
-
Method Details
-
getMetaDataDefaultValuesConfigFile
Get the path to the configuration file containing default data.- Returns:
- path or null if not set
-
setMetaDataDefaultValuesConfigFile
Set the path to the configuration file containing default data.- Parameters:
metaDataDefaultValuesConfigFile- path or null
-
getSourceEntity
Get the identifier of the source entity.Defaults to empty string.
- Returns:
- the sourceEntity as String
-
setSourceEntity
Set the source entity identifier.Throws a NullArgumentException if argument is
null.- Parameters:
sourceEntityIdentifier- the sourceEntity to set
-
setSourceEntity
Set the source entity identifier by Entity.Throws a NullArgumentException if argument is
null.- Parameters:
sourceEntity- the sourceEntity to set
-
getDestinationEntity
Get the identifier of the destination entity.Defaults to empty string.
- Returns:
- the destinationEntity as String
-
setDestinationEntity
Set the destination entity identifier.Throws a NullArgumentException if argument is
null.- Parameters:
destinationEntityIdentifier- the destinationEntity identifier to set
-
setDestinationEntity
Set the destination entity identifier by Entity.Throws a NullArgumentException if argument is
null.- Parameters:
destinationEntity- the destinationEntity to set
-
getType
Get the dependency type.Defaults to empty string.
- Returns:
- the type as String
-
setType
Set the dependency type.Throws a NullArgumentException if argument is
null.- Parameters:
type-
-
getCardinality
Defaults to
EntityDependency.EntityCardinality.ONE_TO_ONE.- Returns:
- the cardinality
-
setCardinality
Throws a NullArgumentException if argument is
null.- Parameters:
cardinality- the cardinality to set- See Also:
-
getSequence
public int getSequence()Get the sequence number for sorting of dependencies.- Specified by:
getSequencein interfaceGetSequence- Returns:
- the sequence as int
-
setSequence
public void setSequence(int sequence) Set the sequence number for sorting of dependencies.- Parameters:
sequence-
-
getBulkloadMethod
Get the method call for bulk load.Defaults to an empty
EntityMethodCall.- Returns:
- bulkloadMethod as
EntityMethodCall
-
setBulkloadMethod
Set the method call for bulk load.Throws a NullArgumentException if argument is
null.- Parameters:
bulkloadMethod-
-
getLoadMethod
Get the (default) load method for the dependencies.Defaults to an empty
EntityMethodCall.- Returns:
- loadMethod as
EntityMethodCall
-
setLoadMethod
Set the (default) load method for the dependencies.Throws a NullArgumentException if argument is
null.- Parameters:
loadMethod-
-
toString
-