Package | Description |
---|---|
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.
|
org.apache.empire.db.expr.column |
This package contains SQL-generator classes for column expressions.
|
org.apache.empire.db.expr.join |
This package contains SQL-generator classes for join expressions used in the from clause.
|
org.apache.empire.db.expr.set |
This package contains SQL-generator classes for set expressions used in the set clause.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.exceptions |
This package contains classes for exception handling of general errors.
|
Constructor and Description |
---|
BeanResult(Class<T> clazz,
DBRowSet rowset)
Creates a bean result for a Table, View or Query from the supplied columns.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
DBCommandExpr.DBCmdQuery |
static class |
DBDatabaseDriver.DBSeqTable
This class is used to emulate sequences by using a sequence table.
|
class |
DBQuery
This class can be used to wrap a query from a DBCommand and use it like a DBRowSet.
You may use this class for two purposes: In oder to define subqueries simply define a command object with the subquery and wrap it inside a DBQuery. |
class |
DBTable
This class represent one table of the database.
|
class |
DBView
This class represents a database view.
|
Modifier and Type | Field and Description |
---|---|
protected DBRowSet |
DBColumn.rowset |
Modifier and Type | Method and Description |
---|---|
static DBRowSet |
DBRowSet.findById(String rowsetId)
returns a rowset by its identifier
|
DBRowSet |
DBRecord.getRowSet()
Returns the DBRowSet object.
|
DBRowSet |
DBColumn.getRowSet()
Returns DBTable, DBQuery or DBView object.
|
DBRowSet |
DBDatabase.getRowSet(String name)
Finds a DBRowSet object (DBTable or DBView) by name.
|
Modifier and Type | Method and Description |
---|---|
protected List<DBRowSet> |
DBCommand.getRowSetList()
Gets a list of all tables referenced by the query.
|
Modifier and Type | Method and Description |
---|---|
void |
DBRecord.create(DBRowSet table)
Creates a new record for the given table.
All record fields will be filled with their default values. The record's state is set to NEW |
void |
DBRecord.create(DBRowSet table,
Connection conn)
Creates a new record for the given table.
All record fields will be filled with their default values. |
boolean |
DBCommand.hasConstraintOn(DBRowSet rowset)
Returns true if the command has a constraint on the given table or false otherwise.
|
boolean |
DBCommand.hasJoinOn(DBRowSet rowset)
Returns true if the command has a join on the given table or false otherwise.
|
void |
DBRecord.init(DBRowSet table,
Object[] keyValues,
boolean insert)
Initializes this record object by attaching it to a rowset,
setting its primary key values and setting the record state.
This function is useful for updating a record without prior reading. |
protected void |
DBRecord.initData(DBRowSet rowset,
Object rowSetData,
boolean newRecord)
This method is used internally by the RowSet to initialize the record's properties
|
void |
DBReader.initRecord(DBRowSet rowset,
DBRecord rec)
initializes a DBRecord object with the values of the current row.
|
DBJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp)
Adds an inner join based on a compare expression to the command.
|
DBJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp,
DBJoinType joinType)
Adds a join based on a compare expression to the command.
|
void |
DBRecord.read(DBRowSet table,
Object[] keys,
Connection conn)
Loads a record from the database identified by it's primary key.
|
void |
DBRecord.read(DBRowSet table,
Object id,
Connection conn)
Loads a record from the database identified by it's primary key.
|
boolean |
DBCommand.removeJoinsOn(DBRowSet rowset)
removes all joins to a given table or view
|
Constructor and Description |
---|
DBColumn(DBRowSet rowset,
String name)
Constructs a DBColumn object and set the specified parameters to this object.
|
DBCommandExpr.DBCmdColumn(DBRowSet query,
DBColumnExpr expr)
Constructs a new DBCmdColumn object
|
DBRecord(DBRowSet initialRowset) |
Constructor and Description |
---|
InvalidKeyException(DBRowSet rowset,
Object[] key) |
NoPrimaryKeyException(DBRowSet rowset) |
RecordDeleteFailedException(DBRowSet rowset,
Object[] key) |
RecordNotFoundException(DBRowSet rowset,
Object[] key) |
RecordUpdateFailedException(DBRowSet rowset,
Object[] key) |
RecordUpdateInvalidException(DBRowSet rowset,
Object[] key) |
Constructor and Description |
---|
DBCountExpr(DBRowSet rowset)
Constructs a DBCountExpr.
|
Modifier and Type | Method and Description |
---|---|
DBRowSet |
DBJoinExpr.getOuterTable()
Returns the left table name if the data type= JOIN_LEFT and returns
the right table if the data type= JOIN_RIGHT.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DBJoinExpr.isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
Constructor and Description |
---|
DBJoinExprEx(DBRowSet rset,
DBCompareExpr cmp,
DBJoinType joinType)
Constructs a new DBJoinExprEx
|
Modifier and Type | Method and Description |
---|---|
DBRowSet |
DBSetExpr.getTable()
Returns the current Table object.
|
Modifier and Type | Class and Description |
---|---|
static class |
OracleSYSDatabase.DBColComments |
static class |
OracleSYSDatabase.DBColInfo |
static class |
OracleSYSDatabase.DBConstraints |
static class |
OracleSYSDatabase.DBTabComments |
static class |
OracleSYSDatabase.DBUserConCol |
Constructor and Description |
---|
BeanIncompatibleException(Class<?> clazz,
DBRowSet rowset) |
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.