public abstract class BeanClass extends Object implements EntityType
Modifier and Type | Field and Description |
---|---|
protected BeanDomain |
domain |
Modifier | Constructor and Description |
---|---|
protected |
BeanClass(String name) |
protected |
BeanClass(String name,
BeanDomain dom) |
Modifier and Type | Method and Description |
---|---|
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,
boolean readOnly) |
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) |
List<BeanProperty> |
getColumns()
returns the list of key columns (if any)
|
BeanDomain |
getDomain()
returns the domain this class belongs to (if any)
|
String |
getEntityName()
returns the name of this class
|
Column[] |
getKeyColumns()
returns the list of key columns (if any)
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBeanType
protected BeanDomain domain
protected BeanClass(String name)
protected BeanClass(String name, BeanDomain dom)
protected void addProp(BeanProperty prop)
protected 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, boolean readOnly)
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
- the key columnpublic String getEntityName()
getEntityName
in interface EntityType
public List<BeanProperty> getColumns()
getColumns
in interface EntityType
public Column[] getKeyColumns()
getKeyColumns
in interface EntityType
public List<BeanProperty> getProperties()
public BeanDomain getDomain()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.