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.
|
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.
|
void |
DBRecord.create(DBRowSet table,
Connection conn)
Creates a new record for the given table.
|
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.
|
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.
|
DBCompareJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp)
Adds an inner join based on a compare expression to the command.
|
DBCompareJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp,
DBJoinType joinType)
Adds a join based on a compare expression to the command.
|
DBCrossJoinExpr |
DBCommand.join(DBRowSet left,
DBRowSet right)
Adds a cross join for two tables or views
|
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 | Field and Description |
---|---|
protected DBRowSet |
DBCrossJoinExpr.left |
protected DBRowSet |
DBCrossJoinExpr.right |
Modifier and Type | Method and Description |
---|---|
abstract DBRowSet |
DBJoinExpr.getLeftTable()
returns the RowSet on the left of the join
|
DBRowSet |
DBCrossJoinExpr.getLeftTable()
returns the RowSet on the left of the join
|
DBRowSet |
DBColumnJoinExpr.getLeftTable() |
abstract 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.
|
DBRowSet |
DBCrossJoinExpr.getOuterTable()
Returns the left table name if the data type= JOIN_LEFT and returns
the right table if the data type= JOIN_RIGHT.
|
DBRowSet |
DBColumnJoinExpr.getOuterTable()
Returns the left table name if the data type= JOIN_LEFT and returns
the right table if the data type= JOIN_RIGHT.
|
abstract DBRowSet |
DBJoinExpr.getRightTable()
returns the RowSet on the right of the join
|
DBRowSet |
DBCrossJoinExpr.getRightTable()
returns the RowSet on the right of the join
|
DBRowSet |
DBColumnJoinExpr.getRightTable()
returns the RowSet on the right of the join
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
DBJoinExpr.isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
boolean |
DBCrossJoinExpr.isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
boolean |
DBColumnJoinExpr.isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
Constructor and Description |
---|
DBCompareJoinExpr(DBRowSet rset,
DBCompareExpr cmp,
DBJoinType joinType)
Constructs a new DBJoinExprEx
|
DBCrossJoinExpr(DBRowSet left,
DBRowSet right)
Constructs a new DBJoinExpr object initialize this object with
the left and right column and the data type of the join
expression.
|
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–2018 Apache Software Foundation. All rights reserved.