Package | Description |
---|---|
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.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.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.
|
org.apache.empire.db.validation |
Modifier and Type | Field and Description |
---|---|
protected DBDatabase |
DBRowSet.db |
Modifier and Type | Method and Description |
---|---|
static DBDatabase |
DBDatabase.findByClass(Class<? extends DBDatabase> cls)
find a database by id
|
static DBDatabase |
DBDatabase.findById(String dbIdent)
find a database by id
|
DBDatabase |
DBRowSet.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBRelation.getDatabase() |
DBDatabase |
DBRecord.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBReader.getDatabase()
Returns the current DBDatabase object.
|
abstract DBDatabase |
DBObject.getDatabase()
Returns the database object to which this object belongs to.
|
DBDatabase |
DBIndex.getDatabase() |
DBDatabase |
DBExpressionIndex.getDatabase() |
DBDatabase |
DBDatabase.getDatabase() |
DBDatabase |
DBCommand.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBCombinedCmd.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBColumn.getDatabase() |
DBDatabase |
DBCmdParam.getDatabase() |
Modifier and Type | Method and Description |
---|---|
protected void |
DBDatabaseDriver.attachDatabase(DBDatabase db,
Connection conn)
Called when a database is opened
|
void |
DBDatabaseDriver.checkDatabase(DBDatabase db,
String owner,
Connection conn)
Checks the database whether or not it is consistent with the description.
|
abstract DBCommand |
DBDatabaseDriver.createCommand(DBDatabase db)
This function creates a DBCommand derived object this database
|
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 |
DBDatabaseDriver.detachDatabase(DBDatabase db,
Connection conn)
Called when a database is closed
|
protected void |
DBDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for dropping a database to the given script object
|
Object |
DBDatabaseDriver.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
abstract Object |
DBDatabaseDriver.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.
|
protected void |
DBReader.init(DBDatabase db,
DBColumnExpr[] colList,
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 |
---|
DBCommand(DBDatabase db)
Constructs a new DBCommand object and set the specified DBDatabase object.
|
DBDatabaseDriver.DBSeqTable(String tableName,
DBDatabase db)
Constructor
|
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.
|
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverDerby.createCommand(DBDatabase db)
Creates a new Derby command object.
|
Object |
DBDatabaseDriverDerby.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverDerby.DBCommandDerby(DBDatabase db) |
Constructor and Description |
---|
DatabaseNotOpenException(DBDatabase db) |
Modifier and Type | Field and Description |
---|---|
DBDatabase |
DBValueExpr.db |
DBDatabase |
DBScalarExpr.db |
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBValueExpr.getDatabase()
Returns the current DBDatabase object.
|
DBDatabase |
DBScalarExpr.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 |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
DBDatabase |
DBParenthesisExpr.getDatabase() |
DBDatabase |
DBExistsExpr.getDatabase()
Returns the current DBDatabase object.
|
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 | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverH2.createCommand(DBDatabase db)
Creates a new H2 command object.
|
Object |
DBDatabaseDriverH2.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverH2.DBCommandH2(DBDatabase db) |
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverHSql.createCommand(DBDatabase db)
Creates a new HSQLDB command object.
|
protected void |
HSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
HSqlDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
Object |
DBDatabaseDriverHSql.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverHSql.DBCommandHSql(DBDatabase db) |
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverMySQL.attachDatabase(DBDatabase db,
Connection conn) |
DBCommand |
DBDatabaseDriverMySQL.createCommand(DBDatabase db)
Creates a new MySQL command object.
|
protected void |
MySQLDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
Object |
DBDatabaseDriverMySQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverMySQL.DBCommandMySQL(DBDatabase db) |
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 |
DBDatabaseDriverOracle.checkDatabase(DBDatabase db,
String owner,
Connection conn)
Checks whether the database definition matches the real database structure.
|
void |
OracleDBModelChecker.checkModel(DBDatabase db,
Connection conn,
String dbSchema,
DBModelErrorHandler handler) |
DBCommand |
DBDatabaseDriverOracle.createCommand(DBDatabase db)
Creates a new Oracle command object.
|
protected void |
OracleDDLGenerator.createComment(DBDatabase db,
String type,
DBExpr expr,
String comment,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Returns true if the sequence has been created successfully.
|
protected void |
OracleDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script) |
Object |
DBDatabaseDriverOracle.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBCommandOracle(DBDatabase db)
Constructs an oracle command object.
|
OracleRowNumExpr(DBDatabase db)
Constructs a new OracleRowNumExpr object.
|
OracleSYSDatabase.DBColComments(DBDatabase db) |
OracleSYSDatabase.DBColInfo(DBDatabase db) |
OracleSYSDatabase.DBConstraints(DBDatabase db) |
OracleSYSDatabase.DBTabComments(DBDatabase db) |
OracleSYSDatabase.DBUserConCol(DBDatabase db) |
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverPostgreSQL.createCommand(DBDatabase db)
Creates a new PostgreSQL command object.
|
protected void |
PostgreDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
PostgreDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
Object |
DBDatabaseDriverPostgreSQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverPostgreSQL.DBCommandPostreSQL(DBDatabase db) |
Modifier and Type | Method and Description |
---|---|
DBCommand |
DBDatabaseDriverSQLite.createCommand(DBDatabase db)
Creates a new SQLite command object.
|
Object |
DBDatabaseDriverSQLite.getNextSequenceValue(DBDatabase db,
String SeqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverSQLite.DBCommandSQLite(DBDatabase db) |
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverMSSQL.attachDatabase(DBDatabase db,
Connection conn)
Called when a database is opened
|
DBCommand |
DBDatabaseDriverMSSQL.createCommand(DBDatabase db)
Creates a new Microsoft SQL-Server command object.
|
protected void |
MSSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
Object |
DBDatabaseDriverMSSQL.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
Object |
DBDatabaseDriverMSSQL.getNextSequenceValue(DBDatabase db,
String seqName,
int minValue,
Connection conn) |
Constructor and Description |
---|
DBDatabaseDriverMSSQL.DBCommandMSSQL(DBDatabase db) |
Modifier and Type | Class and Description |
---|---|
static class |
DBModelChecker.InMemoryDatabase |
Modifier and Type | Method and Description |
---|---|
void |
DBModelChecker.checkModel(DBDatabase db,
Connection conn,
String dbSchema,
DBModelErrorHandler handler)
This method is used to check the database model
|
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.