R
- Class associated with a row in tablepublic class ArrayListSelectOperation<R> extends ListSelectOperation<R>
Constructor and Description |
---|
ArrayListSelectOperation(Table<R> table)
Constructs for a table to use primary key where condition.
|
ArrayListSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<R> |
createReadAllCollection()
Creates an
ArrayList to contain selected rows. |
add
getDefaultReadAllSize, getFetchSize, getResultSetType, getSelectedRows, prepareStatement, readAll, selectAll, selectAll, setDefaultReadAllSize, setFetchSize, setResultSetType, setWhere
addFilter, close, execute, getFilterPredicateMap, getMaximumRowsRead, getOrderByName, getOrderByTranslator, getResultSet, getRowsReadCount, getSql, initBaseSql, isExecuted, isLazySelectsCascades, isNotifyLazySelects, iterator, positionAbsolute, positionRelative, postRead, postReadCascade, prepareCascades, preRead, preReadCascade, readNext, removeFilter, resetRowsReadCount, select, select, setFilterPredicateMap, setMaximumRowsRead, setOrderBy, setOrderByTranslator, setParameters, setRowParameters, updateActiveFilterPredicate
cancel, cascade, closeCascades, closeStatement, createRowField, getBaseSql, getCascadeDepth, getConnection, getCustomSql, getNamedParameterMap, getNextParameter, getOperationTime, getParameter, getParameters, getPreparedSql, getPreparedStatement, getQueryTimeout, getRequiredCascades, getTable, getTargetTable, getTimingId, getWhereAnnotation, getWhereConditionName, getWhereTranslator, initOperationTime, isCached, isCascade, isCascading, isIncludeIdentityColumns, isPrimaryKey, isReadOnly, isRequiredCascade, isTimings, logTimings, prepare, prepareCascades, prepareCheck, setBaseSql, setCached, setCascade, setCascadeDepth, setCustomSql, setIncludeIdentityColumns, setNamedParameterMap, setNextParameter, setParameter, setQueryTimeout, setReadOnly, setRequiredCascades, setTimingId, setTimings, setWhereTranslator, writeColumns, writeParameter, writeParameters, writeWhere
public ArrayListSelectOperation(Table<R> table) throws OperationException
SqlOperation
classes.
It is unlikely that you will want to use this constructor without also
changing the where condition since at most one row will be selected. Use
SelectOperation.setWhere(String)
or SqlOperation.setWhereTranslator(org.sormula.translator.AbstractWhereTranslator)
to change the default primary key where condition.
table
- select from this tableOperationException
- if errorpublic ArrayListSelectOperation(Table<R> table, java.lang.String whereConditionName) throws OperationException
table
- select from this tablewhereConditionName
- name of where condition to use ("primaryKey" to select
by primary key; empty string to select all rows in table)OperationException
- if errorprotected java.util.ArrayList<R> createReadAllCollection()
ArrayList
to contain selected rows.createReadAllCollection
in class SelectOperation<R,java.util.List<R>>
ArrayList