Class DDCImpl

java.lang.Object
com.saperion.rmi.DDCImpl
All Implemented Interfaces:
DDC, Serializable

public class DDCImpl extends Object implements DDC
Implementation of DDC.
See Also:
  • Constructor Details

    • DDCImpl

      public DDCImpl(String definitionName, String tableName, SQLType dataSourceType, String dataSourceName, boolean onDefaultDataSource, DDC.DDCKind ddcKind, DDC.TenantMode tenantMode, SaFieldDescription[] descriptions)
      Creates a new DDCImpl.
      Parameters:
      definitionName - name of the DDC
      tableName - name of the database table
      dataSourceType - type of the data-source
      dataSourceName - name of the data-source
      ddcKind - kind of the DDC
      tenantMode - tenant mode of the DDC
      descriptions - fields of the DDC
    • DDCImpl

      public DDCImpl(String definitionName, String tableName, SQLType dataSourceType, String dataSourceName, boolean onDefaultDataSource, DDC.DDCKind ddcKind, DDC.TenantMode tenantMode, SaFieldDescription[] descriptions, String auditTable)
      Creates a new DDCImpl.
      Parameters:
      definitionName - name of the DDC
      tableName - name of the database table
      dataSourceType - type of the data-source
      dataSourceName - name of the data-source
      ddcKind - kind of the DDC
      tenantMode - tenant mode of the DDC
      descriptions - fields of the DDC
      auditTable - name of the associated audit table
  • Method Details

    • getAuditTable

      public String getAuditTable()
      Specified by:
      getAuditTable in interface DDC
    • getName

      public String getName()
      Description copied from interface: DDC
      Returns the name of this DDC.
      Specified by:
      getName in interface DDC
      Returns:
      DDC-name
    • getTableName

      public String getTableName()
      Description copied from interface: DDC
      Returns the name of the hibernate entity corresponding to this DDC.
      Specified by:
      getTableName in interface DDC
      Returns:
      the name of the hibernate entity corresponding to this DDC
    • getDataSourceType

      public SQLType getDataSourceType()
      Description copied from interface: DDC
      Returns the type of the datasource this DDC is located in. See SQLType.
      Specified by:
      getDataSourceType in interface DDC
      Returns:
      type of this DDC's datasource
    • getDataSourceName

      public String getDataSourceName()
      Description copied from interface: DDC
      Returns the name of the datasource this DDC is located in.
      Specified by:
      getDataSourceName in interface DDC
      Returns:
      name of this DDC's datasource
    • getDDCKind

      public DDC.DDCKind getDDCKind()
      Description copied from interface: DDC
      Returns the kind of the DDC. See DDC.DDCKind.
      Specified by:
      getDDCKind in interface DDC
      Returns:
      ddc-kind
    • getTenantMode

      public DDC.TenantMode getTenantMode()
      Description copied from interface: DDC
      Returns the tenant-mode of the table. See DDC.TenantMode.
      Specified by:
      getTenantMode in interface DDC
      Returns:
      tenant-mode
    • getFields

      public Map<String,SaFieldDescription> getFields()
      Description copied from interface: DDC
      Returns a map containing information about the fields of this DDC. The fields are mapped by their name in upper-case.
      Specified by:
      getFields in interface DDC
      Returns:
      map of fields
    • getFieldList

      public List<SaFieldDescription> getFieldList()
      Specified by:
      getFieldList in interface DDC
      Returns:
      the fields of this definition in the order they are defined
    • isOnDefaultDataSource

      public boolean isOnDefaultDataSource()
      Specified by:
      isOnDefaultDataSource in interface DDC
      Returns:
      true if this DDC is located on the default data-source of the system
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getVersion

      public int getVersion()
      Specified by:
      getVersion in interface DDC
      Returns:
      the version of the DDC
    • setVersion

      public void setVersion(int version)
      Sets the version.
      Parameters:
      version - the version of the DDC.