Package | Description |
---|---|
org.apache.empire.data |
This package contains interfaces for data and metadata handling.
|
org.apache.empire.data.bean |
This package contains implmentations of Empire's data and metadata interfaces for JavaBeans of Data Tranfer Objects (DTO's).
|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.exceptions |
This package contains classes for exception handling of database related errors.
|
Modifier and Type | Method and Description |
---|---|
Column |
Record.getColumn(int index)
returns the column at the specified index.
|
Column[] |
Record.getKeyColumns()
returns an array of key columns which uniquely identify the record.
|
Column |
ColumnExpr.getSourceColumn()
Returns the underlying source column (if any).
|
Modifier and Type | Method and Description |
---|---|
Options |
Record.getFieldOptions(Column column)
returns the Options list for the given record field.
|
boolean |
Record.isFieldReadOnly(Column column)
returns true if the field is read-only.
|
boolean |
Record.isFieldRequired(Column column)
returns true if the field is required.
|
boolean |
Record.isFieldVisible(Column column)
returns true if the field is visible to the client.
|
void |
Record.setValue(Column column,
Object value)
sets a record value based on a column.
|
Object |
Record.validateValue(Column column,
Object value)
Validates a value before it is set in the record.
|
boolean |
Record.wasModified(Column column)
checks whether or not the field for the given column has been modified since it has been loaded.
|
Modifier and Type | Method and Description |
---|---|
int |
Record.setRecordValues(Object bean,
Collection<Column> ignoreList)
sets all record values from a particular bean.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanProperty
BeanObject
This class defines Metadata for a single property.
|
Modifier and Type | Field and Description |
---|---|
protected Column[] |
BeanRecordProxy.keyColumns |
Modifier and Type | Field and Description |
---|---|
protected List<Column> |
BeanRecordProxy.columns |
Modifier and Type | Method and Description |
---|---|
Column |
BeanRecordProxy.getColumn(int index) |
Column[] |
BeanRecordProxy.getKeyColumns() |
Column[] |
BeanClass.getKeyColumns()
returns the list of key columns (if any)
|
Column |
BeanProperty.getSourceColumn()
Returns the column
This function should return the same string as getName()
|
Modifier and Type | Method and Description |
---|---|
Options |
BeanRecordProxy.getFieldOptions(Column column) |
boolean |
BeanRecordProxy.isFieldReadOnly(Column column) |
boolean |
BeanRecordProxy.isFieldRequired(Column column) |
boolean |
BeanRecordProxy.isFieldVisible(Column column) |
protected void |
BeanRecordProxy.setBeanPropertyValue(Object bean,
Column column,
Object value) |
protected void |
BeanClass.setKeyColumn(Column keyColumn)
Sets the key to a single column
|
protected void |
BeanClass.setKeyColumns(Column[] keyColumns)
Sets the list of key columns.
|
void |
BeanRecordProxy.setValue(Column column,
Object value)
sets the value of a field.
|
Object |
BeanRecordProxy.validateValue(Column column,
Object value)
Validates a value before it is set in the record.
|
boolean |
BeanRecordProxy.wasModified(Column column)
Detects whether or not a particular field has been modified.
|
Modifier and Type | Method and Description |
---|---|
int |
BeanRecordProxy.setRecordValues(Object bean,
Collection<Column> ignoreList) |
Constructor and Description |
---|
BeanRecordProxy(List<Column> columns,
Column[] keyColumns) |
BeanRecordProxy(T data,
List<Column> columns,
Column[] keyColumns) |
Constructor and Description |
---|
BeanRecordProxy(List<Column> columns,
Column[] keyColumns) |
BeanRecordProxy(T data,
List<Column> columns,
Column[] keyColumns) |
Modifier and Type | Class and Description |
---|---|
class |
DBColumn
This is the base class for all database columns that have a physical representation.
|
protected static class |
DBCommandExpr.DBCmdColumn
This class wraps a column of sql command in a special command column object.
|
static class |
DBQuery.DBQueryColumn |
class |
DBTableColumn
This class represent one column of a table.
|
static class |
DBView.DBViewColumn |
Modifier and Type | Method and Description |
---|---|
Column |
DBRecord.getColumn(int index)
Implements the Record Interface getColumn method.
|
Column[] |
DBRecord.getKeyColumns()
returns an array of key columns which uniquely identify the record.
|
Column |
DBColumnExpr.getSourceColumn()
Returns the source column.
|
Modifier and Type | Method and Description |
---|---|
int |
DBRowSet.getColumnIndex(Column column)
Gets the index of a particular column expression.
|
Options |
DBRecord.getFieldOptions(Column column)
Gets the possbile Options for a field in the context of the current record.
|
boolean |
DBRecord.isFieldReadOnly(Column column)
returns whether a field is read only or not
|
boolean |
DBRecord.isFieldRequired(Column column)
returns whether a field is required or not
|
boolean |
DBRecord.isFieldVisible(Column column)
returns whether a field is visible to the client or not
May be overridden to implement context specific logic.
|
protected void |
DBRecord.setRecordValue(Column column,
Object bean,
String property)
set a record value from a particular bean property.
|
void |
DBRecord.setValue(Column column,
Object value)
Sets the value of the column in the record.
|
Object |
DBRecord.validateValue(Column column,
Object value)
Validates a value before it is set in the record.
|
boolean |
DBRecord.wasModified(Column column)
Returns true if the field was modified.
|
Modifier and Type | Method and Description |
---|---|
int |
DBRecord.setRecordValues(Object bean,
Collection<Column> ignoreList)
Sets record values from the supplied java bean.
|
Modifier and Type | Method and Description |
---|---|
Column |
FieldValueException.getColumn() |
Modifier and Type | Method and Description |
---|---|
protected static String |
FieldValueException.getColumnTitle(Column column) |
Constructor and Description |
---|
FieldIllegalValueException(Column column,
String value) |
FieldIllegalValueException(Column column,
String value,
Throwable cause) |
FieldIsReadOnlyException(Column col) |
FieldNotNullException(Column col) |
FieldValueException(Column column,
ErrorType errType,
String[] params) |
FieldValueException(Column column,
ErrorType errType,
String[] params,
Throwable cause) |
FieldValueOutOfRangeException(Column col) |
FieldValueOutOfRangeException(Column col,
Number minMax,
boolean isMax) |
FieldValueOutOfRangeException(Column col,
Number min,
Number max) |
FieldValueTooLongException(Column col) |
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.