org.sormula.operation
Class FullListSelect<R>

java.lang.Object
  extended by org.sormula.operation.FullSelect<R,java.util.List<R>>
      extended by org.sormula.operation.FullListSelect<R>
Type Parameters:
R - class type which contains members for columns of a row in a table

Deprecated.

@Deprecated
public class FullListSelect<R>
extends FullSelect<R,java.util.List<R>>

Use SelectOperation.selectAll(Object) or ScalarSelectOperation.select(Object...) instead of this class. FullSelect with List as result type.

Since:
1.0
Author:
Jeff Miller

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

FullListSelect

public FullListSelect(ListSelectOperation<R> selectOperation)
Deprecated. 
Constructs for a 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();
 

Parameters:
selectOperation - select operation that returns List

FullListSelect

public FullListSelect(Table<R> table)
               throws SormulaException
Deprecated. 
Constructs for a 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();
 

Parameters:
table - select from this table
Throws:
SormulaException

FullListSelect

public FullListSelect(Table<R> table,
                      java.lang.String whereConditionName)
               throws SormulaException
Deprecated. 
Constructs for a 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);
 

Parameters:
table - select from this table
whereConditionName - name of where condition to use; see SqlOperation.setWhere(String)
Throws:
SormulaException

FullListSelect

public FullListSelect(Table<R> table,
                      java.lang.String whereConditionName,
                      java.lang.String orderByName)
               throws SormulaException
Deprecated. 
Constructs for a 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);
 

Parameters:
table - select from this table
whereConditionName - 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)
Throws:
SormulaException