Class EntityDependency

java.lang.Object
com.priint.pubserver.entity.EntityDependency
All Implemented Interfaces:
GetSequence, Serializable

public class EntityDependency extends Object implements Serializable, GetSequence
Dependency of one entity to another entity.
See Also:
  • Constructor Details

    • EntityDependency

      public EntityDependency()
  • Method Details

    • getMetaDataDefaultValuesConfigFile

      public String getMetaDataDefaultValuesConfigFile()
      Get the path to the configuration file containing default data.
      Returns:
      path or null if not set
    • setMetaDataDefaultValuesConfigFile

      public void setMetaDataDefaultValuesConfigFile(String metaDataDefaultValuesConfigFile)
      Set the path to the configuration file containing default data.
      Parameters:
      metaDataDefaultValuesConfigFile - path or null
    • getSourceEntity

      public String getSourceEntity()
      Get the identifier of the source entity.

      Defaults to empty string.

      Returns:
      the sourceEntity as String
    • setSourceEntity

      public void setSourceEntity(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 String getDestinationEntity()
      Get the identifier of the destination entity.

      Defaults to empty string.

      Returns:
      the destinationEntity as String
    • setDestinationEntity

      public void setDestinationEntity(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 String getType()
      Get the dependency type.

      Defaults to empty string.

      Returns:
      the type as String
    • setType

      public void setType(String type)
      Set the dependency type.

      Throws a NullArgumentException if argument is null.

      Parameters:
      type -
    • getCardinality

      public EntityDependency.EntityCardinality getCardinality()
      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:
    • getSequence

      public int getSequence()
      Get the sequence number for sorting of dependencies.
      Specified by:
      getSequence in interface GetSequence
      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 String toString()
      Overrides:
      toString in class Object