Package org.openbravo.base.model
Class Table
- java.lang.Object
-
- org.openbravo.base.model.ModelObject
-
- org.openbravo.base.model.Table
-
public class Table extends ModelObject
Used by theModelProvider
, maps the AD_Table table in the application dictionary. TheEntity
is initialized from a Table.- Author:
- iperdomo
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
-
Methods inherited from class org.openbravo.base.model.ModelObject
get, getData, getId, getIdentifier, getName, getUpdated, isActive, isNew, set, setActive, setId, setName, setUpdated
-
-
-
-
Method Detail
-
getTreeType
public String getTreeType()
-
setTreeType
public void setTreeType(String treeType)
-
getDataOrigin
public String getDataOrigin()
-
setDataOrigin
public void setDataOrigin(String dataOrigin)
-
getTableName
public String getTableName()
-
setTableName
public void setTableName(String tableName)
-
getColumns
public List<Column> getColumns()
Note the columns are not set by hibernate or through a hibernate mapping. For performance reasons they are set explicitly in theModelProvider
. See the assignColumnsToTable method in that class. This collection is only set and used within theModelProvider
initialize method. It should not be used in other places. In other cases perform a direct database query to get the columns of a table.- Returns:
- the list of Column instances of this table
-
setColumns
public void setColumns(List<Column> columns)
Note the columns are not set by hibernate or through a hibernate mapping. For performance reasons they are set explicitly in theModelProvider
. See the assignColumnsToTable method in that class.
-
setView
public void setView(boolean view)
-
isView
public boolean isView()
-
getNotNullClassName
public String getNotNullClassName()
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
setReferenceTypes
public void setReferenceTypes(ModelProvider modelProvider)
-
getPackageName
public String getPackageName()
-
getEntity
public Entity getEntity()
-
setEntity
public void setEntity(Entity entity)
-
toString
public String toString()
- Overrides:
toString
in classModelObject
-
isDeletable
public boolean isDeletable()
-
setDeletable
public void setDeletable(boolean isDeletable)
-
getAccessLevel
public String getAccessLevel()
-
setAccessLevel
public void setAccessLevel(String accessLevel)
-
getThePackage
public Package getThePackage()
-
setThePackage
public void setThePackage(Package thePackage)
-
-