Package | Description |
---|---|
org.apache.empire.data.bean |
This package contains implmentations of Empire's data and metadata interfaces for JavaBeans of Data Tranfer Objects (DTO's).
|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.context | |
org.apache.empire.db.generic | |
org.apache.empire.db.list |
Modifier and Type | Method and Description |
---|---|
int |
BeanResult.fetch(DBContext context)
Executes the query and fetches the result
|
int |
BeanResult.fetch(DBContext context,
int maxItems)
Executes the query and fetches the result
|
Modifier and Type | Field and Description |
---|---|
protected DBContext |
DBUtils.context |
protected DBContext |
DBSQLScript.context |
protected DBContext |
DBRecord.context |
protected DBContext |
DBReader.context |
protected DBContext |
DBRecordBean.tempContext |
Modifier and Type | Method and Description |
---|---|
DBContext |
DBUtils.getContext()
Returns the current Context
|
DBContext |
DBSQLScript.getContext()
Returns the current Context
|
DBContext |
DBRecordBean.getContext()
Returns the current Context
|
DBContext |
DBRecord.getContext()
Returns the current Context
|
DBContext |
DBReader.getContext()
Returns the current Context
|
protected DBContext |
DBRecord.readContext(ObjectInputStream strm) |
Modifier and Type | Method and Description |
---|---|
boolean |
DBDatabase.checkExists(DBContext context)
Checks if the database exists
The implementation depends on the DBMSHandler
|
void |
DBDatabase.close(DBContext context)
Closes this database object by detaching it from the dbms
|
DBRecordBean |
DBRecordBean.create(DBContext context,
DBRowSet rowset)
Creates a new record
|
DBRecordBean |
DBRecordBean.create(DBContext context,
DBRowSet rowset,
Object[] initalKey)
Creates a new record
|
protected DBCommand |
DBRowSet.createRecordCommand(DBContext context)
Mabe use Prepared statements even if disabled in context
|
void |
DBRecordBean.delete(DBContext context)
This helper function calls the DBRowset.deleteRecord method
to delete the record.
|
protected void |
DBRowSet.deleteAllReferences(Object[] key,
DBContext context)
Deletes all records which reference this table.
|
void |
DBRowSet.deleteRecord(long id,
DBContext context)
Deletes a single record from the database.
|
void |
DBView.deleteRecord(Object[] key,
DBContext context) |
void |
DBTable.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.
|
abstract void |
DBRowSet.deleteRecord(Object[] key,
DBContext context) |
void |
DBQuery.deleteRecord(Object[] key,
DBContext context)
Deletes a record identified by its primary key from the database.
|
void |
DBCommandExpr.DBCmdQuery.deleteRecord(Object[] key,
DBContext context)
throws ERR_NOTSUPPORTED
|
protected void |
DBRowSet.deleteReferenceRecords(DBRelation.DBReference[] refs,
Object[] parentKey,
DBContext context)
Deletes all records which are referenced by a particular relation.
|
String |
DBRelation.getEnableDisableStmt(boolean enable,
DBContext context)
Appends the required DLL command to enable or disable a foreign key constraint to the supplied DBDQLScript.
|
void |
DBDatabase.open(DBContext context)
Attaches the Database to the DBMS Handler provided with the context
and allows the Database and the Handler to perform initialization tasks
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
DBCompareExpr whereConstraints)
Reads a record from the database
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object id)
Reads a record from the database
This method can only be used for tables with a single primary key
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object[] key)
Reads a record from the database
|
DBRecordBean |
DBRecordBean.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.
|
boolean |
DBRowSet.recordExists(Object[] key,
DBContext context)
Returns true if the record exists in the database or false otherwise.
|
boolean |
DBRowSet.recordExists(Object id,
DBContext context)
Returns true if the record exists in the database or false otherwise.
|
void |
DBRecordBean.update(DBContext context)
Updates the record in the database
|
Constructor and Description |
---|
DBReader(DBContext context)
Constructs a default DBReader object with the fieldIndexMap enabled.
|
DBReader(DBContext context,
boolean useFieldIndexMap)
Constructs an empty DBRecordSet object.
|
DBRecord(DBContext context,
DBRowSet rowset)
Constructs a new DBRecord.
|
DBRecord(DBContext context,
DBRowSet rowset,
boolean enableRollbackHandling)
Internal constructor for DBRecord
May be used by derived classes to provide special behaviour
|
DBSQLScript(DBContext context) |
DBSQLScript(DBContext context,
String commandSeparator) |
DBUtils(DBContext context)
DBUtils constructor
|
Modifier and Type | Class and Description |
---|---|
class |
DBContextBase
DBContextBase
Basic implementation of the DBContext interface which can be used as a base class for own implmentations
|
class |
DBContextStatic |
Modifier and Type | Method and Description |
---|---|
DBContext |
DBContextAware.getContext() |
Modifier and Type | Class and Description |
---|---|
class |
TRecord<CTX extends DBContext,T extends DBRowSet> |
Modifier and Type | Field and Description |
---|---|
CTX |
TRecord.CTX |
Modifier and Type | Method and Description |
---|---|
void |
DataBean.initialize(DB db,
DBContext context,
int rownum,
Object parent) |
void |
DBRecordListFactoryImpl.prepareQuery(DBCommand cmd,
DBContext context) |
void |
DBRecordListFactory.prepareQuery(DBCommand cmd,
DBContext context) |
void |
DBBeanListFactoryImpl.prepareQuery(DBCommandExpr cmd,
DBContext context) |
void |
DBBeanListFactory.prepareQuery(DBCommandExpr cmd,
DBContext context) |
Modifier and Type | Method and Description |
---|---|
protected static <T extends DBRecordBase> |
DBRecordListFactoryImpl.findRecordConstructor(Class<T> recordClass,
Class<? extends DBContext> contextClass,
Class<? extends DBRowSet> rowsetClass)
Finds a constructor for recordClass
|
Constructor and Description |
---|
DBRecordListFactoryImpl(Class<T> recordClass,
Class<? extends DBContext> contextClass,
DBRowSet rowset)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.