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.expr.column |
This package contains SQL-generator classes for column expressions.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Column
The column interface provides methods for accessing metadata that is only relevant for updating records.
|
Modifier and Type | Method and Description |
---|---|
ColumnExpr |
RecordData.getColumnExpr(int i)
returns the column expression for a given column
This is the reverse operation of getFieldIndex()
|
Modifier and Type | Method and Description |
---|---|
int |
RecordData.getFieldIndex(ColumnExpr column)
returns the index of the given column expression
Indexed operations provide better performance for bulk processing
|
Object |
RecordData.getValue(ColumnExpr column)
returns the record value for a particular column
|
boolean |
RecordData.isNull(ColumnExpr column)
checks if the record contains no value (null) for the given column
|
Modifier and Type | Method and Description |
---|---|
int |
RecordData.setBeanProperties(Object bean,
Collection<? extends ColumnExpr> ignoreList)
copies all field values into a static Java Bean.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanProperty
BeanObject
This class defines Metadata for a single property.
|
Modifier and Type | Method and Description |
---|---|
ColumnExpr |
BeanRecordProxy.getColumnExpr(int index) |
Modifier and Type | Method and Description |
---|---|
protected Object |
BeanRecordProxy.getBeanPropertyValue(Object bean,
ColumnExpr column) |
int |
BeanRecordProxy.getFieldIndex(ColumnExpr column) |
Object |
BeanRecordProxy.getValue(ColumnExpr column) |
boolean |
BeanRecordProxy.isNull(ColumnExpr column) |
Modifier and Type | Method and Description |
---|---|
int |
BeanRecordProxy.setBeanProperties(Object bean,
Collection<? extends ColumnExpr> ignoreList) |
Modifier and Type | Class and Description |
---|---|
class |
DBColumn
This is the base class for all database columns that have a physical representation.
|
class |
DBColumnExpr
This class is the base class for all expressions that represent a single value.
|
protected static class |
DBCommandExpr.DBCmdColumn
This class wraps a column of sql command in a special command column object.
|
protected static class |
DBQuery.DBQueryExprColumn
DBQueryExprColumn
|
class |
DBQueryColumn |
class |
DBTableColumn
This class represent one column of a table.
|
static class |
DBView.DBViewColumn
DBViewColumn
|
Modifier and Type | Method and Description |
---|---|
abstract ColumnExpr |
DBRecordData.getColumnExpr(int i) |
ColumnExpr |
DBRecord.getColumnExpr(int index)
Returns a DBColumnExpr object by a specified index value.
|
Modifier and Type | Method and Description |
---|---|
protected int |
DBReader.findFieldIndex(ColumnExpr column)
finds the field Index of a given column expression
Internally used as helper for getFieldIndex()
|
boolean |
DBRecordData.getBoolean(ColumnExpr column)
Returns a data value for the desired column.
|
Date |
DBRecordData.getDateTime(ColumnExpr column)
Returns a data value for the desired column.
|
BigDecimal |
DBRecordData.getDecimal(ColumnExpr column)
Returns a data value for the desired column.
|
double |
DBRecordData.getDouble(ColumnExpr column)
Returns a data value for the desired column.
|
<T extends Enum<?>> |
DBRecordData.getEnum(ColumnExpr column,
Class<T> enumType)
Returns the value of a field as an enum
For numeric columns the value is assumed to be an ordinal of the enumeration item
For non numeric columns the value is assumed to be the name of the enumeration item
|
abstract int |
DBRecordData.getFieldIndex(ColumnExpr column) |
int |
DBRecord.getFieldIndex(ColumnExpr column)
Returns the index value by a specified DBColumnExpr object.
|
int |
DBReader.getFieldIndex(ColumnExpr column)
Returns the index value by a specified DBColumnExpr object.
|
int |
DBRecordData.getInt(ColumnExpr column)
Returns a data value for the desired column.
|
long |
DBRecordData.getLong(ColumnExpr column)
Returns a data value for the desired column.
|
String |
DBRecordData.getString(ColumnExpr column)
Returns a data value for the desired column.
|
Object |
DBRecordData.getValue(ColumnExpr column)
Returns a data value for the desired column .
|
Object[] |
DBRecordData.getValues(ColumnExpr[] columns)
Returns an array of values for the given column expressions
|
boolean |
DBRecordData.isNull(ColumnExpr column)
Checks whether or not the value for the given column is null.
|
protected void |
DBRecordData.setBeanProperty(ColumnExpr column,
Object bean,
String property,
Object value)
Set a single property value of a java bean object used by readProperties.
|
Modifier and Type | Method and Description |
---|---|
int |
DBRecordData.setBeanProperties(Object bean,
Collection<? extends ColumnExpr> ignoreList)
Injects the current field values into a java bean.
|
Modifier and Type | Class and Description |
---|---|
class |
DBAbstractFuncExpr
This implements some basic functionality for SQL functions based on a column expression
|
class |
DBAliasExpr
This class allows column renaming in SQL.
|
class |
DBCalcExpr
This class is used for performing calculations in SQL
It handles the mathematical operations ("+", "-", "*", "/") for the current column. |
class |
DBCaseExpr
This class is used to add the "case when ?
|
class |
DBCaseWhenExpr
This class is used to create a SQL CASE constraint in the form of
case when {cond1} then {result1}
when {cond2} then {result2}
...
|
class |
DBConcatExpr
This class is used for performing string concatenation in SQL
There is no need to explicitly create instances of this class. |
class |
DBConvertExpr
This class is used to convert a value to a different data type.
|
class |
DBCountExpr
This class is used to add the "count" statement to the SQL-Command.
|
class |
DBDecodeExpr
This class is used to decode a set of keys to the corresponding target values.
|
class |
DBFuncExpr
This class is used for performing various SQL functions on a column or column expression.
|
class |
DBScalarExpr
This class is used for declaring scalar functions in SQL (like e.g. random).
|
class |
DBValueExpr
This class is used for declaring constant values in SQL.
|
Modifier and Type | Class and Description |
---|---|
class |
OracleRowNumExpr
implements a column expression for the Oracle rownum function
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.