Package | Description |
---|---|
org.apache.empire.data.list | |
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.expr.join |
This package contains SQL-generator classes for join expressions used in the from clause.
|
org.apache.empire.db.expr.order | |
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.derby |
This package contains classes necessary to support the Apache Derby database system.
|
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 |
---|---|
<T extends DBDatabase> |
DataListHead.getDatabase(Class<T> dbClass)
Returns the database instance associated with this DataList (if any)
The database is extracted from the column list
|
Modifier and Type | Field and Description |
---|---|
protected DBDatabase |
DBRowSet.db |
Modifier and Type | Method and Description |
---|---|
abstract <T extends DBDatabase> |
DBObject.getDatabase()
Returns the database object to which this object belongs to.
|
Modifier and Type | Method and Description |
---|---|
static DBDatabase |
DBDatabase.findByClass(Class<? extends DBDatabase> cls)
find a database by id
|
static DBDatabase |
DBDatabase.findByIdentifier(String dbIdent)
find a database by id
|
DBDatabase |
DBRowSet.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBRelation.getDatabase() |
DBDatabase |
DBRecordBase.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBReader.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBIndex.getDatabase() |
DBDatabase |
DBExpressionIndex.getDatabase() |
DBDatabase |
DBDatabase.getDatabase() |
DBDatabase |
DBCommand.getDatabase() |
DBDatabase |
DBCombinedCmd.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBColumn.getDatabase() |
DBDatabase |
DBCmdParam.getDatabase() |
Modifier and Type | Method and Description |
---|---|
protected void |
DBDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations. |
protected void |
DBDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for dropping a database to the given script object
|
protected void |
DBReader.init(DBDatabase db,
DBColumnExpr[] columns,
ResultSet rset)
Initialize the reader from an open JDBC-ResultSet
|
Modifier and Type | Method and Description |
---|---|
static DBDatabase |
DBDatabase.findByClass(Class<? extends DBDatabase> cls)
find a database by id
|
Constructor and Description |
---|
DBCmdQuery(DBCommandExpr cmd,
DBDatabase db,
DBColumnExpr[] exprList)
Creates a new DBCmdQueryObject
|
DBRelation(DBDatabase db,
String name,
DBRelation.DBReference[] references)
Creates a DBRelation object for a foreing key relation.
|
DBRelation(DBDatabase db,
String name,
DBRelation.DBReference[] references,
DBRelation.DBCascadeAction onDeleteAction)
Creates a DBRelation object for a foreing key relation.
|
DBRowSet(DBDatabase db)
Constructs a DBRecord object set the current database object.
|
DBTable(String name,
DBDatabase db)
Construct a new DBTable object set the specified parameters
to this object and add this object to the current database.
|
DBTable(String name,
DBDatabase db,
String alias)
Construct a new DBTable object set the specified parameters
to this object and add this object to the current database.
|
DBView(String name,
DBDatabase db)
Creates a view object for a given view in the database.
|
DBView(String name,
DBDatabase db,
boolean isUpdateable)
Creates a view object for a given view in the database.
|
Constructor and Description |
---|
DatabaseNotOpenException(DBDatabase db) |
Modifier and Type | Field and Description |
---|---|
DBDatabase |
DBValueExpr.db |
DBDatabase |
DBScalarExpr.db |
Modifier and Type | Method and Description |
---|---|
<T extends DBDatabase> |
DBCmdResultExpr.getDatabase() |
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBVarArgsFuncExpr.getDatabase() |
DBDatabase |
DBValueExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBScalarExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBParenthesisExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBCountExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBConcatExpr.getDatabase() |
DBDatabase |
DBCaseExpr.getDatabase() |
DBDatabase |
DBCalcExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBAliasExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBAbstractFuncExpr.getDatabase()
Returns the current DBDatabase object.
|
Constructor and Description |
---|
DBCaseExpr(DBDatabase db) |
DBCaseWhenExpr(DBDatabase db,
Map<DBCompareExpr,? extends Object> whenMap,
Object elseValue)
Constructs a DBCaseExpr
|
DBScalarExpr(DBDatabase db,
String template,
Object[] params,
DataType dataType)
Constructs a new DBValueExpr object.
|
DBScalarExpr(DBDatabase db,
String template,
Object param,
DataType dataType)
Constructs a new DBValueExpr object.
|
DBValueExpr(DBDatabase db,
Object value,
DataType type)
Constructs a new DBValueExpr object.
|
DBVarArgsFuncExpr(DBDatabase db,
DataType dataType,
String template,
DBColumnExpr... cols) |
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBExistsExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBCompareParenthesisExpr.getDatabase() |
DBDatabase |
DBCompareNotExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBCompareColExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBCompareAndOrExpr.getDatabase()
Returns the current DBDatabase object.
|
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBCrossJoinExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBColumnJoinExpr.getDatabase()
Returns the current DBDatabase object.
|
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBOrderByExpr.getDatabase() |
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBSetExpr.getDatabase()
Returns the current DBDatabase object.
|
Modifier and Type | Class and Description |
---|---|
class |
TDatabase<DB extends TDatabase<DB>> |
Modifier and Type | Interface and Description |
---|---|
interface |
DataBean<DB extends DBDatabase> |
Modifier and Type | Field and Description |
---|---|
protected DBDatabase |
DBModelParser.remoteDb |
protected DBDatabase |
DBModelChecker.remoteDb |
Modifier and Type | Method and Description |
---|---|
protected DBDatabase |
DBModelParser.createRemoteDatabase() |
DBDatabase |
DBModelParser.getDatabase()
Returns the RemoteDatabase
Only available after parseModel() is called
|
DBDatabase |
DBModelChecker.getRemoteDatabase()
Returns the RemoteDatabase
Only available after parseModel() is called
|
Modifier and Type | Method and Description |
---|---|
void |
DBModelChecker.checkModel(DBDatabase db,
Connection conn,
DBModelErrorHandler handler)
Populates the remote database and compares it against the given database
|
void |
DBModelChecker.checkRemoteAgainst(DBDatabase db,
DBModelErrorHandler handler)
Check the remote database against an existing model
|
Modifier and Type | Method and Description |
---|---|
void |
DBMSHandlerBase.attachDatabase(DBDatabase db,
Connection conn)
Called when a database is opened
|
void |
DBMSHandler.attachDatabase(DBDatabase db,
Connection conn)
Called when a database is opened
|
boolean |
DBMSHandlerBase.checkExists(DBDatabase db,
Connection conn)
checks if the database exists
The default implementation performs a simple count query on the first table or view
SELECT count(*) FROM table
|
boolean |
DBMSHandler.checkExists(DBDatabase db,
Connection conn)
Checks if a database exists
|
DBModelChecker |
DBMSHandlerBase.createModelChecker(DBDatabase db)
Creates a DataModelChecker instance of this DBMSHandler
|
DBModelChecker |
DBMSHandler.createModelChecker(DBDatabase db)
Creates a DataModelChecker instance of this DBMSHandler
|
void |
DBMSHandlerBase.detachDatabase(DBDatabase db,
Connection conn)
Called when a database is closed
|
void |
DBMSHandler.detachDatabase(DBDatabase db,
Connection conn)
Called when a database is closed
|
Object |
DBMSHandlerBase.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
Object |
DBMSHandler.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
abstract Object |
DBMSHandlerBase.getNextSequenceValue(DBDatabase db,
String SeqName,
int minValue,
Connection conn)
Returns the next value of a named sequence The numbers are used for fields of type DBExpr.DT_AUTOINC.
|
Constructor and Description |
---|
DBSeqTable(String tableName,
DBDatabase db)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
DBMSHandlerDerby.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
Object |
DBMSHandlerH2.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
protected void |
HSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
DBModelChecker |
DBMSHandlerHSql.createModelChecker(DBDatabase db)
Creates a DBModelChecker instance of this DBMSHandler
|
protected void |
HSqlDDLGenerator.createSequence(DBDatabase db,
DBTableColumn column,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
Object |
DBMSHandlerHSql.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
DBMSHandlerMySQL.attachDatabase(DBDatabase db,
Connection conn) |
protected void |
MySQLDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
Object |
DBMSHandlerMySQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Modifier and Type | Class and Description |
---|---|
class |
OracleSYSDatabase
Represents the data model of the system tables.
|
Modifier and Type | Field and Description |
---|---|
DBDatabase |
OracleRowNumExpr.db |
Modifier and Type | Method and Description |
---|---|
DBDatabase |
OracleRowNumExpr.getDatabase()
Returns the current DBDatabase object.
|
Modifier and Type | Method and Description |
---|---|
void |
DBMSHandlerOracle.checkDatabase(DBDatabase db,
String owner,
Connection conn)
Checks whether the database definition matches the real database structure.
|
protected void |
OracleDDLGenerator.createComment(DBDatabase db,
String type,
DBExpr expr,
String comment,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
DBModelChecker |
DBMSHandlerOracle.createModelChecker(DBDatabase db)
Creates a DataModelChecker instance of this DBMSHandler
|
protected void |
OracleDDLGenerator.createSequence(DBDatabase db,
DBTableColumn column,
DBSQLScript script)
Returns true if the sequence has been created successfully.
|
protected void |
OracleDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script) |
Object |
DBMSHandlerOracle.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBColComments(DBDatabase db) |
DBColInfo(DBDatabase db) |
DBConstraints(DBDatabase db) |
DBTabComments(DBDatabase db) |
DBUserConCol(DBDatabase db) |
OracleRowNumExpr(DBDatabase db)
Constructs a new OracleRowNumExpr object.
|
Modifier and Type | Method and Description |
---|---|
DBDatabase |
PostgresIntervalExpr.getDatabase() |
DBDatabase |
PostgresBoolAndOrExpr.getDatabase() |
DBDatabase |
PostgresAtAt.getDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
DBMSHandlerPostgreSQL.attachDatabase(DBDatabase db,
Connection conn)
Initialize Database on open
|
protected void |
PostgresDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
PostgresDDLGenerator.createSequence(DBDatabase db,
DBTableColumn column,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
Object |
DBMSHandlerPostgreSQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
protected void |
DBMSHandlerPostgreSQL.initSerialSequenceNames(DBDatabase db,
Connection conn)
Initializes the Sequence names of SERIAL and BIGSERIAL columns
|
Constructor and Description |
---|
PostgresIntervalExpr(DBDatabase db,
int quantity,
PostgresIntervalExpr.PostgresIntervalUnitField unit) |
Modifier and Type | Method and Description |
---|---|
Object |
DBMSHandlerSQLite.getNextSequenceValue(DBDatabase db,
String SeqName,
int minValue,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
DBMSHandlerMSSQL.attachDatabase(DBDatabase db,
Connection conn)
Called when a database is opened
|
boolean |
DBMSHandlerMSSQL.checkExists(DBDatabase db,
Connection conn)
checks if the database exists
The default implementation performs a simple count query on the first table or view
SELECT count(*) FROM table
|
protected void |
MSSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
DBModelChecker |
DBMSHandlerMSSQL.createModelChecker(DBDatabase db) |
Object |
DBMSHandlerMSSQL.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
Object |
DBMSHandlerMSSQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.