public class DirectReadQuery extends DataReadQuery
Purpose: Concrete class to perform a direct read.
Responsibilities: Used in conjunction with DirectCollectionMapping. This can be used to read a single column of data (i.e. one field). A container (implementing Collection) of the data values is returned.
| Modifier and Type | Field and Description |
|---|---|
protected Converter |
valueConverter
Allows user defined conversion between the result value and the database value.
|
containerPolicy, useAbstractRecordfirstResult, maxRows, queryIdaccessor, 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, translationRowFalse, True, Undefined| Constructor and Description |
|---|
DirectReadQuery()
PUBLIC:
Initialize the state of the query.
|
DirectReadQuery(Call call)
PUBLIC:
Initialize the query to use the specified call.
|
DirectReadQuery(java.lang.String sqlString)
PUBLIC:
Initialize the query to use the specified SQL string.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
buildObject(AbstractRecord row)
INTERNAL:
Used by cursored stream.
|
java.lang.Object |
executeNonCursor()
INTERNAL:
The results are *not* in a cursor, build the collection.
|
Converter |
getValueConverter()
PUBLIC:
Return the converter on the query.
|
void |
setValueConverter(Converter valueConverter)
PUBLIC:
Set the converter on the query.
|
clone, executeDatabaseQuery, getContainerPolicy, isDataReadQuery, prepare, prepareForExecution, setContainerPolicy, setUseAbstractRecord, useCollectionClassclonedQueryExecutionComplete, getFirstResult, getMaxRows, getQueryId, isReadQuery, setFirstResult, setMaxRows, setQueryIdaddArgument, addArgument, addArgument, addArgumentByTypeName, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, buildSelectionCriteria, cacheStatement, cascadeAllParts, cascadeByMapping, cascadeOnlyDependentParts, cascadePrivateParts, checkDescriptor, checkEarlyReturn, checkForCustomQuery, checkPrepare, convertClassNamesToClasses, deploymentSetShouldMaintainCache, deploymentShouldMaintainCache, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, execute, executeInUnitOfWork, getAccessor, getArguments, getArgumentTypeNames, getArgumentTypes, getArgumentValues, getCall, getCascadePolicy, getDatasourceCall, getDatasourceCalls, getDescriptor, getEJBQLString, getFlushOnExecute, getName, getProperties, getProperty, getQueryMechanism, getReferenceClass, getReferenceClassName, getSelectionCriteria, getSession, getSessionName, getShouldBindAllParameters, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, getTranslationRow, hasAccessor, hasProperties, hasQueryMechanism, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isCascadeOfAggregateDelete, isDataModifyQuery, isDeleteAllQuery, isDeleteObjectQuery, isExpressionQuery, isInsertObjectQuery, isModifyAllQuery, isModifyQuery, isObjectBuildingQuery, isObjectLevelModifyQuery, isObjectLevelReadQuery, isPrepared, isReadAllQuery, isReadObjectQuery, isReportQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isUserDefined, isWriteObjectQuery, maintainCache, prepareCall, prepareCustomQuery, prepareForRemoteExecution, removeProperty, rowFromArguments, setAccessor, setArguments, setArgumentTypeNames, setArgumentTypes, setArgumentValues, setCall, setCascadePolicy, setDatasourceCall, setDescriptor, setEJBQLString, setFlushOnExecute, setIsPrepared, setIsUserDefined, setName, setProperties, setProperty, setQueryMechanism, setSelectionCriteria, setSession, setSessionName, setShouldBindAllParameters, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldUseWrapperPolicy, setSQLStatement, setSQLString, setTranslationRow, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeOnlyDependentParts, shouldCascadeParts, shouldCascadePrivateParts, shouldCloneCall, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy, toStringprotected Converter valueConverter
public DirectReadQuery()
public DirectReadQuery(java.lang.String sqlString)
public DirectReadQuery(Call call)
public Converter getValueConverter()
public void setValueConverter(Converter valueConverter)
public java.lang.Object buildObject(AbstractRecord row)
buildObject in class ReadQuerypublic java.lang.Object executeNonCursor()
throws DatabaseException,
QueryException
executeNonCursor in class DataReadQueryDatabaseExceptionQueryException