|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.operation.SqlOperation<R> org.sormula.operation.ScalarSelectOperation<R> org.sormula.operation.SelectOperation<R,java.util.Map<K,R>> org.sormula.operation.MapSelectOperation<K,R> org.sormula.operation.HashMapSelectOperation<K,R>
K
- key class type for row objectsR
- Class associated with a row in tablepublic class HashMapSelectOperation<K,R>
MapSelectOperation
that uses HashMap
for SelectOperation.readAll()
results.
Constructor Summary | |
---|---|
HashMapSelectOperation(Table<R> table)
Constructs for a table. |
|
HashMapSelectOperation(Table<R> table,
java.lang.String whereConditionName)
Constructs for a table and where condition. |
Method Summary | |
---|---|
protected java.util.Map<K,R> |
createReadAllCollection()
Creates an HashMap to contain selected rows. |
Methods inherited from class org.sormula.operation.MapSelectOperation |
---|
add, getGetKeyMethod, getGetKeyMethodName, getKey, prepare, setGetKeyMethod, setGetKeyMethodName |
Methods inherited from class org.sormula.operation.SelectOperation |
---|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashMapSelectOperation(Table<R> table) throws OperationException
table
- select from this table
OperationException
- if errorpublic HashMapSelectOperation(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 errorMethod Detail |
---|
protected java.util.Map<K,R> createReadAllCollection()
HashMap
to contain selected rows.
createReadAllCollection
in class SelectOperation<R,java.util.Map<K,R>>
HashMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |