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.derby |
This package contains classes necessary to support the Apache Derby database system.
|
org.apache.empire.db.h2 |
This package contains classes necessary to support the H2 database system.
|
org.apache.empire.db.hsql |
This package contains classes necessary to support the HSQLDB database system.
|
org.apache.empire.db.mysql |
This package contains classes necessary to support the MySQL database system.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.db.postgresql |
This package contains classes necessary to support the PostgreSQL database system.
|
org.apache.empire.db.sqlite | |
org.apache.empire.db.sqlserver |
This package contains classes necessary to support the Microsoft SQL-Server database system.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
BeanResult.getCommand() |
Constructor and Description |
---|
BeanResult(Class<T> clazz,
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
|
abstract DBCommand |
DBDatabaseDriver.createCommand(DBDatabase db)
This function creates a DBCommand derived object this database
|
Modifier and Type | Method and Description |
---|---|
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 upd,
DBColumn updCol,
DBColumn keyCol,
DBColumn[] keyColumns,
DBRecord rec)
Adds join restrictions to the supplied command object.
|
void |
DBSQLScript.addUpdate(DBCommand cmd)
Adds an update statement
|
int |
DBDatabase.executeDelete(DBTable from,
DBCommand cmd,
Connection conn)
Executes a Delete statement from a command object
|
int |
DBDatabase.executeInsert(DBCommand cmd,
Connection conn)
Executes an Insert statement from a command object
|
int |
DBDatabase.executeUpdate(DBCommand cmd,
Connection conn)
Executes an Update statement from a command object
|
protected List<Object[]> |
DBReader.findSubQueryParams(DBCommand cmd)
internal helper function to find parameterized subqueries
|
List<Object[]> |
DBDatabase.queryObjectList(DBCommand cmd,
Connection conn)
Returns the result of a query as a list Object-Arrays
This function should only be used for small lists.
|
int |
DBDatabase.queryObjectList(DBCommand cmd,
Connection conn,
Collection<Object[]> result)
Adds the result of a query to a given collection.
|
Options |
DBDatabase.queryOptionList(DBCommand cmd,
Connection conn)
Returns a list of key value pairs from an sql query.
|
int |
DBDatabase.queryOptionList(DBCommand cmd,
Connection conn,
Options result)
Fills an option list provided with the result from a query.
|
<T> List<T> |
DBDatabase.querySimpleList(Class<T> c,
DBCommand cmd,
Connection conn)
Returns a one dimensional array from an sql query.
|
<T> int |
DBDatabase.querySimpleList(Class<T> c,
DBCommand cmd,
Connection conn,
Collection<T> result)
Adds the first column of a query result to a collection.
|
List<Object> |
DBDatabase.querySimpleList(DBCommand cmd,
Connection conn)
Returns a one dimensional array from an sql query.
|
int |
DBDatabase.querySingleInt(DBCommand cmd,
Connection conn)
Returns the value of the first row/column of a sql-query as an int.
|
int |
DBDatabase.querySingleInt(DBCommand cmd,
int defaultValue,
Connection conn)
Returns the value of the first row/column of a sql-query as an int.
|
long |
DBDatabase.querySingleLong(DBCommand cmd,
Connection conn)
Returns the value of the first row/column of a sql-query as a long.
|
long |
DBDatabase.querySingleLong(DBCommand cmd,
long defaultValue,
Connection conn)
Returns the value of the first row/column of a sql-query as a long.
|
Object[] |
DBDatabase.querySingleRow(DBCommand cmd,
Connection conn)
Returns all values of the first row of a sql-query as an array.
|
String |
DBDatabase.querySingleString(DBCommand cmd,
Connection conn)
Returns the value of the first row/column of a sql-query as a string.
|
String |
DBDatabase.querySingleString(DBCommand cmd,
String defaultValue,
Connection conn)
Returns the value of the first row/column of a sql-query as a string.
|
Object |
DBDatabase.querySingleValue(DBCommand cmd,
Connection conn)
Returns the value of the first row/column of a sql-query as an object.
|
Object |
DBDatabase.querySingleValue(DBCommand cmd,
DataType dataType,
Connection conn)
Returns the value of the first row/column of a sql-query as an object.
|
protected void |
DBRowSet.readRecord(DBRecord rec,
DBCommand cmd,
Connection conn)
Reads a single record from the database using the given command object.
|
protected void |
DBRowSet.setKeyConstraints(DBCommand cmd,
Object[] key)
Set the constraints for a single record from a supplied key
|
Constructor and Description |
---|
DBCmdParam(DBCommand cmd,
DataType type,
Object value)
Protected constructor used e.g. by DBCommand.addParam(...)
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverDerby.DBCommandDerby
Defines the Derby command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverDerby.createCommand(DBDatabase db)
Creates a new Derby command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverH2.DBCommandH2
Defines the H2 command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverH2.createCommand(DBDatabase db)
Creates a new H2 command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverHSql.DBCommandHSql
Defines the HSQLDB command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverHSql.createCommand(DBDatabase db)
Creates a new HSQLDB command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverMySQL.DBCommandMySQL
Defines the MySQL command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverMySQL.createCommand(DBDatabase db)
Creates a new MySQL command object.
|
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 |
DBDatabaseDriverOracle.createCommand(DBDatabase db)
Creates a new Oracle command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverPostgreSQL.DBCommandPostreSQL
Defines the PostgreSQL command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverPostgreSQL.createCommand(DBDatabase db)
Creates a new PostgreSQL command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverSQLite.DBCommandSQLite
Defines the SQLite command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverSQLite.createCommand(DBDatabase db)
Creates a new SQLite command object.
|
Modifier and Type | Class and Description |
---|---|
static class |
DBDatabaseDriverMSSQL.DBCommandMSSQL
Defines the Microsoft SQL-Server command type.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverMSSQL.createCommand(DBDatabase db)
Creates a new Microsoft SQL-Server command object.
|
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.