|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.operation.FullSelect<R,java.util.List<R>> org.sormula.operation.FullListSelect<R>
R
- class type which contains members for columns of a row in a table
@Deprecated public class FullListSelect<R>
Use SelectOperation.selectAll(Object)
or
ScalarSelectOperation.select(Object...)
instead of this class.
FullSelect
with List
as result type.
Constructor Summary | |
---|---|
FullListSelect(ListSelectOperation<R> selectOperation)
Deprecated. Constructs for a ListSelectOperation . |
|
FullListSelect(Table<R> table)
Deprecated. Constructs for a Table to select all rows in table. |
|
FullListSelect(Table<R> table,
java.lang.String whereConditionName)
Deprecated. Constructs for a Table to select by a where condition. |
|
FullListSelect(Table<R> table,
java.lang.String whereConditionName,
java.lang.String orderByName)
Deprecated. Constructs for a Table to select by a where condition, and order by order condition. |
Method Summary |
---|
Methods inherited from class org.sormula.operation.FullSelect |
---|
execute, execute, executeAll, executeAll, getSelectOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullListSelect(ListSelectOperation<R> selectOperation)
ListSelectOperation
. Use this constructor if
select operation is already created.
Example: Select some students:
ListSelectOperation<Student> someListSelectOperation = ... List<Student> selectedList = new FullListSelect<Student>(someListSelectOperation).executeAll();
selectOperation
- select operation that returns List
public FullListSelect(Table<R> table) throws SormulaException
Table
to select all rows in table.
Example: Select all students:
Database database = ... Table<Student> table = database.getTable(Student.class); List<Student> selectedList = new FullListSelect<Student>(table).executeAll();
table
- select from this table
SormulaException
public FullListSelect(Table<R> table, java.lang.String whereConditionName) throws SormulaException
Table
to select by a where condition.
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 FullListSelect<Student>(table, "byType").executeAll(3);
table
- select from this tablewhereConditionName
- name of where condition to use; see SqlOperation.setWhere(String)
SormulaException
public FullListSelect(Table<R> table, java.lang.String whereConditionName, java.lang.String orderByName) throws SormulaException
Table
to select by a where condition, and order by order condition.
Example: Select all students by type 3 ("byType" is name of Where annotation on Student, "byName" is name of OrderBy annotation on Student):
Database database = ... Table<Student> table = database.getTable(Student.class); List<Student> selectedList = new FullListSelect<Student>(table, "byType", "byName").executeAll(3);
table
- select from this tablewhereConditionName
- name of where condition to use; see SqlOperation.setWhere(String)
orderByName
- name of order phrase to use as defined in OrderBy.name()
; see
ScalarSelectOperation.setOrderBy(String)
SormulaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |