Uses of Interface
org.apache.empire.db.DBContext
Packages that use DBContext
Package
Description
This package contains implmentations of Empire's data and metadata interfaces for JavaBeans of Data Tranfer Objects (DTO's).
This package contains the core Empire-DB implementation classes.
This package contains classes necessary to support the Oracle database system.
-
Uses of DBContext in org.apache.empire.data.bean
Methods in org.apache.empire.data.bean with parameters of type DBContext -
Uses of DBContext in org.apache.empire.db
Fields in org.apache.empire.db declared as DBContextModifier and TypeFieldDescriptionprotected final DBContextDBReader.contextprotected final DBContextDBRecord.contextprotected final DBContextDBSQLScript.contextprotected final DBContextDBUtils.contextprotected DBContextDBRecordBean.tempContextMethods in org.apache.empire.db that return DBContextModifier and TypeMethodDescriptionDBReader.getContext()Returns the current ContextDBRecord.getContext()Returns the current ContextDBRecordBean.getContext()Returns the current ContextDBSQLScript.getContext()Returns the current ContextDBUtils.getContext()Returns the current Contextprotected DBContextDBRecord.readContext(ObjectInputStream strm) Methods in org.apache.empire.db with parameters of type DBContextModifier and TypeMethodDescriptionbooleanDBDatabase.checkExists(DBContext context) Checks if the database exists The implementation depends on the DBMSHandlervoidCloses this database object by detaching it from the dbmsCreates a new recordCreates a new recordprotected DBCommandDBRowSet.createRecordCommand(DBContext context) Creates a new command object for record handing May use Prepared statements even if disabled in contextvoidThis helper function calls the DBRowset.deleteRecord method to delete the record.protected voidDBRowSet.deleteAllReferences(Object[] key, DBContext context) Deletes all records which reference this table.voidDBCommandExpr.DBCmdQuery.deleteRecord(Object[] key, DBContext context) throws ERR_NOTSUPPORTEDvoidDBQuery.deleteRecord(Object[] key, DBContext context) Deletes a record identified by its primary key from the database.final voidDBRowSet.deleteRecord(long id, DBContext context) Deletes a single record from the database.abstract voidDBRowSet.deleteRecord(Object[] key, DBContext context) voidDBTable.deleteRecord(Object[] key, DBContext context) Creates a delete SQL-Command by using the DBCommand getDelete method execute the the SQL-Command with the DBDatabase executeSQL method.voidDBView.deleteRecord(Object[] key, DBContext context) protected voidDBRowSet.deleteReferenceRecords(DBRelation.DBReference[] refs, Object[] parentKey, DBContext context) Deletes all records which are referenced by a particular relation.DBRelation.getEnableDisableStmt(boolean enable, DBContext context) Appends the required DLL command to enable or disable a foreign key constraint to the supplied DBDQLScript.DBTable.getExistingReferenceTables(Object[] key, DBContext context) Returns a list of all tables that contain records which reference this recordbooleanDBTable.hasExistingReferences(Object[] key, DBContext context) Determines whether a record is references by other records through a foreign-key relation or notvoidAttaches the Database to the DBMS Handler provided with the context and allows the Database and the Handler to perform initialization tasksReads a record from the database This method can only be used for tables with a single primary keyReads a record from the databaseDBRecordBean.read(DBContext context, DBRowSet rowset, Object[] key, DBRowSet.PartialMode mode, DBColumn... columns) Reads a record partially i.e. not with all but just some selected fields There are two modes: 1.DBRecordBean.read(DBContext context, DBRowSet rowset, DBCompareExpr whereConstraints) Reads a record from the databasebooleanDBRowSet.recordExists(Object[] key, DBContext context) Returns true if the record exists in the database or false otherwise.final booleanDBRowSet.recordExists(Object id, DBContext context) Returns true if the record exists in the database or false otherwise.voidDBMaterializedView.refreshView(DBContext context) voidUpdates the record in the databaseConstructors in org.apache.empire.db with parameters of type DBContextModifierConstructorDescriptionConstructs a default DBReader object with the fieldIndexMap enabled.Constructs an empty DBRecordSet object.Constructs a new DBRecord.protectedInternal constructor for DBRecord May be used by derived classes to provide special behaviourDBSQLScript(DBContext context) DBSQLScript(DBContext context, String commandSeparator) DBUtils constructor -
Uses of DBContext in org.apache.empire.db.context
Classes in org.apache.empire.db.context that implement DBContextModifier and TypeClassDescriptionclassDBContextBase Basic implementation of the DBContext interface which can be used as a base class for own implmentationsclassMethods in org.apache.empire.db.context that return DBContext -
Uses of DBContext in org.apache.empire.db.generic
Classes in org.apache.empire.db.generic with type parameters of type DBContextFields in org.apache.empire.db.generic declared as DBContext -
Uses of DBContext in org.apache.empire.db.list
Methods in org.apache.empire.db.list with parameters of type DBContextModifier and TypeMethodDescriptionvoidDataBean.initialize(DB db, DBContext context, int rownum, Object parent) voidDBBeanListFactory.prepareQuery(DBCommandExpr cmd, DBContext context) voidDBBeanListFactoryImpl.prepareQuery(DBCommandExpr cmd, DBContext context) voidDBRecordListFactory.prepareQuery(DBCommand cmd, DBContext context) voidDBRecordListFactoryImpl.prepareQuery(DBCommand cmd, DBContext context) -
Uses of DBContext in org.apache.empire.dbms.oracle
Methods in org.apache.empire.dbms.oracle with parameters of type DBContextModifier and TypeMethodDescriptionvoidDBMSHandlerOracle.refreshMView(DBMaterializedView matView, DBContext context) Immediately refreshes a Materialized View