Package | Description |
---|---|
org.apache.empire.commons |
This package contains various common classes for error handling, specific data types and data type conversion.
|
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.data.list | |
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.dbms.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.dbms.postgresql |
This package contains classes necessary to support the PostgreSQL database system.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ObjectUtils.compareEqual(ColumnExpr expr,
ColumnExpr other)
Compares two ColumnExpr for equality
|
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.getColumn(int i)
returns the column expression for a given column
This is the reverse operation of getFieldIndex()
|
Modifier and Type | Method and Description |
---|---|
Object |
RecordData.get(ColumnExpr column)
returns the record value for a particular column
|
int |
RecordData.getFieldIndex(ColumnExpr column)
returns the index of the given column expression
Indexed operations provide better performance for bulk processing
|
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 |
---|---|
Object |
BeanRecordProxy.get(ColumnExpr column) |
protected Object |
BeanRecordProxy.getBeanProperty(Object bean,
ColumnExpr column) |
int |
BeanRecordProxy.getFieldIndex(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 | Field and Description |
---|---|
protected ColumnExpr[] |
DataListHead.columns |
Modifier and Type | Method and Description |
---|---|
ColumnExpr |
DataListEntry.getColumn(int index) |
ColumnExpr[] |
DataListHead.getColumns() |
Modifier and Type | Method and Description |
---|---|
protected String |
DataListHead.formatValue(ColumnExpr column,
Object value)
Convert a non-string value to a string
|
Object |
DataListEntry.get(ColumnExpr column) |
Object[] |
DataListEntry.getArray(ColumnExpr... columns) |
boolean |
DataListEntry.getBoolean(ColumnExpr column) |
int |
DataListHead.getColumnIndex(ColumnExpr column) |
Date |
DataListEntry.getDate(ColumnExpr column) |
BigDecimal |
DataListEntry.getDecimal(ColumnExpr column) |
<T extends Enum<?>> |
DataListEntry.getEnum(ColumnExpr column,
Class<T> enumType) |
int |
DataListEntry.getFieldIndex(ColumnExpr column) |
int |
DataListEntry.getInt(ColumnExpr column) |
long |
DataListEntry.getLong(ColumnExpr column) |
String |
DataListEntry.getString(ColumnExpr column) |
String |
DataListEntry.getText(ColumnExpr col) |
Object |
DataListEntry.getValue(ColumnExpr column)
Deprecated.
|
boolean |
DataListEntry.hasField(ColumnExpr column) |
protected int |
DataListEntry.indexOf(ColumnExpr column) |
boolean |
DataListEntry.isNull(ColumnExpr column) |
void |
DataListEntry.modifyValue(ColumnExpr col,
Object value) |
Modifier and Type | Method and Description |
---|---|
int |
DataListEntry.setBeanProperties(Object bean,
Collection<? extends ColumnExpr> ignoreList) |
Constructor and Description |
---|
DataListHead(ColumnExpr[] columns)
Constructs a DataListHead based on an DataListEntry constructor
|
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 |
---|---|
protected int |
DBReader.findFieldIndex(ColumnExpr column)
finds the field Index of a given column expression
Internally used as helper for getFieldIndex()
|
protected String |
DBRecordData.formatValue(ColumnExpr column,
Object value)
Convert a non-string value to a string
|
Object |
DBRecordData.get(ColumnExpr column)
Returns a data value for the desired column .
|
Object[] |
DBRecordData.getArray(ColumnExpr... columns)
Returns an array of values for the given column expressions
|
boolean |
DBRecordData.getBoolean(ColumnExpr column)
Returns a data value for the desired column.
|
int |
DBRowSet.getColumnIndex(ColumnExpr columnExpr)
Gets the index of a particular column expression.
|
int |
DBQuery.getColumnIndex(ColumnExpr columnExpr)
Gets the index of a particular column expression.
|
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 |
DBRecordBase.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.
|
LocalDate |
DBRecordData.getLocalDate(ColumnExpr column)
Returns a data value for the desired column.
|
LocalDateTime |
DBRecordData.getLocalDateTime(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.
|
String |
DBRecordData.getText(ColumnExpr column)
Returns the value of a column as a formatted text
This converts the value to a string if necessary and performs an options lookup
To customize conversion please override convertToString()
|
Object |
DBRecordData.getValue(ColumnExpr column)
Deprecated.
|
Object[] |
DBRecordData.getValues(ColumnExpr... columns)
Deprecated.
|
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 |
DBCmdResultExpr |
class |
DBCoalesceExpr |
class |
DBConcatExpr
This class is used for performing string concatenation in SQL
There is no need to explicitly create instances of this class. |
class |
DBConcatFuncExpr
DBConcatExpression
|
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 |
DBParenthesisExpr
This class allows column renaming in SQL.
|
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.
|
class |
DBVarArgsFuncExpr |
Modifier and Type | Class and Description |
---|---|
class |
OracleRowNumExpr
implements a column expression for the Oracle rownum function
|
Modifier and Type | Class and Description |
---|---|
class |
PostgresBoolAndOrExpr |
class |
PostgresFuncExpr |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.