Package com.saperion.rmi
Class DDCImpl
java.lang.Object
com.saperion.rmi.DDCImpl
- All Implemented Interfaces:
DDC
,Serializable
Implementation of
DDC
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.saperion.intf.DDC
DDC.DDCKind, DDC.TenantMode
-
Constructor Summary
ConstructorsConstructorDescriptionDDCImpl
(String definitionName, String tableName, SQLType dataSourceType, String dataSourceName, boolean onDefaultDataSource, DDC.DDCKind ddcKind, DDC.TenantMode tenantMode, SaFieldDescription[] descriptions) Creates a new DDCImpl.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the datasource this DDC is located in.Returns the type of the datasource this DDC is located in.Returns the kind of the DDC.Returns a map containing information about the fields of this DDC.getName()
Returns the name of this DDC.Returns the name of the hibernate entity corresponding to this DDC.Returns the tenant-mode of the table.int
boolean
void
setVersion
(int version) Sets the version.toString()
-
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 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(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 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 Details
-
getAuditTable
- Specified by:
getAuditTable
in interfaceDDC
-
getName
Description copied from interface:DDC
Returns the name of this DDC. -
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
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
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
Description copied from interface:DDC
Returns the kind of the DDC. SeeDDC.DDCKind
.- Specified by:
getDDCKind
in interfaceDDC
- Returns:
- ddc-kind
-
getTenantMode
Description copied from interface:DDC
Returns the tenant-mode of the table. SeeDDC.TenantMode
.- Specified by:
getTenantMode
in interfaceDDC
- Returns:
- tenant-mode
-
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
- 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
-
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.
-