Uses of Class
org.apache.empire.db.DBTable
Packages that use DBTable
Package
Description
This package contains the core Empire-DB implementation classes.
This package contains classes necessary to support the MySQL database system.
This package contains classes necessary to support the Oracle database system.
-
Uses of DBTable in org.apache.empire.db
Fields in org.apache.empire.db with type parameters of type DBTableMethods in org.apache.empire.db with type parameters of type DBTableModifier and TypeMethodDescription<T extends DBTable>
T<T extends DBTable>
TDBRowSet.setAttribute(String name, Object value) Sets the value of a attribute.Methods in org.apache.empire.db that return DBTableModifier and TypeMethodDescriptionDBRelation.getForeignKeyTable()Returns the table that is containing the foreign key (source table)DBRelation.getReferencedTable()Returns the table that is referenced by this foreign key relation (target table)Finds a DBTable object by name.DBIndex.getTable()returns the table this index belongs to.Methods in org.apache.empire.db that return types with arguments of type DBTableModifier and TypeMethodDescriptionDBTable.getExistingReferenceTables(Object[] key, DBContext context) Returns a list of all tables that contain records which reference this recordDBDatabase.getTables()Returns the tables which have been defined in the database.Methods in org.apache.empire.db with parameters of type DBTableModifier and TypeMethodDescriptionprotected voidDBDDLGenerator.addCreateTableStmt(DBTable table, DBSQLBuilder sql, DBSQLScript script) voidAdds an delete statementfinal DBTableColumnDBTable.addForeignKey(String name, DBTable target, boolean required) Adds a new ForgeinKey table column the column list The foreign table must have a single column foreign keyfinal DBTableColumnDBTable.addForeignKey(String name, DBTable target, boolean required, boolean cascade) Adds a new ForgeinKey table column the column list The foreign table must have a single column foreign keyDBTable.addForeignKey(String name, DBTable target, boolean required, Options options, DBRelation.DBCascadeAction cascadeAction) Adds a new ForgeinKey table column the column list The foreign table must have a single column foreign keyprotected voidAdds a DBTable object to list of database tables.
This function is called internally from the DBTable's constructor.static DBGeneratedValueDBGeneratedValue.byFunction(DBTable table, String functionTemplate) Returns generator for a record value created from other record fields The function template must contain the column names wrapped in square brackets like e.g.static DBGeneratedValueDBGeneratedValue.byTrigger(DBTable table, String triggerName, DBTableColumn... columns) Returns a generated value for a triggerprotected voidDBDDLGenerator.createIndex(DBTable t, DBIndex index, DBSQLScript script) Appends the DDL-Script for creating a single index to an SQL-Scriptprotected voidDBDDLGenerator.createTable(DBTable t, DBSQLScript script) Appends the DDL-Script for creating the given table to an SQL-Scriptprotected voidDBDDLGenerator.createTableIndexes(DBTable t, DBIndex pk, DBSQLScript script) Appends the DDL-Script for creating all indexes of table (except the primary key) to an SQL-ScriptintDBContext.executeDelete(DBTable from, DBCommand cmd) intDBContext.executeInsertInto(DBTable table, DBCommand cmd) DBDatabase.findRelationsOn(DBTable table) Returns a list of foreign key relations on a given tablefinal StringCreates a delete SQL-Statementfinal StringDBCommandExpr.getInsertInto(DBTable table) Create the insert into SQL-Command which copies data from a select statement to a destination table.final StringDBCommandExpr.getInsertInto(DBTable table, List<DBColumnExpr> columns) Create the insert into SQL-Command which copies data from a select statement to a destination table.protected StringDBCommandExpr.getInsertInto(DBTable table, DBColumnExpr[] select, List<DBColumnExpr> columns) Create the insert into SQL-Command which copies data from a select statement to a destination table.voidDBDatabase.removeTable(DBTable table) Removes a table from the list of database tablesConstructors in org.apache.empire.db with parameters of type DBTableModifierConstructorDescriptionDBFuncGeneratedValue(DBTable table, String template) DBTableColumn(DBTable table, DataType type, String name, double size, boolean required, boolean autoGenerated, Object defValue) Constructs a DBTableColumn object set the specified parameters to this object.protectedDBTableColumn(DBTable newTable, DBTableColumn other) Clone Constructor -
Uses of DBTable in org.apache.empire.db.context
Methods in org.apache.empire.db.context with parameters of type DBTableModifier and TypeMethodDescriptionfinal intDBContextBase.executeDelete(DBTable from, DBCommand cmd) Executes a Delete statement from a command objectfinal intDBContextBase.executeInsertInto(DBTable table, DBCommand cmd) Executes an InsertInfo statement from a command object -
Uses of DBTable in org.apache.empire.db.generic
Subclasses of DBTable in org.apache.empire.db.generic -
Uses of DBTable in org.apache.empire.db.validation
Methods in org.apache.empire.db.validation with parameters of type DBTableModifier and TypeMethodDescriptionprotected voidDBModelChecker.checkForeignKeys(DBTable table, DBTable remoteTable, DBModelErrorHandler handler) protected voidDBModelChecker.checkPrimaryKey(DBTable table, DBTable remoteTable, DBModelErrorHandler handler) protected voidDBModelChecker.checkTable(DBTable table, DBModelErrorHandler handler) -
Uses of DBTable in org.apache.empire.dbms
Subclasses of DBTable in org.apache.empire.dbmsModifier and TypeClassDescriptionstatic classThis class is used to emulate sequences by using a sequence table. -
Uses of DBTable in org.apache.empire.dbms.mysql
Methods in org.apache.empire.dbms.mysql with parameters of type DBTableModifier and TypeMethodDescriptionprotected voidMySQLDDLGenerator.createTable(DBTable t, DBSQLScript script) Appends the DDL-Script for creating the given table to an SQL-Script -
Uses of DBTable in org.apache.empire.dbms.oracle
Subclasses of DBTable in org.apache.empire.dbms.oracleModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classMethods in org.apache.empire.dbms.oracle with parameters of type DBTableModifier and TypeMethodDescriptionprotected voidOracleDDLGenerator.addCreateTableStmt(DBTable table, DBSQLBuilder sql, DBSQLScript script) protected voidOracleDDLGenerator.createTable(DBTable t, DBSQLScript script) Method parameters in org.apache.empire.dbms.oracle with type arguments of type DBTableModifier and TypeMethodDescriptionvoidOracleDataDictionnary.checkDBTableDefinition(List<DBTable> dbTables) -
Uses of DBTable in org.apache.empire.dbms.sqlite
Methods in org.apache.empire.dbms.sqlite with parameters of type DBTableModifier and TypeMethodDescriptionprotected voidSQLiteDDLGenerator.createTable(DBTable t, DBSQLScript script)