Package com.priint.pubserver.entity
Class EntityDependency
- java.lang.Object
-
- com.priint.pubserver.entity.EntityDependency
-
- All Implemented Interfaces:
GetSequence,java.io.Serializable
public class EntityDependency extends java.lang.Object implements java.io.Serializable, GetSequence
Dependency of one entity to another entity.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityDependency.EntityCardinalityThe cardinality of anEntityDependency.static classEntityDependency.EntityDependencyTypePossible types of a dependencyEntityDependency
-
Constructor Summary
Constructors Constructor Description EntityDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityMethodCallgetBulkloadMethod()Get the method call for bulk load.EntityDependency.EntityCardinalitygetCardinality()Defaults toEntityDependency.EntityCardinality.ONE_TO_ONE.java.lang.StringgetDestinationEntity()Get the identifier of the destination entity.EntityMethodCallgetLoadMethod()Get the (default) load method for the dependencies.java.lang.StringgetMetaDataDefaultValuesConfigFile()Get the path to the configuration file containing default data.intgetSequence()Get the sequence number for sorting of dependencies.java.lang.StringgetSourceEntity()Get the identifier of the source entity.java.lang.StringgetType()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(java.lang.String destinationEntityIdentifier)Set the destination entity identifier.voidsetLoadMethod(EntityMethodCall loadMethod)Set the (default) load method for the dependencies.voidsetMetaDataDefaultValuesConfigFile(java.lang.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(java.lang.String sourceEntityIdentifier)Set the source entity identifier.voidsetType(java.lang.String type)Set the dependency type.java.lang.StringtoString()
-
-
-
Method Detail
-
getMetaDataDefaultValuesConfigFile
public java.lang.String getMetaDataDefaultValuesConfigFile()
Get the path to the configuration file containing default data.- Returns:
- path or null if not set
-
setMetaDataDefaultValuesConfigFile
public void setMetaDataDefaultValuesConfigFile(java.lang.String metaDataDefaultValuesConfigFile)
Set the path to the configuration file containing default data.- Parameters:
metaDataDefaultValuesConfigFile- path or null
-
getSourceEntity
public java.lang.String getSourceEntity()
Get the identifier of the source entity.Defaults to empty string.
- Returns:
- the sourceEntity as String
-
setSourceEntity
public void setSourceEntity(java.lang.String sourceEntityIdentifier)
Set the source entity identifier.Throws a NullArgumentException if argument is
null.- Parameters:
sourceEntityIdentifier- the sourceEntity to set
-
setSourceEntity
public void setSourceEntity(Entity sourceEntity)
Set the source entity identifier by Entity.Throws a NullArgumentException if argument is
null.- Parameters:
sourceEntity- the sourceEntity to set
-
getDestinationEntity
public java.lang.String getDestinationEntity()
Get the identifier of the destination entity.Defaults to empty string.
- Returns:
- the destinationEntity as String
-
setDestinationEntity
public void setDestinationEntity(java.lang.String destinationEntityIdentifier)
Set the destination entity identifier.Throws a NullArgumentException if argument is
null.- Parameters:
destinationEntityIdentifier- the destinationEntity identifier to set
-
setDestinationEntity
public void setDestinationEntity(Entity destinationEntity)
Set the destination entity identifier by Entity.Throws a NullArgumentException if argument is
null.- Parameters:
destinationEntity- the destinationEntity to set
-
getType
public java.lang.String getType()
Get the dependency type.Defaults to empty string.
- Returns:
- the type as String
-
setType
public void setType(java.lang.String type)
Set the dependency type.Throws a NullArgumentException if argument is
null.- Parameters:
type-
-
getCardinality
public EntityDependency.EntityCardinality getCardinality()
Defaults to
EntityDependency.EntityCardinality.ONE_TO_ONE.- Returns:
- the cardinality
-
setCardinality
public void setCardinality(EntityDependency.EntityCardinality cardinality)
Throws a NullArgumentException if argument is
null.- Parameters:
cardinality- the cardinality to set- See Also:
EntityDependency.EntityCardinality
-
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
public EntityMethodCall getBulkloadMethod()
Get the method call for bulk load.Defaults to an empty
EntityMethodCall.- Returns:
- bulkloadMethod as
EntityMethodCall
-
setBulkloadMethod
public void setBulkloadMethod(EntityMethodCall bulkloadMethod)
Set the method call for bulk load.Throws a NullArgumentException if argument is
null.- Parameters:
bulkloadMethod-
-
getLoadMethod
public EntityMethodCall getLoadMethod()
Get the (default) load method for the dependencies.Defaults to an empty
EntityMethodCall.- Returns:
- loadMethod as
EntityMethodCall
-
setLoadMethod
public void setLoadMethod(EntityMethodCall loadMethod)
Set the (default) load method for the dependencies.Throws a NullArgumentException if argument is
null.- Parameters:
loadMethod-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-