R
- class type which contains members for columns of a row in a table@Deprecated public class SelectCountOperation<R> extends ScalarSelectOperation<R>
SqlOperation.setWhere(String)
to count subset of all rows.
This class remains in this package for backward compatibility. org.sormula.operation.aggregate contains a replacement for this class and it contains other aggregate operations.
Use SelectCountOperation
as a replacement
with "*" for expression in constructor.
SelectCountOperation
Constructor and Description |
---|
SelectCountOperation(Table<R> table)
Deprecated.
Constructs standard sql select by primary key as:
SELECT COUNT(*), ... |
SelectCountOperation(Table<R> table,
java.lang.String whereConditionName)
Deprecated.
Constructs standard sql select as:
SELECT COUNT(*), ... |
Modifier and Type | Method and Description |
---|---|
protected void |
initBaseSql()
Deprecated.
Sets base sql with
SqlOperation.setBaseSql(String) . |
java.lang.Integer |
readCount()
Deprecated.
Reads the count of rows.
|
R |
readNext()
Deprecated.
Use
readCount() instead. |
close, execute, getMaximumRowsRead, getOrderByName, getOrderByTranslator, getResultSet, getRowsReadCount, getSelectCascadeFilters, getSql, isExecuted, isLazySelectsCascades, isNotifyLazySelects, postRead, postReadCascade, prepareCascades, preRead, preReadCascade, select, select, setMaximumRowsRead, setOrderBy, setOrderByTranslator, setParameters, setRowParameters, setSelectCascadeFilters
cancel, cascade, closeCascades, closeStatement, createTargetField, getBaseSql, getConnection, getCustomSql, getNamedParameterMap, getNextParameter, getOperationTime, getParameter, getParameters, getPreparedSql, getPreparedStatement, getQueryTimeout, getRequiredCascades, getTable, getTargetTable, getTimingId, getWhereAnnotation, getWhereConditionName, getWhereTranslator, getWhereTranslator2, initOperationTime, isAutoGeneratedKeys, isCached, isCascade, isCascading, isIncludeIdentityColumns, isPrimaryKey, isReadOnly, isRequiredCascade, isTimings, logTimings, prepare, prepareCascades, prepareCheck, setAutoGeneratedKeys, setBaseSql, setCached, setCascade, setCustomSql, setIncludeIdentityColumns, setNamedParameterMap, setNextParameter, setParameter, setQueryTimeout, setReadOnly, setRequiredCascades, setTimingId, setTimings, setWhere, setWhereTranslator, setWhereTranslator2, writeColumns, writeParameter, writeParameters, writeWhere
public SelectCountOperation(Table<R> table) throws OperationException
table
- insert into this tableOperationException
- if errorpublic SelectCountOperation(Table<R> table, java.lang.String whereConditionName) throws OperationException
table
- insert into 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 void initBaseSql()
SqlOperation.setBaseSql(String)
.initBaseSql
in class ScalarSelectOperation<R>
public R readNext() throws OperationException
readCount()
instead. R class rows are not returned from select count(*).readNext
in class ScalarSelectOperation<R>
OperationException
- for all invocationspublic java.lang.Integer readCount() throws OperationException
ScalarSelectOperation.execute()
prior to using this method.OperationException
- if error