Package org.sormula.operation

Classes that perform SQL operations such as select, update, insert, delete.

See:
          Description

Class Summary
ArrayListSelectOperation<R> ListSelectOperation that uses ArrayList for SelectOperation.readAll() results.
DeleteOperation<R> SQL delete operation for row of type R.
FullDelete<R> Deprecated.
FullInsert<R> Deprecated.
FullListSelect<R> Deprecated.
FullModify<R> Deprecated.
FullSave<R> Deprecated.
FullScalarSelect<R> Deprecated.
FullSelect<R,C> Deprecated.
FullUpdate<R> Deprecated.
HashMapSelectOperation<K,R> MapSelectOperation that uses HashMap for SelectOperation.readAll() results.
InsertOperation<R> SQL insert operation for row of type R.
LinkedHashMapSelectOperation<K,R> MapSelectOperation that uses LinkedHashMap for SelectOperation.readAll() results.
ListSelectOperation<R> SelectOperation that uses List for SelectOperation.readAll() results.
MapSelectOperation<K,R> SelectOperation that uses Map for SelectOperation.readAll() results.
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> SQL select count of records operation.
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 Summary
OperationException Exception that originates in the operation package.
 

Package org.sormula.operation Description

Classes that perform SQL operations such as select, update, insert, delete.

There are three types of operations: select operations, modifiy operations, and the "Full" operations. All select operations are derived from SelectOperation. Insert, update, and, delete operations are derived from ModifyOperation.

Classes with names begining with "Full" are deprecated. There are methods in the other operations that are preferred alternatives to "Full" operations. 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);