org.sormula.operation
Class ListSelectOperation<R>

java.lang.Object
  extended by org.sormula.operation.SqlOperation<R>
      extended by org.sormula.operation.ScalarSelectOperation<R>
          extended by org.sormula.operation.SelectOperation<R,java.util.List<R>>
              extended by org.sormula.operation.ListSelectOperation<R>
Type Parameters:
R - Class associated with a row in table
Direct Known Subclasses:
ArrayListSelectOperation

public abstract class ListSelectOperation<R>
extends SelectOperation<R,java.util.List<R>>

SelectOperation that uses List for SelectOperation.readAll() results.

Since:
1.0
Author:
Jeff Miller

Constructor Summary
ListSelectOperation(Table<R> table)
          Constructs for a table to select by primary key.
ListSelectOperation(Table<R> table, java.lang.String whereConditionName)
          Constructs for a table and where condition.
 
Method Summary
protected  boolean add(R row)
          Implement to add row to collection created SelectOperation.createReadAllCollection().
 
Methods inherited from class org.sormula.operation.SelectOperation
createReadAllCollection, getDefaultReadAllSize, getSelectedRows, readAll, selectAll, selectAll, setDefaultReadAllSize
 
Methods inherited from class org.sormula.operation.ScalarSelectOperation
close, execute, getMaximumRowsRead, getOrderByName, getOrderByTranslator, getResultSet, getRowsReadCount, getSql, initBaseSql, isLazySelectsCascades, isNotifyLazySelects, postRead, postReadCascade, prepareCascades, preRead, preReadCascade, readNext, select, select, setMaximumRowsRead, setOrderBy, setOrderByTranslator, setParameters, setRowParameters
 
Methods inherited from class org.sormula.operation.SqlOperation
cancel, cascade, closeCascades, closeStatement, createTargetField, getBaseSql, getConnection, getCustomSql, getNextParameter, getOperationTime, getParameters, getPreparedSql, getPreparedStatement, getQueryTimeout, getTable, getTargetTable, getTimingId, getWhereConditionName, getWhereTranslator, initOperationTime, isAutoGeneratedKeys, isIncludeIdentityColumns, isReadOnly, isTimings, logTimings, prepare, prepareCascades, prepareCheck, prepareColumns, prepareParameters, prepareWhere, setAutoGeneratedKeys, setBaseSql, setCustomSql, setIncludeIdentityColumns, setNextParameter, setQueryTimeout, setReadOnly, setTimingId, setTimings, setWhere, setWhereTranslator, writeColumns, writeParameter, writeParameters, writeWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSelectOperation

public ListSelectOperation(Table<R> table)
                    throws OperationException
Constructs for a table to select by primary key.

Parameters:
table - select from this table
Throws:
OperationException - if error

ListSelectOperation

public ListSelectOperation(Table<R> table,
                           java.lang.String whereConditionName)
                    throws OperationException
Constructs for a table and where condition.

Parameters:
table - select from this table
whereConditionName - name of where condition to use ("primaryKey" to select by primary key; empty string to select all rows in table)
Throws:
OperationException - if error
Method Detail

add

protected boolean add(R row)
Implement to add row to collection created SelectOperation.createReadAllCollection().

Specified by:
add in class SelectOperation<R,java.util.List<R>>
Parameters:
row - row to add
Returns:
true if added ok