Package | Description |
---|---|
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.compare |
This package contains SQL-generator classes for compare expressions used in the where and having 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 | Class and Description |
---|---|
class |
DBCombinedCmd
This class is used for building up a partition of a SQL-Command.
|
class |
DBCommand
This abstract class handles the creation of the SQL-Commands.
|
Modifier and Type | Field and Description |
---|---|
protected DBCommandExpr |
DBQuery.cmdExpr |
protected DBCommandExpr |
DBCombinedCmd.left |
protected DBCommandExpr |
DBCombinedCmd.right |
Modifier and Type | Method and Description |
---|---|
DBCommandExpr |
DBCommandExpr.clone()
Creates a clone of this class.
|
abstract DBCommandExpr |
DBView.createCommand()
Returns the command required to create the view
This is function is only used for the creation of DDL statements |
DBCommandExpr |
DBQuery.getCommandExpr()
returns the underlying command expression
|
DBCommandExpr |
DBCommandExpr.intersect(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "INTERSECT" and the selected DBCommandExpr.
|
DBCommandExpr |
DBCommandExpr.limitRows(int numRows)
set the maximum number of rows to return when executing a query command
A negative value will remove the limit.
|
DBCommandExpr |
DBCommandExpr.orderBy(DBColumnExpr... exprs)
Adds a list of columns to the orderBy clause in ascending order
|
DBCommandExpr |
DBCommandExpr.orderBy(DBColumnExpr expr,
boolean desc)
Adds an order by with ascending or descending order
|
DBCommandExpr |
DBCommandExpr.orderBy(DBOrderByExpr... exprs)
Adds an order by expression the command
|
DBCommandExpr |
DBCombinedCmd.orderBy(DBOrderByExpr... exprs) |
DBCommandExpr |
DBCommandExpr.skipRows(int numRows)
sets the offset of the first row to return when executing a query command.
|
DBCommandExpr |
DBCommandExpr.union(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "UNION" and the selected DBCommandExpr.
|
DBCommandExpr |
DBCommandExpr.unionAll(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "UNION ALL" and the selected DBCommandExpr.
|
Modifier and Type | Method and Description |
---|---|
void |
DBSQLBuilder.append(DBCommandExpr subQueryCmd) |
protected DataListHead |
DBUtils.createDefaultDataListHead(DBCommandExpr cmd,
Class<? extends DataListEntry> entryClass)
Crates a default DataListHead for a DataListEntry class
|
<T> DBBeanListFactory<T> |
DBUtils.getCommandBeanListFactory(Class<T> beanType,
DBCommandExpr cmd)
gets or creates DBBeanListFactory for the given rowset
|
void |
DBReader.getRecordData(DBCommandExpr cmd)
Opens the reader by executing the given SQL command and moves to the first row.
|
DBCommandExpr |
DBCommandExpr.intersect(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "INTERSECT" and the selected DBCommandExpr.
|
void |
DBReader.open(DBCommandExpr cmd)
Opens the reader by executing the given SQL command.
|
void |
DBReader.open(DBCommandExpr cmd,
boolean scrollable)
Opens the reader by executing the given SQL command.
|
<T> T |
DBUtils.queryBean(DBCommandExpr cmd,
Class<T> beanType)
Queries a single Java Bean for a given command
|
<T> T |
DBUtils.queryBean(DBCommandExpr cmd,
DBBeanListFactory<T> factory)
queries a single Java Bean for a given command
|
<T> List<T> |
DBUtils.queryBeanList(DBCommandExpr cmd,
Class<T> beanType,
DBRowSet rowset,
Object parent)
Queries a list of Java beans for a given command
|
<T> List<T> |
DBUtils.queryBeanList(DBCommandExpr cmd,
Class<T> beanType,
Object parent)
Queries a list of Java beans for a given command
|
<T> List<T> |
DBUtils.queryBeanList(DBCommandExpr cmd,
DBBeanListFactory<T> factory,
Object parent)
Queries a list of Java beans for a given command
|
<T> List<T> |
DBUtils.queryBeanList(DBCommandExpr cmd,
DBBeanListFactory<T> factory,
Object parent,
int first,
int pageSize)
Query a list of simple Java objects (beans)
|
DataListEntry |
DBUtils.queryDataEntry(DBCommandExpr cmd)
Queries a single DataListEntry item
|
<T extends DataListEntry> |
DBUtils.queryDataEntry(DBCommandExpr cmd,
Class<T> entryClass)
Queries a single DataListEntry item
|
<T extends DataListEntry> |
DBUtils.queryDataEntry(DBCommandExpr cmd,
Class<T> entryClass,
boolean failOnNoResult)
Queries a single DataListEntry item
|
List<DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd)
Queries a list of DataListEntry items
|
<T extends DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd,
Class<T> entryClass)
Queries a list of DataListEntry items
|
<T extends DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd,
Class<T> entryClass,
DataListHead head)
Queries a list of DataListEntry items
|
<T extends DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd,
Class<T> entryClass,
int first,
int maxItems)
Queries a list of DataListEntry items
|
<T extends DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd,
DataListFactory<T> factory,
int first,
int pageSize)
Executes a query and returns a list of DataListEntry items
|
List<DataListEntry> |
DBUtils.queryDataList(DBCommandExpr cmd,
int first,
int maxItems)
Queries a list of DataListEntry items
|
List<Object[]> |
DBUtils.queryObjectList(DBCommandExpr cmd)
Returns the result of a query as a list Object-Arrays
This function should only be used for small lists.
|
Options |
DBUtils.queryOptionList(DBCommandExpr cmd)
Returns a list of key value pairs from an sql query.
|
int |
DBUtils.queryOptionList(DBCommandExpr cmd,
Options options)
Fills an option list provided with the result from a query.
|
<T> List<T> |
DBUtils.querySimpleList(Class<T> c,
DBCommandExpr cmd)
Returns a one dimensional array from an sql query.
|
<T> int |
DBUtils.querySimpleList(Class<T> c,
DBCommandExpr cmd,
Collection<T> result)
Adds the first column of a query result to a collection.
|
List<Object> |
DBUtils.querySimpleList(DBCommandExpr cmd)
Returns a one dimensional array from an sql query.
|
int |
DBUtils.querySingleInt(DBCommandExpr cmd)
Returns the value of the first row/column of a sql-query as an int.
|
int |
DBUtils.querySingleInt(DBCommandExpr cmd,
int defaultValue)
Returns the value of the first row/column of a sql-query as an int.
|
long |
DBUtils.querySingleLong(DBCommandExpr cmd)
Returns the value of the first row/column of a sql-query as a long.
|
long |
DBUtils.querySingleLong(DBCommandExpr cmd,
long defaultValue)
Returns the value of the first row/column of a sql-query as a long.
|
Object[] |
DBUtils.querySingleRow(DBCommandExpr cmd)
Returns all values of the first row of a sql-query as an array.
|
String |
DBUtils.querySingleString(DBCommandExpr cmd)
Returns the value of the first row/column of a sql-query as a string.
|
String |
DBUtils.querySingleString(DBCommandExpr cmd,
String defaultValue)
Returns the value of the first row/column of a sql-query as a string.
|
Object |
DBUtils.querySingleValue(DBCommandExpr cmd)
Returns the value of the first row/column of a sql-query as an object.
|
Object |
DBUtils.querySingleValue(DBCommandExpr cmd,
boolean failOnNoResult)
Returns the value of the first row/column of a sql-query as an object.
|
<T> T |
DBUtils.querySingleValue(DBCommandExpr cmd,
Class<T> resultType,
boolean failOnNoResult)
Returns the value of the first row/column of a sql-query as an object.
|
DBCommandExpr |
DBCommandExpr.union(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "UNION" and the selected DBCommandExpr.
|
DBCommandExpr |
DBCommandExpr.unionAll(DBCommandExpr other)
Constructs a new DBCombinedCmd object with this object,
the key word= "UNION ALL" and the selected DBCommandExpr.
|
Constructor and Description |
---|
DBCmdQuery(DBCommandExpr cmd,
DBDatabase db,
DBColumnExpr[] exprList)
Creates a new DBCmdQueryObject
|
DBCombinedCmd(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
Constructs a new DBFuncExpr object and
sets the specified parameters to this object.
|
DBQuery(DBCommandExpr cmd)
Creaes a DBQuery object from a given command object.
|
DBQuery(DBCommandExpr cmd,
DBColumn keyColumn)
Constructs a new DBQuery object initialize the query object.
|
DBQuery(DBCommandExpr cmd,
DBColumn[] keyColumns)
Constructor initializes the query object.
|
DBQuery(DBCommandExpr cmd,
DBColumn[] keyColumns,
String alias)
Constructor initializes the query object.
|
DBQuery(DBCommandExpr cmd,
DBColumn keyColumn,
String alias)
Constructs a new DBQuery object initialize the query object.
|
DBQuery(DBCommandExpr cmd,
String alias)
Creaes a DBQuery object from a given command object.
|
Constructor and Description |
---|
CommandWithoutSelectException(DBCommandExpr cmd) |
Constructor and Description |
---|
DBCmdResultExpr(DBCommandExpr cmdExpr) |
Modifier and Type | Field and Description |
---|---|
DBCommandExpr |
DBExistsExpr.cmd |
Constructor and Description |
---|
DBExistsExpr(DBCommandExpr cmd)
Constructs a DBExistsExpr object set the specified parameters to this object.
|
DBExistsExpr(DBCommandExpr cmd,
DBCompareExpr compareExpr)
Constructs a DBExistsExpr object set the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
DBBeanListFactoryImpl.prepareQuery(DBCommandExpr cmd,
DBContext context) |
void |
DBBeanListFactory.prepareQuery(DBCommandExpr 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 |
---|---|
DBCommandExpr |
DBMSHandlerBase.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
This function gives the dbms a chance to provide a custom implementation
for a combined command such as UNION or INTERSECT
|
DBCommandExpr |
DBMSHandler.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
This function gives the dbms a chance to provide a custom implementation
for a combined command such as UNION or INTERSECT
|
Modifier and Type | Method and Description |
---|---|
DBCommandExpr |
DBMSHandlerBase.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
This function gives the dbms a chance to provide a custom implementation
for a combined command such as UNION or INTERSECT
|
DBCommandExpr |
DBMSHandler.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right)
This function gives the dbms a chance to provide a custom implementation
for a combined command such as UNION or INTERSECT
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerH2.DBCommandH2
Defines the H2 command type.
|
Modifier and Type | Class and Description |
---|---|
class |
DBCommandHSql
This class handles the special features of an HSqlDB database.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerMySQL.DBCommandMySQL
Defines the MySQL command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommandExpr |
DBMSHandlerMySQL.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right) |
Modifier and Type | Method and Description |
---|---|
DBCommandExpr |
DBMSHandlerMySQL.createCombinedCommand(DBCommandExpr left,
String keyWord,
DBCommandExpr right) |
Modifier and Type | Class and Description |
---|---|
class |
DBCommandOracle
This class handles the special features of an oracle database.
|
Modifier and Type | Class and Description |
---|---|
class |
DBCommandPostgres
Defines the PostgreSQL command type.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerSQLite.DBCommandSQLite
Defines the SQLite command type.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBMSHandlerMSSQL.DBCommandMSSQL
Provides a DBCommand implementation for Microsoft SQL-Server
|
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.