Class DDCImpl

  • All Implemented Interfaces:
    DDC, java.io.Serializable

    public class DDCImpl
    extends java.lang.Object
    implements DDC
    Implementation of DDC.
    See Also:
    Serialized Form
    • Constructor Detail

      • DDCImpl

        public DDCImpl​(java.lang.String definitionName,
                       java.lang.String tableName,
                       SQLType dataSourceType,
                       java.lang.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​(java.lang.String definitionName,
                       java.lang.String tableName,
                       SQLType dataSourceType,
                       java.lang.String dataSourceName,
                       boolean onDefaultDataSource,
                       DDC.DDCKind ddcKind,
                       DDC.TenantMode tenantMode,
                       SaFieldDescription[] descriptions,
                       java.lang.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 Detail

      • getAuditTable

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

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

        public java.lang.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 java.lang.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
      • getFields

        public java.util.Map<java.lang.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 java.util.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.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.