See: Description
Class | Description |
---|---|
ArrayListSelectOperation<R> | |
DeleteOperation<R> |
SQL delete operation for row of type R.
|
HashMapSelectOperation<K,R> | |
InsertOperation<R> |
SQL insert operation for row of type R.
|
LinkedHashMapSelectOperation<K,R> | |
ListSelectOperation<R> | |
MapSelectOperation<K,R> | |
ModifyOperation<R> |
Base class for operations that modify database.
|
SaveOperation<R> |
SQL update or insert operation for row of type R.
|
ScalarSelectOperation<R> |
Select operation that reads one value at a time.
|
SelectCountOperation<R> | Deprecated |
SelectIterator<R> |
Iterator for a
SelectOperation . |
SelectOperation<R,C> |
SQL select operation returning a collection of rows.
|
SqlOperation<R> |
Base class for all database operations.
|
UpdateOperation<R> |
SQL update operation for row of type R.
|
Exception | Description |
---|---|
MissingFieldException |
Indicates a field name was not found in a class.
|
OperationException |
Exception that originates in the operation package.
|
There are three types of operations: select operations, and modifiy operations,
All select operations are derived from
SelectOperation
. Insert, update, and, delete
operations are derived from ModifyOperation
.
For example:
Select all students by type 3 ("byType" is name of Where annotation on Student):
Database database = ... Table<Student> table = database.getTable(Student.class); List<Student> selectedList = new ArrayListSelect<Student>(table, "byType").selectAll(3);