Package com.saperion.rmi
Class DDCImpl
- java.lang.Object
-
- com.saperion.rmi.DDCImpl
-
- All Implemented Interfaces:
DDC
,java.io.Serializable
public class DDCImpl extends java.lang.Object implements DDC
Implementation ofDDC
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.saperion.intf.DDC
DDC.DDCKind, DDC.TenantMode
-
-
Constructor Summary
Constructors Constructor Description 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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAuditTable()
java.lang.String
getDataSourceName()
Returns the name of the datasource this DDC is located in.SQLType
getDataSourceType()
Returns the type of the datasource this DDC is located in.DDC.DDCKind
getDDCKind()
Returns the kind of the DDC.java.util.List<SaFieldDescription>
getFieldList()
java.util.Map<java.lang.String,SaFieldDescription>
getFields()
Returns a map containing information about the fields of this DDC.java.lang.String
getName()
Returns the name of this DDC.java.lang.String
getTableName()
Returns the name of the hibernate entity corresponding to this DDC.DDC.TenantMode
getTenantMode()
Returns the tenant-mode of the table.int
getVersion()
boolean
isOnDefaultDataSource()
void
setVersion(int version)
Sets the version.java.lang.String
toString()
-
-
-
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 DDCtableName
- name of the database tabledataSourceType
- type of the data-sourcedataSourceName
- name of the data-sourceddcKind
- kind of the DDCtenantMode
- tenant mode of the DDCdescriptions
- 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 DDCtableName
- name of the database tabledataSourceType
- type of the data-sourcedataSourceName
- name of the data-sourceddcKind
- kind of the DDCtenantMode
- tenant mode of the DDCdescriptions
- fields of the DDCauditTable
- name of the associated audit table
-
-
Method Detail
-
getAuditTable
public java.lang.String getAuditTable()
- Specified by:
getAuditTable
in interfaceDDC
-
getName
public java.lang.String getName()
Description copied from interface:DDC
Returns the name of this DDC.
-
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 interfaceDDC
- 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. SeeSQLType
.- Specified by:
getDataSourceType
in interfaceDDC
- 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 interfaceDDC
- Returns:
- name of this DDC's datasource
-
getDDCKind
public DDC.DDCKind getDDCKind()
Description copied from interface:DDC
Returns the kind of the DDC. SeeDDC.DDCKind
.- Specified by:
getDDCKind
in interfaceDDC
- Returns:
- ddc-kind
-
getTenantMode
public DDC.TenantMode getTenantMode()
Description copied from interface:DDC
Returns the tenant-mode of the table. SeeDDC.TenantMode
.- Specified by:
getTenantMode
in interfaceDDC
- Returns:
- tenant-mode
-
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.
-
getFieldList
public java.util.List<SaFieldDescription> getFieldList()
- Specified by:
getFieldList
in interfaceDDC
- Returns:
- the fields of this definition in the order they are defined
-
isOnDefaultDataSource
public boolean isOnDefaultDataSource()
- Specified by:
isOnDefaultDataSource
in interfaceDDC
- Returns:
- true if this DDC is located on the default data-source of the system
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfaceDDC
- Returns:
- the version of the DDC
-
setVersion
public void setVersion(int version)
Sets the version.- Parameters:
version
- the version of the DDC.
-
-