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.generic | |
org.apache.empire.db.list | |
org.apache.empire.db.validation | |
org.apache.empire.dbms | |
org.apache.empire.dbms.hsql |
This package contains classes necessary to support the HSQLDB database system.
|
org.apache.empire.dbms.mysql |
This package contains classes necessary to support the MySQL database system.
|
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.
|
org.apache.empire.exceptions |
This package contains classes for exception handling of general errors.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BeanResult.autoSelectColumns(DBRowSet rowset)
Selects all columns for a given rowset
|
Constructor and Description |
---|
BeanResult(Class<T> beanType,
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 |
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 |
DBRecordBean.rowset |
protected DBRowSet |
DBRecord.rowset |
protected DBRowSet |
DBColumn.rowset |
Modifier and Type | Field and Description |
---|---|
protected Set<DBRowSet> |
DBCommand.parentTables |
Modifier and Type | Method and Description |
---|---|
DBRowSet |
DBRecordBean.getRowSet()
Returns the DBRowSet object.
|
abstract DBRowSet |
DBRecordBase.getRowSet()
Returns the DBRowSet object.
|
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.
|
protected DBRowSet |
DBRecord.readRowSet(ObjectInputStream strm) |
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 |
---|---|
protected void |
DBCommand.addDeleteForTable(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommand.addDeleteWithJoins(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommand.addUpdateForTable(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommand.addUpdateWithJoins(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommand.appendCompareColExprs(DBRowSet table,
DBCompareExpr expr,
List<DBCompareColExpr> list)
Appends all nested DBCompareColExpr for a particular RowSet to a list
|
DBRecordBean |
DBRecordBean.create(DBContext context,
DBRowSet rowset)
Creates a new record
|
DBRecordBean |
DBRecordBean.create(DBContext context,
DBRowSet rowset,
Object[] initalKey)
Creates a new record
|
protected <R extends DBRecordBase> |
DBUtils.createDefaultRecordListFactory(Class<R> recordClass,
DBRowSet rowset)
Crates a default DBRecordListFactory for a DBRecord class
The DBRecord class must provide the following constructor
DBRecord(DBContext context, DBRowSet rowset)
|
<T> DBBeanListFactory<T> |
DBUtils.getRowsetBeanListFactory(Class<T> beanType,
DBRowSet rowset)
gets or creates DBBeanListFactory for the given rowset
|
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.
|
boolean |
DBRowSet.isSame(DBRowSet other)
Compares the rowset to another one
|
DBCommand |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp)
Adds an inner join based on a compare expression to the command.
|
DBCommand |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp,
DBJoinType joinType)
Adds a join based on a compare expression to the command.
|
DBCommand |
DBCommand.join(DBRowSet left,
DBRowSet right)
Adds a cross join for two tables or views
New in release 3.1: Use left.on(right)) instead
|
DBCrossJoinExpr |
DBRowSet.on(DBRowSet right)
Creates a cross join expression
|
<T> T |
DBUtils.queryBean(Class<T> beanType,
DBRowSet rowset,
DBCompareExpr whereConstraints)
Queries a single bean based on a where constraint
|
<T> T |
DBUtils.queryBean(Class<T> beanType,
DBRowSet rowset,
Object[] key)
Queries a single bean based on primary key values
|
<T> List<T> |
DBUtils.queryBeanList(DBCommandExpr cmd,
Class<T> beanType,
DBRowSet rowset,
Object parent)
Queries a list of Java beans for a given command
|
List<DBRecord> |
DBUtils.queryRecordList(DBCommand cmd,
DBRowSet rowset)
Executes a query and returns a list of DBRecord items
|
<R extends DBRecordBase> |
DBUtils.queryRecordList(DBCommand cmd,
DBRowSet rowset,
Class<R> recordType)
Executes a query and returns a list of DBRecord items
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
DBCompareExpr whereConstraints)
Reads a record from the database
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object id)
Reads a record from the database
This method can only be used for tables with a single primary key
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object[] key)
Reads a record from the database
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object[] key,
DBRowSet.PartialMode mode,
DBColumn... columns)
Reads a record partially i.e. not with all but just some selected fields
There are two modes:
1.
|
boolean |
DBCommand.removeJoinsOn(DBRowSet rowset)
removes all joins to a given table or view
|
void |
DBCommand.setParentTables(DBRowSet... rowSets)
Set parent tables for subquery command generation.
|
Constructor and Description |
---|
DBCmdColumn(DBRowSet query,
DBColumnExpr expr)
Constructs a new DBCmdColumn object
|
DBColumn(DBRowSet rowset,
String name)
Constructs a DBColumn object and set the specified parameters to this object.
|
DBRecord(DBContext context,
DBRowSet rowset)
Constructs a new DBRecord.
|
DBRecord(DBContext context,
DBRowSet rowset,
boolean enableRollbackHandling)
Internal constructor for DBRecord
May be used by derived classes to provide special behaviour
|
Modifier and Type | Method and Description |
---|---|
protected static String |
RecordException.rowsetName(DBRowSet rowset) |
Constructor and Description |
---|
InvalidKeyException(DBRowSet rowset,
Object[] key) |
NoPrimaryKeyException(DBRowSet rowset) |
RecordDeleteFailedException(DBRowSet rowset,
Object[] key) |
RecordNotFoundException(DBRowSet rowset,
Object[] key) |
RecordUpdateAmbiguousException(DBRowSet rowset,
Object[] key) |
RecordUpdateFailedException(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 |
---|---|
class |
TRecord<CTX extends DBContext,T extends DBRowSet> |
Modifier and Type | Class and Description |
---|---|
class |
TTable<DB extends TDatabase<DB>> |
class |
TView<DB extends TDatabase<DB>> |
Modifier and Type | Field and Description |
---|---|
T |
TRecord.T |
Modifier and Type | Field and Description |
---|---|
protected DBRowSet |
DBRecordListFactoryImpl.rowset |
Modifier and Type | Method and Description |
---|---|
protected static <T extends DBRecordBase> |
DBRecordListFactoryImpl.findRecordConstructor(Class<T> recordClass,
Class<? extends DBContext> contextClass,
Class<? extends DBRowSet> rowsetClass)
Finds a constructor for recordClass
|
Constructor and Description |
---|
DBRecordListFactoryImpl(Class<T> recordClass,
Class<? extends DBContext> contextClass,
DBRowSet rowset)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBRecordListFactoryImpl(Constructor<T> constructor,
DBRowSet rowset)
Constructs a DBRecordListFactoryImpl based on an DBRecord constructor
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,DBRowSet> |
DBModelParser.tableMap |
Modifier and Type | Method and Description |
---|---|
protected DBRowSet |
DBModelParser.getTable(String tableName) |
Modifier and Type | Method and Description |
---|---|
protected Collection<DBRowSet> |
DBModelParser.getTables() |
Modifier and Type | Method and Description |
---|---|
protected DBColumn |
DBModelParser.addColumn(DBRowSet t,
ResultSet rs) |
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerBase.DBSeqTable
This class is used to emulate sequences by using a sequence table.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBCommandHSql.addUpdateWithJoins(DBSQLBuilder sql,
DBRowSet table) |
Modifier and Type | Method and Description |
---|---|
protected void |
DBMSHandlerMySQL.DBCommandMySQL.addDeleteWithJoins(DBSQLBuilder sql,
DBRowSet table) |
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 |
Modifier and Type | Method and Description |
---|---|
protected void |
DBCommandOracle.addDeleteForTable(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommandOracle.addDeleteWithJoins(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommandOracle.addUpdateForTable(DBSQLBuilder sql,
DBRowSet table) |
protected void |
DBCommandOracle.addUpdateWithJoins(DBSQLBuilder sql,
DBRowSet table) |
Modifier and Type | Method and Description |
---|---|
protected void |
DBCommandPostgres.addUpdateWithJoins(DBSQLBuilder sql,
DBRowSet table) |
Constructor and Description |
---|
BeanIncompatibleException(Class<?> clazz,
DBRowSet rowset) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.