Package org.apache.empire.data.bean
Class BeanClass
java.lang.Object
org.apache.empire.data.bean.BeanClass
- All Implemented Interfaces:
Entity
BeanObject
This class defines Metadata for any type of java class.
For each class you want to describe create one Metadata class and derive it from BeanClass.
A metadata definition consists primarily of the class name and a list of properties.
- Author:
- Rainer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final BeanPropertyprotected final BeanPropertyprotected final BeanPropertyprotected BeanPropertyaddProp(String propname, DataType dataType, double size, boolean required, String controlType, boolean readOnly) protected voidaddProp(BeanProperty prop) returns the list of key columns (if any)returns the domain this class belongs to (if any)returns the name of this classColumn[]returns the list of key columns (if any)returns the list of properties for this class.protected final voidsetKeyColumn(Column keyColumn) Sets the key to a single columnprotected voidsetKeyColumns(Column[] keyColumns) Sets the list of key columns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.empire.data.Entity
getBeanType, getColumn
-
Field Details
-
domain
-
-
Constructor Details
-
BeanClass
-
BeanClass
-
-
Method Details
-
addProp
-
addProp
protected BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType, boolean readOnly) -
addProp
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType) -
addProp
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, boolean readOnly) -
addProp
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required) -
setKeyColumns
Sets the list of key columns.- Parameters:
keyColumns- the list of key columns.
-
setKeyColumn
Sets the key to a single column- Parameters:
keyColumn- the key column
-
getEntityName
returns the name of this class- Specified by:
getEntityNamein interfaceEntity- Returns:
- the class name
-
getColumns
returns the list of key columns (if any)- Specified by:
getColumnsin interfaceEntity- Returns:
- the list of key columns or null.
-
getKeyColumns
returns the list of key columns (if any)- Specified by:
getKeyColumnsin interfaceEntity- Returns:
- the list of key columns or null.
-
getProperties
returns the list of properties for this class.- Returns:
- the list of properties for this class.
-
getDomain
returns the domain this class belongs to (if any)- Returns:
- the domain this class belongs to or null.
-