|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.data.bean.BeanClass
public abstract class BeanClass
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.
Field Summary | |
---|---|
protected BeanDomain |
domain
|
Constructor Summary | |
---|---|
protected |
BeanClass(String name)
|
protected |
BeanClass(String name,
BeanDomain dom)
|
Method Summary | |
---|---|
protected void |
addProp(BeanProperty prop)
|
protected BeanProperty |
addProp(String propname,
DataType dataType,
double size,
boolean required)
|
protected BeanProperty |
addProp(String propname,
DataType dataType,
double size,
boolean required,
String controlType)
|
protected BeanProperty |
addProp(String propname,
DataType dataType,
double size,
boolean required,
String controlType,
boolean readOnly)
|
protected BeanProperty |
addProp(String propname,
DataType dataType,
double size,
DataMode dataMode)
|
protected BeanProperty |
addProp(String propname,
DataType dataType,
double size,
DataMode dataMode,
String controlType)
|
BeanDomain |
getDomain()
returns the domain this class belongs to (if any) |
Column[] |
getKeyColumns()
returns the list of key columns (if any) |
String |
getName()
returns the name of this class |
List<BeanProperty> |
getProperties()
returns the list of properties for this class. |
protected void |
setKeyColumn(Column keyColumn)
Sets the key to a single column |
protected void |
setKeyColumns(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, wait |
Field Detail |
---|
protected BeanDomain domain
Constructor Detail |
---|
protected BeanClass(String name)
protected BeanClass(String name, BeanDomain dom)
Method Detail |
---|
protected void addProp(BeanProperty prop)
protected final BeanProperty addProp(String propname, DataType dataType, double size, DataMode dataMode, String controlType)
protected final BeanProperty addProp(String propname, DataType dataType, double size, DataMode dataMode)
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType, boolean readOnly)
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType)
protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required)
protected void setKeyColumns(Column[] keyColumns)
keyColumns
- the list of key columns.protected final void setKeyColumn(Column keyColumn)
keyColumn
- public String getName()
public List<BeanProperty> getProperties()
public BeanDomain getDomain()
public Column[] getKeyColumns()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |