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.context | |
org.apache.empire.db.expr.compare |
This package contains SQL-generator classes for compare expressions used in the where and having clause.
|
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.list | |
org.apache.empire.dbms | |
org.apache.empire.dbms.h2 |
This package contains classes necessary to support the H2 database system.
|
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.dbms.sqlite | |
org.apache.empire.dbms.sqlserver |
This package contains classes necessary to support the Microsoft SQL-Server database system.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
BeanResult.getCommand()
Returns the current command
Used to add constraints, order, grouping etc.
|
Constructor and Description |
---|
BeanResult(Class<T> beanType,
DBCommand cmd)
Create a bean result from a command object.
|
Modifier and Type | Field and Description |
---|---|
protected DBCommand |
DBCmdParam.cmd |
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBCommand.clone()
Creates a clone of this class.
|
DBCommand |
DBDatabase.createCommand()
Creates a new Command object for this database
Deprecated instead use context.createCommand();
|
DBCommand |
DBContext.createCommand() |
protected DBCommand |
DBRowSet.createRecordCommand(DBContext context)
Mabe use Prepared statements even if disabled in context
|
DBCommand |
DBCmdParam.getCmd()
Returns the command this parameter belongs to
|
protected DBCommand |
DBQuery.getCommandFromExpression()
returns the command from the underlying command expression or throws an exception
|
DBCommand |
DBCommand.groupAll()
Adds all select expressions which are not aggregates to the Group By clause
|
DBCommand |
DBCommand.groupBy(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the Group By clause of an sql statement.
|
DBCommand |
DBCommand.groupBy(DBColumnExpr... exprs)
Adds a list of columns to the Group By clause of an sql statement.
|
DBCommand |
DBCommand.groupBy(DBColumnExpr columnExpr)
Adds a column expression to the Group By clause of an sql statement.
|
DBCommand |
DBCommand.having(DBCompareExpr expr)
adds a constraint to the having clause.
|
DBCommand |
DBCommand.join(DBColumn[] left,
DBColumn[] right,
DBJoinType joinType,
DBCompareExpr... addlConstraints)
Multi-Column version of column based join expression
|
DBCommand |
DBCommand.join(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds an inner join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.join(DBColumnExpr left,
DBColumn right,
DBJoinType joinType,
DBCompareExpr... addlConstraints)
Adds a join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.join(DBJoinExpr join)
Adds a join to the list of join expressions.
|
DBCommand |
DBCommand.join(DBJoinExpr join,
DBJoinType joinType)
Adds a join to the list of join expressions.
|
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
|
DBCommand |
DBCommand.joinLeft(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds a left join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.joinLeft(DBJoinExpr join)
Adds a left join to the list of join expressions.
|
DBCommand |
DBCommand.joinRight(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds a right join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.joinRight(DBJoinExpr join)
Adds a left join to the list of join expressions.
|
DBCommand |
DBCommand.limitRows(int limitRows)
Overridden to change return type from DBCommandExpr to DBCommand
|
protected DBCommand |
DBView.newCommand()
Use this to create a new View command inside the createCommand() method!
|
DBCommand |
DBCommand.orderBy(DBColumnExpr... exprs)
Overridden to change return type from DBCommandExpr to DBCommand
|
DBCommand |
DBCommand.orderBy(DBColumnExpr expr,
boolean desc)
Overridden to change return type from DBCommandExpr to DBCommand
|
DBCommand |
DBCommand.orderBy(DBOrderByExpr... exprs)
Overridden to change return type from DBCommandExpr to DBCommand
|
DBCommand |
DBCommand.qualifyAll()
Makes sure all selected columns are identified by their proper names (qualified)
|
DBCommand |
DBCommand.select(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the select phrase of an sql statement.
|
DBCommand |
DBCommand.select(DBColumnExpr... exprs)
Adds a list of columns to the select phrase of an sql statement.
|
DBCommand |
DBCommand.select(DBColumnExpr expr)
Adds a DBColumnExpr object to the Select collection
|
DBCommand |
DBCommand.selectDistinct()
Sets whether or not the select statement should contain
the distinct directive .
|
DBCommand |
DBCommand.selectQualified(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the select phrase of an sql statement.
|
DBCommand |
DBCommand.selectQualified(DBColumnExpr... columns)
Adds a list of columns with their qualified name to the select phrase of an sql statement.
|
DBCommand |
DBCommand.set(DBSetExpr... exprs)
Adds a list of set expressions to this command
Use column.to(...) to create a set expression
|
DBCommand |
DBCommand.set(DBSetExpr expr)
Adds a single set expressions to this command
Use column.to(...) to create a set expression
|
DBCommand |
DBCommand.skipRows(int skipRows)
Overridden to change return type from DBCommandExpr to DBCommand
|
DBCommand |
DBCommand.where(DBCompareExpr... exprs)
Adds a list of constraints to the where phrase of the sql statement
If another restriction already exists for the same column it will be replaced.
|
DBCommand |
DBCommand.where(DBCompareExpr expr)
Adds a constraint to the where phrase of the sql statement
If another restriction already exists for the same column it will be replaced.
|
Modifier and Type | Method and Description |
---|---|
void |
DBCmdParamList.add(DBCommand cmd,
DataType type,
Object value) |
void |
DBSQLScript.addDelete(DBCommand cmd,
DBTable table)
Adds an delete statement
|
void |
DBSQLScript.addInsert(DBCommand cmd)
Adds an insert statement
|
protected boolean |
DBQuery.addJoinRestriction(DBCommand cmd,
DBColumn updCol,
DBColumn joinCol,
DBColumn[] keyColumns,
Object[] key,
DBRecordBase record)
Adds join restrictions to the supplied command object.
|
void |
DBSQLScript.addUpdate(DBCommand cmd)
Adds an update statement
|
void |
DBCmdParamList.completeParamUsage(DBCommand cmd)
internally used to remove unused Command Params from list
Note: Only one thread my generate an SQL statement
|
int |
DBContext.executeDelete(DBTable from,
DBCommand cmd) |
int |
DBContext.executeInsert(DBCommand cmd) |
int |
DBContext.executeInsertInto(DBTable table,
DBCommand cmd) |
int |
DBContext.executeUpdate(DBCommand cmd) |
<R extends DBRecordBase> |
DBUtils.queryRecordList(DBCommand cmd,
DBRecordListFactory<R> factory,
int first,
int pageSize)
Executes a query and returns a list of DBRecord items
|
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
|
int |
DBUtils.queryRowCount(DBCommand cmd)
Returns the number of rows returned by executing the select statement
|
protected void |
DBRowSet.readRecord(DBRecordBase record,
DBCommand cmd)
Reads a single record from the database using the given command object.
|
void |
DBCmdParamList.resetParamUsage(DBCommand cmd)
internally used to reset the command param usage count.
|
Constructor and Description |
---|
DBCmdParam(DBCommand cmd,
DataType type,
Object value)
Protected constructor used e.g. by DBCommand.addParam(...)
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBContextBase.createCommand()
Creates a new Command object for the given database
|
Modifier and Type | Method and Description |
---|---|
int |
DBContextBase.executeDelete(DBTable from,
DBCommand cmd)
Executes a Delete statement from a command object
|
int |
DBContextBase.executeInsert(DBCommand cmd)
Executes an Insert statement from a command object
|
int |
DBContextBase.executeInsertInto(DBTable table,
DBCommand cmd)
Executes an InsertInfo statement from a command object
|
int |
DBContextBase.executeUpdate(DBCommand cmd)
Executes an Update statement from a command object
|
Modifier and Type | Method and Description |
---|---|
DBCompareExpr |
DBExistsExpr.copy(DBCommand newCmd)
Copy Command
|
DBCompareExpr |
DBCompareParenthesisExpr.copy(DBCommand newCmd) |
DBCompareExpr |
DBCompareNotExpr.copy(DBCommand newCmd)
Copy Command
|
abstract DBCompareExpr |
DBCompareExpr.copy(DBCommand newCmd)
internally used for command cloning
|
DBCompareExpr |
DBCompareColExpr.copy(DBCommand newCmd)
Copy Command
|
DBCompareExpr |
DBCompareAndOrExpr.copy(DBCommand newCmd)
Copy Command
|
void |
DBExistsExpr.prepareCommand(DBCommand cmd)
Prepare function
|
void |
DBCompareParenthesisExpr.prepareCommand(DBCommand cmd) |
void |
DBCompareNotExpr.prepareCommand(DBCommand cmd)
Prepare function
|
abstract void |
DBCompareExpr.prepareCommand(DBCommand cmd)
internally used for preapred statement generation
|
void |
DBCompareColExpr.prepareCommand(DBCommand cmd)
Prepare function
|
void |
DBCompareAndOrExpr.prepareCommand(DBCommand cmd)
Prepare function
|
Modifier and Type | Method and Description |
---|---|
abstract DBJoinExpr |
DBJoinExpr.copy(DBCommand newCmd)
Copy Command
|
DBJoinExpr |
DBCrossJoinExpr.copy(DBCommand newCmd)
Copy Command
|
DBJoinExpr |
DBCompareJoinExpr.copy(DBCommand newCmd)
Copy Command
|
DBJoinExpr |
DBColumnJoinExpr.copy(DBCommand newCmd)
Copy Command
|
abstract void |
DBJoinExpr.prepareCommand(DBCommand cmd)
internally used for preapred statement generation
|
void |
DBCrossJoinExpr.prepareCommand(DBCommand cmd)
prepareCommand
Nothing to do here
|
void |
DBCompareJoinExpr.prepareCommand(DBCommand cmd)
prepareCommand
|
void |
DBColumnJoinExpr.prepareCommand(DBCommand cmd)
prepareCommand
|
Modifier and Type | Method and Description |
---|---|
DBSetExpr |
DBSetExpr.copy(DBCommand newCmd)
Copy Command
|
Modifier and Type | Method and Description |
---|---|
void |
DBRecordListFactoryImpl.prepareQuery(DBCommand cmd,
DBContext context) |
void |
DBRecordListFactory.prepareQuery(DBCommand cmd,
DBContext context) |
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerBase.DBMSCommand
DBMSCommand
A Default DBCommand implementation with no additional features
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerBase.createCommand(boolean autoPrepareStmt)
This function creates a DBCommand derived object this database
|
DBCommand |
DBMSHandler.createCommand(boolean autoPrepareStmt)
This function creates a DBCommand for this DBMS
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerH2.DBCommandH2
Defines the H2 command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerH2.createCommand(boolean autoPrepareStmt)
Creates a new H2 command object.
|
DBCommand |
DBMSHandlerH2.DBCommandH2.limitRows(int limitRows) |
DBCommand |
DBMSHandlerH2.DBCommandH2.skipRows(int skipRows) |
Modifier and Type | Class and Description |
---|---|
class |
DBCommandHSql
This class handles the special features of an HSqlDB database.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerHSql.createCommand(boolean autoPrepareStmt)
Override standard command
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerMySQL.DBCommandMySQL
Defines the MySQL command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerMySQL.createCommand(boolean autoPrepareStmt)
Creates a new MySQL command object.
|
DBCommand |
DBMSHandlerMySQL.DBCommandMySQL.limitRows(int numRows) |
DBCommand |
DBMSHandlerMySQL.DBCommandMySQL.skipRows(int numRows) |
Modifier and Type | Class and Description |
---|---|
class |
DBCommandOracle
This class handles the special features of an oracle database.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerOracle.createCommand(boolean autoPrepareStmt)
Creates a new Oracle command object.
|
Modifier and Type | Class and Description |
---|---|
class |
DBCommandPostgres
Defines the PostgreSQL command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBCommandPostgres.limitRows(int numRows) |
DBCommand |
DBCommandPostgres.skipRows(int numRows) |
Modifier and Type | Method and Description |
---|---|
DBCompareExpr |
PostgresAtAt.copy(DBCommand newCmd) |
void |
PostgresAtAt.prepareCommand(DBCommand cmd) |
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerSQLite.DBCommandSQLite
Defines the SQLite command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerSQLite.createCommand(boolean autoPrepareStmt)
Creates a new SQLite command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerMSSQL.DBCommandMSSQL
Provides a DBCommand implementation for Microsoft SQL-Server
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBMSHandlerMSSQL.createCommand(boolean autoPrepareStmt)
Creates a new Microsoft SQL-Server command object.
|
DBCommand |
DBMSHandlerMSSQL.DBCommandMSSQL.limitRows(int numRows) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.