Class SearchDomainType
- java.lang.Object
-
- org.openbravo.base.model.domaintype.BaseDomainType
-
- org.openbravo.base.model.domaintype.BaseForeignKeyDomainType
-
- org.openbravo.base.model.domaintype.SearchDomainType
-
- All Implemented Interfaces:
DomainType
,ForeignKeyDomainType
public class SearchDomainType extends BaseForeignKeyDomainType
The type of columns which have a search reference.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description SearchDomainType()
-
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.RefSearch
getRefSearch()
void
setRefSearch(RefSearch refSearch)
-
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 RefSearch (
setRefSearch(RefSearch)
).
-
getRefSearch
public RefSearch getRefSearch()
-
setRefSearch
public void setRefSearch(RefSearch refSearch)
-
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.
-
-