Package | Description |
---|---|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.generic | |
org.apache.empire.db.list |
Modifier and Type | Class and Description |
---|---|
class |
DBReader
This class is used to perform database queries from a DBCommand object and access the results.
|
class |
DBRecord
This class represents a record from a database table, view or query
The class provides methods to create, read, update and delete records
If an Idendity-column (AUTOINC) is defined, the value will be set upon creation by the dbms to the next value
If a Timestamp-column is defined the value will be automatically set and concurrent changes of the record will be detected
If changes to the record are made, but a rollback on the connection is performed, the changes will be reverted (Rollback-Handling)
The record is Serializable either if the provided DBContext is serializable, or if the Context is provided on deserialization in a derived class.
|
class |
DBRecordBase
This abstract class provides write access to the fields of a record
The class provides methods that are useful for frontend-form development like
- providing information about the allowed values for a field (field options)
- providing information about whether or not a field is visible to the user
- providing information about whether or not a field is required (mandantory)
- providing information about whether or not a field is read-only
- providing information about whether a particular field value is valid
- providing information about whether a field was modified since it was read from the database
- providing information about whether the record was modified
Also, field value changes, can be handled using the onFieldChanged event.
|
class |
DBRecordBean
This class represents a record from a database table, view or query
Other than DBRecord it is not permanently attached to a context or rowset
Thus it has a Default constructor and is essentially a dynamic bean
|
Modifier and Type | Method and Description |
---|---|
DBRecordData |
DBReader.DBReaderScrollableIterator.next()
Implements the Iterator Interface.
|
DBRecordData |
DBReader.DBReaderForwardIterator.next()
Implements the Iterator Interface.
|
Modifier and Type | Method and Description |
---|---|
Iterator<DBRecordData> |
DBReader.iterator()
Returns an row iterator for this reader.
|
Iterator<DBRecordData> |
DBReader.iterator(int maxCount)
Returns an row iterator for this reader.
|
Modifier and Type | Method and Description |
---|---|
void |
DBRowSet.initRecord(DBRecordBase record,
DBRecordData recData)
Initializes a DBRecord for this rowset using the record data provided (i.e. from a DBReader)
The record may then be modified and updated. |
void |
DBQuery.initRecord(DBRecordBase record,
DBRecordData recData)
Add rowset data
|
Modifier and Type | Class and Description |
---|---|
class |
TRecord<CTX extends DBContext,T extends DBRowSet> |
Modifier and Type | Method and Description |
---|---|
T |
DBBeanListFactoryImpl.newItem(int rownum,
DBRecordData recData) |
T |
DBBeanListFactory.newItem(int rownum,
DBRecordData recData) |
T |
DBRecordListFactoryImpl.newRecord(int rownum,
DBRecordData recData) |
T |
DBRecordListFactory.newRecord(int rownum,
DBRecordData recData) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.