public class ReportQuery extends ReadAllQuery
Attribute Types:
retrievePrimaryKeys()
,
If the values are wanted in the result array then they must be added as attributes. For primary keys which are not mapped directly
you can add them as DatabaseFields (see above).
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected boolean |
addToConstructorItem
flag to allow items to be added to the last ConstructorReportItem
|
protected Class[] |
constructorArgTypes |
protected List |
constructorMappings |
static int |
FIRST_PRIMARY_KEY |
static int |
FULL_PRIMARY_KEY
Specifies whether to retreive primary keys, first primary key, or no primary key.
|
protected Vector |
groupByExpressions
Expressions representing fields to be used in the GROUP BY clause.
|
protected Expression |
havingExpression
Expression representing the HAVING clause.
|
protected Vector |
items
Items to be selected, these could be attributes or aggregate functions.
|
protected Vector |
names
Collection of names for use by results.
|
static int |
NO_PRIMARY_KEY |
protected static Boolean |
RESULT_IGNORED |
protected Class |
resultConstructorClass |
protected int |
returnChoice
Can be one of (ShouldReturnSingleResult, ShouldReturnSingleValue, ShouldReturnSingleAttribute)
Simplifies the result by only returning the first result, first value, or all attribute values
|
protected HashSet |
returnedKeys |
protected int |
shouldRetrievePrimaryKeys
Flag indicating wether the primary key values should also be retrieved for the reference class.
|
static int |
ShouldReturnSingleAttribute
Simplifies the result by only returning the single attribute(as opposed to wrapping in a
ReportQueryResult).
|
static int |
ShouldReturnSingleResult
Simplifies the result by only returning the first result.
|
static int |
ShouldReturnSingleValue
Simplifies the result by only returning one value.
|
static int |
ShouldReturnWithoutReportQueryResult
For EJB 3 support returns results without using the ReportQueryResult
|
containerPolicy, orderByExpressions
additionalFields, cacheUsage, CheckCacheByExactPrimaryKey, CheckCacheByPrimaryKey, CheckCacheOnly, CheckCacheThenDatabase, ConformResultsInUnitOfWork, defaultBuilder, distinctState, DoNotCheckCache, DONT_USE_DISTINCT, executionTime, fetchGroup, fetchGroupName, inMemoryQueryIndirectionPolicy, joinedAttributeManager, LOCK_RESULT_PROPERTY, nonFetchJoinAttributeExpressions, shouldIncludeData, shouldProcessResultsInUnitOfWork, shouldRefreshIdentityMapResult, shouldRegisterResultsInUnitOfWork, shouldUseDefaultFetchGroup, UNCOMPUTED_DISTINCT, USE_DISTINCT, UseDescriptorSetting, wasDefaultLockMode
DEFAULT_LOCK_MODE, isPrePrepared, LOCK, LOCK_NOWAIT, lockingClause, NO_LOCK, referenceClass, referenceClassName, shouldRefreshRemoteIdentityMapResult, shouldUseExclusiveConnection
firstResult, maxRows, queryId
accessor, arguments, argumentTypeNames, argumentTypes, argumentValues, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, cascadePolicy, CascadePrivateParts, descriptor, flushOnExecute, isPrepared, isUserDefined, name, NoCascading, properties, queryMechanism, session, sessionName, shouldBindAllParameters, shouldCacheStatement, shouldCloneCall, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy, translationRow
False, True, Undefined
Constructor and Description |
---|
ReportQuery()
INTERNAL:
The builder should be provided.
|
ReportQuery(Class javaClass,
Expression expression) |
ReportQuery(Class javaClass,
ExpressionBuilder builder)
PUBLIC:
The report query is require to be constructor with an expression builder.
|
ReportQuery(ExpressionBuilder builder)
PUBLIC:
The report query is require to be constructor with an expression builder.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String itemName)
PUBLIC:
Add the attribute from the reference class to be included in the result.
|
void |
addAttribute(String itemName,
Expression attributeExpression)
PUBLIC:
Add the attribute to be included in the result.
|
void |
addAttribute(String itemName,
Expression attributeExpression,
Class type)
PUBLIC:
Add the attribute to be included in the result.
|
void |
addAverage(String itemName)
PUBLIC:
Add the average value of the attribute to be included in the result.
|
void |
addAverage(String itemName,
Class resultType)
PUBLIC:
Add the average value of the attribute to be included in the result and
return it as the specified resultType.
|
void |
addAverage(String itemName,
Expression attributeExpression)
PUBLIC:
Add the average value of the attribute to be included in the result.
|
void |
addAverage(String itemName,
Expression attributeExpression,
Class resultType)
PUBLIC:
Add the average value of the attribute to be included in the result and
return it as the specified resultType.
|
void |
addConstructorReportItem(ConstructorReportItem item)
PUBLIC:
Add a ConstructorReportItem to this query's set of return values.
|
void |
addCount()
PUBLIC:
Include the number of rows returned by the query in the result.
|
void |
addCount(String attributeName)
PUBLIC:
Include the number of rows returned by the query in the result, where attributeExpression is not null.
|
void |
addCount(String attributeName,
Class resultType)
PUBLIC:
Include the number of rows returned by the query in the result, where attributeExpression is not null.
|
void |
addCount(String itemName,
Expression attributeExpression)
PUBLIC:
Include the number of rows returned by the query in the result, where attributeExpression
is not null.
|
void |
addCount(String itemName,
Expression attributeExpression,
Class resultType)
PUBLIC:
Include the number of rows returned by the query in the result, where attributeExpression
is not null.
|
void |
addFunctionItem(String itemName,
Expression attributeExpression,
String functionName)
ADVANCED:
Add the function against the attribute expression to be included in the result.
|
void |
addGrouping(Expression expression)
PUBLIC:
Add the attribute expression to the group by expressions.
|
void |
addGrouping(String attributeName)
PUBLIC:
Add the attribute to the group by expressions.
|
void |
addItem(String itemName,
Expression attributeExpression)
ADVANCED:
Add the expression value to be included in the result.
|
protected void |
addItem(String itemName,
Expression attributeExpression,
Class resultType)
INTERNAL:
Add the expression value to be included in the result.
|
void |
addItem(String itemName,
Expression attributeExpression,
List joinedExpressions)
ADVANCED:
Add the expression value to be included in the result.
|
void |
addMaximum(String itemName)
PUBLIC:
Add the maximum value of the attribute to be included in the result.
|
void |
addMaximum(String itemName,
Expression attributeExpression)
PUBLIC:
Add the maximum value of the attribute to be included in the result.
|
void |
addMinimum(String itemName)
PUBLIC:
Add the minimum value of the attribute to be included in the result.
|
void |
addMinimum(String itemName,
Expression attributeExpression)
PUBLIC:
Add the minimum value of the attribute to be included in the result.
|
void |
addStandardDeviation(String itemName)
PUBLIC:
Add the standard deviation value of the attribute to be included in the result.
|
void |
addStandardDeviation(String itemName,
Expression attributeExpression)
PUBLIC:
Add the standard deviation value of the attribute to be included in the result.
|
void |
addSum(String itemName)
PUBLIC:
Add the sum value of the attribute to be included in the result.
|
void |
addSum(String itemName,
Class resultType)
PUBLIC:
Add the sum value of the attribute to be included in the result and
return it as the specified resultType.
|
void |
addSum(String itemName,
Expression attributeExpression)
PUBLIC:
Add the sum value of the attribute to be included in the result.
|
void |
addSum(String itemName,
Expression attributeExpression,
Class resultType)
PUBLIC:
Add the sum value of the attribute to be included in the result and
return it as the specified resultType.
|
void |
addVariance(String itemName)
PUBLIC:
Add the variance value of the attribute to be included in the result.
|
void |
addVariance(String itemName,
Expression attributeExpression)
PUBLIC:
Add the variance value of the attribute to be included in the result.
|
ConstructorReportItem |
beginAddingConstructorArguments(Class constructorClass)
PUBLIC: Call a constructor for the given class with the results of this query.
|
ConstructorReportItem |
beginAddingConstructorArguments(Class constructorClass,
Class[] constructorArgTypes)
PUBLIC: Call a constructor for the given class with the results of this query.
|
Object |
buildObject(AbstractRecord row,
Vector toManyJoinData)
INTERNAL:
Construct a result from a row.
|
Object |
buildObjects(Vector rows)
INTERNAL:
Construct a container of ReportQueryResult from the rows.
|
protected Object |
checkEarlyReturnImpl(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
The cache check is done before the prepare as a hit will not require the work to be done.
|
void |
clearItems()
INTERNAL:
Clear the ReportQueryItems
|
void |
copyReportItems(Dictionary alreadyDone)
INTERNAL: Required for a very special case of bug 2612185:
ReportItems from parallelExpressions, on a ReportQuery which is a subQuery,
which is being batch read.
|
void |
dontRetrievePrimaryKeys()
PUBLIC:
Set if the query results should contain the primary keys or each associated object.
|
void |
dontReturnSingleAttribute()
PUBLIC:
Don't simplify the result by returning the single attribute.
|
void |
dontReturnSingleResult()
PUBLIC:
Simplifies the result by only returning the first result.
|
void |
dontReturnSingleValue()
PUBLIC:
Simplifies the result by only returning a single value.
|
void |
dontReturnWithoutReportQueryResult()
PUBLIC:
Simplifies the result by only returning a single value.
|
void |
endAddingToConstructorItem()
PUBLIC:
Used in conjunction with beginAddingConstructorArguments to signal that expressions should no longer be
be added to the collection used in the constructor
Get the rows and build the object from the rows.
|
Object |
executeDatabaseQuery()
INTERNAL:
Execute the query.
|
Vector |
getGroupByExpressions()
INTERNAL:
Return the group bys.
|
Expression |
getHavingExpression()
INTERNAL:
Return the Having expression.
|
Vector |
getItemExpressions()
INTERNAL:
return a collection of expressions from the items.
|
Vector |
getItems()
INTERNAL:
|
Vector |
getNames()
INTERNAL:
Lazily initialize and return the names of the items requested for use in each result object
|
Vector |
getQueryExpressions()
INTERNAL:
return a collection of expressions if PK's are used.
|
boolean |
isReportQuery()
PUBLIC:
Return if this is a report query.
|
protected void |
prepare()
INTERNAL:
Prepare the receiver for execution in a session.
|
protected void |
prepareObjectAttributeCount(Dictionary clonedExpressions)
INTERNAL:
Prepare a report query with a count defined on an object attribute.
|
protected void |
prepareSelectAllRows()
INTERNAL:
Prepare the mechanism.
|
void |
prepareSubSelect(AbstractSession session,
AbstractRecord translationRow,
Dictionary clonedExpressions)
INTERNAL:
Prepare the receiver for being printed inside a subselect.
|
void |
retrievePrimaryKeys()
PUBLIC:
Set if the query results should contain the primary keys or each associated object.
|
void |
returnSingleAttribute()
PUBLIC:
Simplify the result by returning a single attribute.
|
void |
returnSingleResult()
PUBLIC:
Simplifies the result by only returning the first result.
|
void |
returnSingleValue()
PUBLIC:
Simplifies the result by only returning a single value.
|
void |
returnWithoutReportQueryResult()
PUBLIC:
Simplifies the result by only returning a single value.
|
void |
setHavingExpression(Expression expression)
PUBLIC:
Add the expression to the query to be used in the HAVING clause.
|
void |
setShouldRetrieveFirstPrimaryKey(boolean shouldRetrieveFirstPrimaryKey)
ADVANCED:
Sets if the query results should contain the first primary key of each associated object.
|
void |
setShouldRetrievePrimaryKeys(boolean shouldRetrievePrimaryKeys)
PUBLIC:
Set if the query results should contain the primary keys or each associated object.
|
void |
setShouldReturnSingleAttribute(boolean newChoice)
PUBLIC:
Simplifies the result by only returning the attribute (as opposed to wrapping in a ReportQueryResult).
|
void |
setShouldReturnSingleResult(boolean newChoice)
PUBLIC:
Simplifies the result by only returning the first result.
|
void |
setShouldReturnSingleValue(boolean newChoice)
PUBLIC:
Simplifies the result by only returning a single value.
|
void |
setShouldReturnWithoutReportQueryResult(boolean newChoice)
PUBLIC:
Simplifies the result by returning a nested list instead of the ReportQueryResult.
|
boolean |
shouldRetrieveFirstPrimaryKey()
PUBLIC:
Return if the query results should contain the first primary key of each associated object.
|
boolean |
shouldRetrievePrimaryKeys()
PUBLIC:
Return if the query results should contain the primary keys or each associated object.
|
boolean |
shouldReturnSingleAttribute()
PUBLIC:
Answer if we are only returning the attribute (as opposed to wrapping in a ReportQueryResult).
|
boolean |
shouldReturnSingleResult()
PUBLIC:
Simplifies the result by only returning the first result.
|
boolean |
shouldReturnSingleValue()
PUBLIC:
Simplifies the result by only returning a single value.
|
boolean |
shouldReturnWithoutReportQueryResult()
PUBLIC:
Simplifies the result by returning a nested list instead of the ReportQueryResult.
|
addAscendingOrdering, addDescendingOrdering, addOrdering, checkForCustomQuery, clone, conformResult, executeObjectLevelReadQuery, getContainerPolicy, getOrderByExpressions, hasBatchReadAttributes, hasHierarchicalExpressions, hasOrderByExpressions, isAttributeBatchRead, isReadAllQuery, prepareCustomQuery, prepareForExecution, registerResultInUnitOfWork, setContainerPolicy, setOrderByExpressions, useCollectionClass, useMapClass
acquireLocks, acquireLocksWithoutWaiting, addAdditionalField, addAdditionalField, addJoinedAttribute, addJoinedAttribute, addNonFetchJoinedAttribute, addNonFetchJoinedAttribute, addSelectionFieldsForJoinedExpressions, buildObject, changeDescriptor, checkCacheOnly, checkDescriptor, checkEarlyReturn, checkPrepare, checkPrePrepare, conformIndividualResult, conformResultsInUnitOfWork, deepClone, dontAcquireLocks, dontCheckCache, dontRefreshIdentityMapResult, dontUseDistinct, execute, executeInUnitOfWork, getAdditionalFields, getCacheUsage, getDistinctState, getExecutionTime, getExpressionBuilder, getFetchGroup, getFetchGroupName, getInMemoryQueryIndirectionPolicy, getJoinedAttributeManager, getLeafDescriptorFor, getLeafMappingFor, getLockingClause, getLockMode, getNonFetchJoinAttributeExpressions, getReferenceClass, getReferenceClassName, getSelectionFields, hasAsOfClause, hasFetchGroupAttributeExpressions, hasNonFetchJoinedAttributeExpressions, hasPartialAttributeExpressions, initializeDefaultBuilder, initializeFetchGroup, isClonePessimisticLocked, isDefaultLock, isDistinctComputed, isFetchGroupAttribute, isLockQuery, isLockQuery, isObjectLevelReadQuery, isPrePrepared, isRegisteringResults, prepareOutsideUnitOfWork, prepareQuery, prePrepare, recordCloneForPessimisticLocking, refreshIdentityMapResult, resetDistinct, setAdditionalFields, setCacheUsage, setDescriptor, setDistinctState, setEJBQLString, setExecutionTime, setExpressionBuilder, setFetchGroup, setFetchGroupName, setInMemoryQueryIndirectionPolicy, setIsPrePrepared, setLockingClause, setLockMode, setNonFetchJoinAttributeExpressions, setReferenceClass, setReferenceClassName, setSelectionCriteria, setShouldIncludeData, setShouldProcessResultsInUnitOfWork, setShouldRefreshIdentityMapResult, setShouldRegisterResultsInUnitOfWork, setShouldUseDefaultFetchGroup, setWasDefaultLockMode, shouldCheckCacheOnly, shouldCheckDescriptorForCacheUsage, shouldConformResultsInUnitOfWork, shouldDistinctBeUsed, shouldIncludeData, shouldProcessResultsInUnitOfWork, shouldReadAllMappings, shouldReadMapping, shouldRefreshIdentityMapResult, shouldRegisterResultsInUnitOfWork, shouldUseDefaultFetchGroup, toString, useDistinct, wasDefaultLockMode
convertClassNamesToClasses, dontRefreshRemoteIdentityMapResult, getDataResults, isAttributeJoined, isObjectBuildingQuery, refreshRemoteIdentityMapResult, registerIndividualResult, setShouldRefreshRemoteIdentityMapResult, shouldRefreshRemoteIdentityMapResult
clonedQueryExecutionComplete, getFirstResult, getMaxRows, getQueryId, isReadQuery, setFirstResult, setMaxRows, setQueryId
addArgument, addArgument, addArgument, addArgumentByTypeName, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, buildSelectionCriteria, cacheStatement, cascadeAllParts, cascadeByMapping, cascadeOnlyDependentParts, cascadePrivateParts, deploymentSetShouldMaintainCache, deploymentShouldMaintainCache, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, getAccessor, getArguments, getArgumentTypeNames, getArgumentTypes, getArgumentValues, getCall, getCascadePolicy, getDatasourceCall, getDatasourceCalls, getDescriptor, getEJBQLString, getFlushOnExecute, getName, getProperties, getProperty, getQueryMechanism, getSelectionCriteria, getSession, getSessionName, getShouldBindAllParameters, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, getTranslationRow, hasAccessor, hasProperties, hasQueryMechanism, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isCascadeOfAggregateDelete, isDataModifyQuery, isDataReadQuery, isDeleteAllQuery, isDeleteObjectQuery, isExpressionQuery, isInsertObjectQuery, isModifyAllQuery, isModifyQuery, isObjectLevelModifyQuery, isPrepared, isReadObjectQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isUserDefined, isWriteObjectQuery, maintainCache, prepareCall, prepareForRemoteExecution, removeProperty, rowFromArguments, setAccessor, setArguments, setArgumentTypeNames, setArgumentTypes, setArgumentValues, setCall, setCascadePolicy, setDatasourceCall, setFlushOnExecute, setIsPrepared, setIsUserDefined, setName, setProperties, setProperty, setQueryMechanism, setSession, setSessionName, setShouldBindAllParameters, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldUseWrapperPolicy, setSQLStatement, setSQLString, setTranslationRow, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeOnlyDependentParts, shouldCascadeParts, shouldCascadePrivateParts, shouldCloneCall, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy
public static final int ShouldReturnSingleResult
public static final int ShouldReturnSingleValue
public static final int ShouldReturnSingleAttribute
public static final int ShouldReturnWithoutReportQueryResult
public static final int FULL_PRIMARY_KEY
public static final int FIRST_PRIMARY_KEY
public static final int NO_PRIMARY_KEY
protected static final Boolean RESULT_IGNORED
protected int shouldRetrievePrimaryKeys
protected Vector names
protected Vector items
protected Vector groupByExpressions
protected Expression havingExpression
protected int returnChoice
protected boolean addToConstructorItem
protected Class resultConstructorClass
protected Class[] constructorArgTypes
protected List constructorMappings
protected HashSet returnedKeys
public ReportQuery()
public ReportQuery(Class javaClass, Expression expression)
public ReportQuery(Class javaClass, ExpressionBuilder builder)
public ReportQuery(ExpressionBuilder builder)
public void addAttribute(String itemName)
public void addAttribute(String itemName, Expression attributeExpression)
public void addAttribute(String itemName, Expression attributeExpression, Class type)
public void addAverage(String itemName)
public void addAverage(String itemName, Class resultType)
public void addAverage(String itemName, Expression attributeExpression)
public void addAverage(String itemName, Expression attributeExpression, Class resultType)
public void addConstructorReportItem(ConstructorReportItem item)
ConstructorReportItem
- - used to specify a class constructor and values to pass in from this queryConstructorReportItem
public void addCount()
addCount(java.lang.String)
public void addCount(String attributeName)
Example:
TopLink: reportQuery.addCount("id"); SQL: SELECT COUNT (t0.EMP_ID) FROM EMPLOYEE t0, ...
attributeName
- the number of rows where attributeName is not null will be returned.addCount(java.lang.String, oracle.toplink.essentials.expressions.Expression)
public void addCount(String attributeName, Class resultType)
Example:
TopLink: reportQuery.addCount("id", Long.class); SQL: SELECT COUNT (t0.EMP_ID) FROM EMPLOYEE t0, ...
attributeName
- the number of rows where attributeName is not null will be returned.addCount(java.lang.String, oracle.toplink.essentials.expressions.Expression)
public void addCount(String itemName, Expression attributeExpression)
Example:
TopLink: reportQuery.addCount("Count", getExpressionBuilder().get("id")); SQL: SELECT COUNT (t0.EMP_ID) FROM EMPLOYEE t0, ...
Example: counting only distinct values of an attribute.
objectAttributes can be specified also, even accross many to many mappings.TopLink: reportQuery.addCount("Count", getExpressionBuilder().get("address").distinct()); SQL: SELECT COUNT (DISTINCT t0.ADDR_ID) FROM EMPLOYEE t0, ...
addCount()
public void addCount(String itemName, Expression attributeExpression, Class resultType)
Example:
TopLink: reportQuery.addCount("Count", getExpressionBuilder().get("id"), Integer.class); SQL: SELECT COUNT (t0.EMP_ID) FROM EMPLOYEE t0, ...
Example: counting only distinct values of an attribute.
objectAttributes can be specified also, even accross many to many mappings.TopLink: reportQuery.addCount("Count", getExpressionBuilder().get("address").distinct()); SQL: SELECT COUNT (DISTINCT t0.ADDR_ID) FROM EMPLOYEE t0, ...
addCount()
public void addFunctionItem(String itemName, Expression attributeExpression, String functionName)
public void addGrouping(String attributeName)
public void addGrouping(Expression expression)
public void setHavingExpression(Expression expression)
public void addItem(String itemName, Expression attributeExpression)
public void addItem(String itemName, Expression attributeExpression, List joinedExpressions)
protected void addItem(String itemName, Expression attributeExpression, Class resultType)
public void addMaximum(String itemName)
public void addMaximum(String itemName, Expression attributeExpression)
public void addMinimum(String itemName)
public void addMinimum(String itemName, Expression attributeExpression)
public void addStandardDeviation(String itemName)
public void addStandardDeviation(String itemName, Expression attributeExpression)
public void addSum(String itemName)
public void addSum(String itemName, Class resultType)
public void addSum(String itemName, Expression attributeExpression)
public void addSum(String itemName, Expression attributeExpression, Class resultType)
public void addVariance(String itemName)
public void addVariance(String itemName, Expression attributeExpression)
public ConstructorReportItem beginAddingConstructorArguments(Class constructorClass)
constructorClass
- public ConstructorReportItem beginAddingConstructorArguments(Class constructorClass, Class[] constructorArgTypes)
constructorClass
- constructorArgTypes
- - sets the argument types to be passed to the constructor.public Object buildObject(AbstractRecord row, Vector toManyJoinData)
public Object buildObjects(Vector rows)
protected Object checkEarlyReturnImpl(AbstractSession session, AbstractRecord translationRow)
checkEarlyReturnImpl
in class ReadAllQuery
public void copyReportItems(Dictionary alreadyDone)
public void dontRetrievePrimaryKeys()
public void dontReturnSingleAttribute()
public void dontReturnSingleResult()
public void dontReturnSingleValue()
public void dontReturnWithoutReportQueryResult()
public void endAddingToConstructorItem()
DatabaseException
- - an error has occurred on the databasepublic Object executeDatabaseQuery() throws DatabaseException
executeDatabaseQuery
in class ObjectLevelReadQuery
DatabaseException
- - an error has occurred on the databasepublic Vector getGroupByExpressions()
public Expression getHavingExpression()
public Vector getQueryExpressions()
public Vector getItemExpressions()
public Vector getItems()
public void clearItems()
public Vector getNames()
public boolean isReportQuery()
isReportQuery
in class DatabaseQuery
protected void prepare() throws QueryException
prepare
in class ReadAllQuery
QueryException
protected void prepareObjectAttributeCount(Dictionary clonedExpressions)
protected void prepareSelectAllRows()
prepareSelectAllRows
in class ReadAllQuery
public void prepareSubSelect(AbstractSession session, AbstractRecord translationRow, Dictionary clonedExpressions) throws QueryException
QueryException
public void retrievePrimaryKeys()
public void returnSingleAttribute()
public void returnSingleResult()
public void returnSingleValue()
public void returnWithoutReportQueryResult()
public void setShouldRetrievePrimaryKeys(boolean shouldRetrievePrimaryKeys)
public void setShouldRetrieveFirstPrimaryKey(boolean shouldRetrieveFirstPrimaryKey)
public void setShouldReturnSingleAttribute(boolean newChoice)
public void setShouldReturnSingleResult(boolean newChoice)
public void setShouldReturnSingleValue(boolean newChoice)
public void setShouldReturnWithoutReportQueryResult(boolean newChoice)
public boolean shouldRetrievePrimaryKeys()
public boolean shouldRetrieveFirstPrimaryKey()
public boolean shouldReturnSingleAttribute()
public boolean shouldReturnSingleResult()
public boolean shouldReturnSingleValue()
public boolean shouldReturnWithoutReportQueryResult()
Copyright © 2023. All rights reserved.