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.StringgetAuditTable()java.lang.StringgetDataSourceName()Returns the name of the datasource this DDC is located in.SQLTypegetDataSourceType()Returns the type of the datasource this DDC is located in.DDC.DDCKindgetDDCKind()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.StringgetName()Returns the name of this DDC.java.lang.StringgetTableName()Returns the name of the hibernate entity corresponding to this DDC.DDC.TenantModegetTenantMode()Returns the tenant-mode of the table.intgetVersion()booleanisOnDefaultDataSource()voidsetVersion(int version)Sets the version.java.lang.StringtoString()
-
-
-
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:
getAuditTablein interfaceDDC
-
getName
public java.lang.String getName()
Description copied from interface:DDCReturns the name of this DDC.
-
getTableName
public java.lang.String getTableName()
Description copied from interface:DDCReturns the name of the hibernate entity corresponding to this DDC.- Specified by:
getTableNamein interfaceDDC- Returns:
- the name of the hibernate entity corresponding to this DDC
-
getDataSourceType
public SQLType getDataSourceType()
Description copied from interface:DDCReturns the type of the datasource this DDC is located in. SeeSQLType.- Specified by:
getDataSourceTypein interfaceDDC- Returns:
- type of this DDC's datasource
-
getDataSourceName
public java.lang.String getDataSourceName()
Description copied from interface:DDCReturns the name of the datasource this DDC is located in.- Specified by:
getDataSourceNamein interfaceDDC- Returns:
- name of this DDC's datasource
-
getDDCKind
public DDC.DDCKind getDDCKind()
Description copied from interface:DDCReturns the kind of the DDC. SeeDDC.DDCKind.- Specified by:
getDDCKindin interfaceDDC- Returns:
- ddc-kind
-
getTenantMode
public DDC.TenantMode getTenantMode()
Description copied from interface:DDCReturns the tenant-mode of the table. SeeDDC.TenantMode.- Specified by:
getTenantModein interfaceDDC- Returns:
- tenant-mode
-
getFields
public java.util.Map<java.lang.String,SaFieldDescription> getFields()
Description copied from interface:DDCReturns 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:
getFieldListin interfaceDDC- Returns:
- the fields of this definition in the order they are defined
-
isOnDefaultDataSource
public boolean isOnDefaultDataSource()
- Specified by:
isOnDefaultDataSourcein interfaceDDC- Returns:
- true if this DDC is located on the default data-source of the system
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfaceDDC- Returns:
- the version of the DDC
-
setVersion
public void setVersion(int version)
Sets the version.- Parameters:
version- the version of the DDC.
-
-