Uses of Class
org.apache.empire.db.DBDatabase
Packages that use DBDatabase
Package
Description
This package contains the core Empire-DB implementation classes.
This package contains classes for exception handling of database related errors.
This package contains SQL-generator classes for column expressions.
This package contains SQL-generator classes for compare expressions used in the where and having clause.
This package contains SQL-generator classes for join expressions used in the from clause.
This package contains SQL-generator classes for set expressions used in the set clause.
This package contains classes necessary to support the Apache Derby database system.
This package contains classes necessary to support the H2 database system.
This package contains classes necessary to support the HSQLDB database system.
This package contains classes necessary to support the MySQL database system.
This package contains classes necessary to support the Oracle database system.
This package contains classes necessary to support the PostgreSQL database system.
This package contains classes necessary to support the Microsoft SQL-Server database system.
-
Uses of DBDatabase in org.apache.empire.data.list
Methods in org.apache.empire.data.list with type parameters of type DBDatabaseModifier and TypeMethodDescription<T extends DBDatabase>
TDataListHead.getDatabase(Class<T> dbClass) Returns the database instance associated with this DataList (if any) The database is extracted from the column list -
Uses of DBDatabase in org.apache.empire.db
Fields in org.apache.empire.db declared as DBDatabaseModifier and TypeFieldDescriptionprotected final DBDatabaseDBGeneratedValue.dbprotected final DBDatabaseDBRowSet.dbMethods in org.apache.empire.db with type parameters of type DBDatabaseModifier and TypeMethodDescription<T extends DBDatabase>
TDBGeneratedValue.getDatabase()abstract <T extends DBDatabase>
TDBObject.getDatabase()Returns the database object to which this object belongs to.Methods in org.apache.empire.db that return DBDatabaseModifier and TypeMethodDescriptionstatic DBDatabaseDBDatabase.findByClass(Class<? extends DBDatabase> clazz) find a database by its Java typestatic DBDatabaseDBDatabase.findByIdentifier(String dbIdent) find a database by idfinal DBDatabaseDBCmdParam.getDatabase()final DBDatabaseDBColumn.getDatabase()final DBDatabaseDBCombinedCmd.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCommand.getDatabase()DBDatabase.getDatabase()final DBDatabaseDBExpressionIndex.getDatabase()DBIndex.getDatabase()DBMaterializedView.getDatabase()final DBDatabaseDBReader.getDatabase()Returns the current DBDatabase object.DBRecordBase.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBRelation.getDatabase()DBRowSet.getDatabase()Returns the current DBDatabase object.Methods in org.apache.empire.db with parameters of type DBDatabaseModifier and TypeMethodDescriptionprotected voidDBDDLGenerator.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 voidDBDDLGenerator.dropDatabase(DBDatabase db, DBSQLScript script) Appends the DDL-Script for dropping a database to the given script objectDBCmdParam.getValueExpr(DBDatabase db) Returns a value expression for this paramprotected voidDBReader.init(DBDatabase db, DBColumnExpr[] columns, ResultSet rset) Initialize the reader from an open JDBC-ResultSetMethod parameters in org.apache.empire.db with type arguments of type DBDatabaseModifier and TypeMethodDescriptionstatic DBDatabaseDBDatabase.findByClass(Class<? extends DBDatabase> clazz) find a database by its Java typeConstructors in org.apache.empire.db with parameters of type DBDatabaseModifierConstructorDescriptionDBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList) Creates a new DBCmdQueryObjectDBRelation(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.DBView(String name, DBDatabase db, boolean isUpdateable, String alias) Creates a view object for a given view in the database. -
Uses of DBDatabase in org.apache.empire.db.exceptions
Constructors in org.apache.empire.db.exceptions with parameters of type DBDatabase -
Uses of DBDatabase in org.apache.empire.db.expr.column
Fields in org.apache.empire.db.expr.column declared as DBDatabaseModifier and TypeFieldDescriptionfinal DBDatabaseDBScalarExpr.dbfinal DBDatabaseDBValueExpr.dbMethods in org.apache.empire.db.expr.column with type parameters of type DBDatabaseMethods in org.apache.empire.db.expr.column that return DBDatabaseModifier and TypeMethodDescriptionfinal DBDatabaseDBAbstractFuncExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBAliasExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCalcExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCaseExpr.getDatabase()final DBDatabaseDBConcatExpr.getDatabase()final DBDatabaseDBCountExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBParenthesisExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBScalarExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBValueExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBVarArgsFuncExpr.getDatabase()Constructors in org.apache.empire.db.expr.column with parameters of type DBDatabaseModifierConstructorDescriptionprotectedDBCaseExpr(DBDatabase db) DBCaseWhenExpr(DBDatabase db, Map<DBCompareExpr, ? extends Object> whenMap, Object elseValue) Constructs a DBCaseExprDBScalarExpr(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) Deprecated.please use DBDatabase.getValueExpr(...)DBVarArgsFuncExpr(DBDatabase db, DataType dataType, String template, DBColumnExpr... cols) -
Uses of DBDatabase in org.apache.empire.db.expr.compare
Methods in org.apache.empire.db.expr.compare that return DBDatabaseModifier and TypeMethodDescriptionfinal DBDatabaseDBCompareAndOrExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCompareColExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCompareNotExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCompareParenthesisExpr.getDatabase()final DBDatabaseDBExistsExpr.getDatabase()Returns the current DBDatabase object. -
Uses of DBDatabase in org.apache.empire.db.expr.join
Methods in org.apache.empire.db.expr.join that return DBDatabaseModifier and TypeMethodDescriptionfinal DBDatabaseDBColumnJoinExpr.getDatabase()Returns the current DBDatabase object.final DBDatabaseDBCrossJoinExpr.getDatabase()Returns the current DBDatabase object. -
Uses of DBDatabase in org.apache.empire.db.expr.order
Methods in org.apache.empire.db.expr.order that return DBDatabase -
Uses of DBDatabase in org.apache.empire.db.expr.set
Methods in org.apache.empire.db.expr.set that return DBDatabaseModifier and TypeMethodDescriptionfinal DBDatabaseDBSetExpr.getDatabase()Returns the current DBDatabase object. -
Uses of DBDatabase in org.apache.empire.db.generic
Subclasses of DBDatabase in org.apache.empire.db.generic -
Uses of DBDatabase in org.apache.empire.db.list
Classes in org.apache.empire.db.list with type parameters of type DBDatabase -
Uses of DBDatabase in org.apache.empire.db.validation
Fields in org.apache.empire.db.validation declared as DBDatabaseModifier and TypeFieldDescriptionprotected DBDatabaseDBModelChecker.remoteDbprotected DBDatabaseDBModelParser.remoteDbMethods in org.apache.empire.db.validation that return DBDatabaseModifier and TypeMethodDescriptionprotected DBDatabaseDBModelParser.createRemoteDatabase()DBModelParser.getDatabase()Returns the RemoteDatabase Only available after parseModel() is calledDBModelChecker.getRemoteDatabase()Returns the RemoteDatabase Only available after parseModel() is calledMethods in org.apache.empire.db.validation with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBModelChecker.checkModel(DBDatabase db, Connection conn, DBModelErrorHandler handler) Populates the remote database and compares it against the given databasevoidDBModelChecker.checkRemoteAgainst(DBDatabase db, DBModelErrorHandler handler) Check the remote database against an existing model -
Uses of DBDatabase in org.apache.empire.dbms
Methods in org.apache.empire.dbms with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBMSHandler.attachDatabase(DBDatabase db, Connection conn) Called when a database is openedvoidDBMSHandlerBase.attachDatabase(DBDatabase db, Connection conn) Called when a database is openedbooleanDBMSHandler.checkExists(DBDatabase db, Connection conn) Checks if a database existsbooleanDBMSHandlerBase.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 tableDBMSHandler.createModelChecker(DBDatabase db) Creates a DataModelChecker instance of this DBMSHandlerDBMSHandlerBase.createModelChecker(DBDatabase db) Creates a DataModelChecker instance of this DBMSHandlervoidDBMSHandler.detachDatabase(DBDatabase db, Connection conn) Called when a database is closedvoidDBMSHandlerBase.detachDatabase(DBDatabase db, Connection conn) Called when a database is closedDBMSHandler.getColumnAutoValue(DBDatabase db, DBTableColumn column, Connection conn) Returns an auto-generated value for a particular columnDBMSHandlerBase.getColumnAutoValue(DBDatabase db, DBTableColumn column, Connection conn) Returns an auto-generated value for a particular columnabstract ObjectDBMSHandlerBase.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.
If a dbms supports this function it must return true for isSupported(DBMSFeature.SEQUENCES).Constructors in org.apache.empire.dbms with parameters of type DBDatabase -
Uses of DBDatabase in org.apache.empire.dbms.derby
Methods in org.apache.empire.dbms.derby with parameters of type DBDatabaseModifier and TypeMethodDescriptionDBMSHandlerDerby.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) -
Uses of DBDatabase in org.apache.empire.dbms.h2
Methods in org.apache.empire.dbms.h2 with parameters of type DBDatabaseModifier and TypeMethodDescriptionDBMSHandlerH2.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) -
Uses of DBDatabase in org.apache.empire.dbms.hsql
Methods in org.apache.empire.dbms.hsql with parameters of type DBDatabaseModifier and TypeMethodDescriptionprotected voidHSqlDDLGenerator.createDatabase(DBDatabase db, DBSQLScript script) DBMSHandlerHSql.createModelChecker(DBDatabase db) Creates a DBModelChecker instance of this DBMSHandlerprotected voidHSqlDDLGenerator.createSequence(DBDatabase db, DBTableColumn column, DBSQLScript script) Appends the DDL-Script for creating a sequence to an SQL-ScriptDBMSHandlerHSql.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) -
Uses of DBDatabase in org.apache.empire.dbms.mysql
Methods in org.apache.empire.dbms.mysql with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBMSHandlerMySQL.attachDatabase(DBDatabase db, Connection conn) protected voidMySQLDDLGenerator.createDatabase(DBDatabase db, DBSQLScript script) DBMSHandlerMySQL.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) -
Uses of DBDatabase in org.apache.empire.dbms.oracle
Subclasses of DBDatabase in org.apache.empire.dbms.oracleModifier and TypeClassDescriptionclassRepresents the data model of the system tables.Fields in org.apache.empire.dbms.oracle declared as DBDatabaseMethods in org.apache.empire.dbms.oracle that return DBDatabaseModifier and TypeMethodDescriptionfinal DBDatabaseOracleRowNumExpr.getDatabase()Returns the current DBDatabase object.Methods in org.apache.empire.dbms.oracle with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBMSHandlerOracle.checkDatabase(DBDatabase db, String owner, Connection conn) Checks whether the database definition matches the real database structure.protected voidOracleDDLGenerator.createComment(DBDatabase db, String type, DBExpr expr, String comment, DBSQLScript script) protected voidOracleDDLGenerator.createDatabase(DBDatabase db, DBSQLScript script) DBMSHandlerOracle.createModelChecker(DBDatabase db) Creates a DataModelChecker instance of this DBMSHandlerprotected voidOracleDDLGenerator.createSequence(DBDatabase db, DBTableColumn column, DBSQLScript script) Returns true if the sequence has been created successfully.protected voidOracleDDLGenerator.dropDatabase(DBDatabase db, DBSQLScript script) DBMSHandlerOracle.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) Constructors in org.apache.empire.dbms.oracle with parameters of type DBDatabase -
Uses of DBDatabase in org.apache.empire.dbms.postgresql
Methods in org.apache.empire.dbms.postgresql that return DBDatabaseModifier and TypeMethodDescriptionPostgresAtAt.getDatabase()PostgresBoolAndOrExpr.getDatabase()final DBDatabasePostgresIntervalExpr.getDatabase()Methods in org.apache.empire.dbms.postgresql with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBMSHandlerPostgreSQL.attachDatabase(DBDatabase db, Connection conn) Initialize Database on openprotected voidPostgresDDLGenerator.createDatabase(DBDatabase db, DBSQLScript script) protected voidPostgresDDLGenerator.createSequence(DBDatabase db, DBTableColumn column, DBSQLScript script) Appends the DDL-Script for creating a sequence to an SQL-ScriptDBMSHandlerPostgreSQL.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn) protected voidDBMSHandlerPostgreSQL.initSerialSequenceNames(DBDatabase db, Connection conn) Initializes the Sequence names of SERIAL and BIGSERIAL columnsConstructors in org.apache.empire.dbms.postgresql with parameters of type DBDatabaseModifierConstructorDescriptionPostgresIntervalExpr(DBDatabase db, int quantity, PostgresIntervalExpr.PostgresIntervalUnitField unit) -
Uses of DBDatabase in org.apache.empire.dbms.sqlite
Methods in org.apache.empire.dbms.sqlite with parameters of type DBDatabaseModifier and TypeMethodDescriptionDBMSHandlerSQLite.getNextSequenceValue(DBDatabase db, String SeqName, int minValue, Connection conn) -
Uses of DBDatabase in org.apache.empire.dbms.sqlserver
Methods in org.apache.empire.dbms.sqlserver with parameters of type DBDatabaseModifier and TypeMethodDescriptionvoidDBMSHandlerMSSQL.attachDatabase(DBDatabase db, Connection conn) Called when a database is openedbooleanDBMSHandlerMSSQL.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 tableprotected voidMSSqlDDLGenerator.createDatabase(DBDatabase db, DBSQLScript script) DBMSHandlerMSSQL.createModelChecker(DBDatabase db) DBMSHandlerMSSQL.getColumnAutoValue(DBDatabase db, DBTableColumn column, Connection conn) Returns an auto-generated value for a particular columnDBMSHandlerMSSQL.getNextSequenceValue(DBDatabase db, String seqName, int minValue, Connection conn)