Class TableDomainType
- java.lang.Object
-
- org.openbravo.base.model.domaintype.BaseDomainType
-
- org.openbravo.base.model.domaintype.BaseForeignKeyDomainType
-
- org.openbravo.base.model.domaintype.TableDomainType
-
- All Implemented Interfaces:
DomainType
,ForeignKeyDomainType
public class TableDomainType extends BaseForeignKeyDomainType
The type of columns which have a table reference.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description TableDomainType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Column
getForeignKeyColumn(String columnName)
The foreign key column to which a certain column refers.protected String
getReferedTableName(String columnName)
Needs to be implemented by subclass.RefTable
getRefTable()
void
setRefTable(RefTable refTable)
-
Methods inherited from class org.openbravo.base.model.domaintype.BaseForeignKeyDomainType
checkIsValidValue, getReferedEntity
-
Methods inherited from class org.openbravo.base.model.domaintype.BaseDomainType
checkObjectIsValid, getClasses, getModelProvider, getReference, initialize, setModelProvider, setReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openbravo.base.model.domaintype.DomainType
checkObjectIsValid, getModelProvider, getReference, initialize, setModelProvider, setReference
-
-
-
-
Method Detail
-
getForeignKeyColumn
public Column getForeignKeyColumn(String columnName)
Description copied from interface:ForeignKeyDomainType
The foreign key column to which a certain column refers. Is only relevant if this reference is a foreign key.- Specified by:
getForeignKeyColumn
in interfaceForeignKeyDomainType
- Overrides:
getForeignKeyColumn
in classBaseForeignKeyDomainType
- Parameters:
columnName
- the refering foreign key column- Returns:
- the column based on the RefTable (
setRefTable(RefTable)
).
-
getRefTable
public RefTable getRefTable()
-
setRefTable
public void setRefTable(RefTable refTable)
-
getReferedTableName
protected String getReferedTableName(String columnName)
Description copied from class:BaseForeignKeyDomainType
Needs to be implemented by subclass. If the subclass can not return the tablename then it can return null. The tablename is used to check that valid object is set in properties with this domain type.- Overrides:
getReferedTableName
in classBaseForeignKeyDomainType
- Returns:
- the table name of the table name refered to by this domain type.
-
-