|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.queries.DatabaseQuery org.eclipse.persistence.queries.ReadQuery org.eclipse.persistence.queries.DataReadQuery org.eclipse.persistence.queries.DirectReadQuery
public class DirectReadQuery
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.
Field Summary | |
---|---|
protected Converter |
valueConverter
Allows user defined conversion between the result value and the database value. |
Fields inherited from class org.eclipse.persistence.queries.DataReadQuery |
---|
ARRAY, ATTRIBUTE, AUTO, containerPolicy, MAP, resultType, VALUE |
Fields inherited from class org.eclipse.persistence.queries.ReadQuery |
---|
fetchSize, firstResult, maxRows, queryId, queryResultCachingPolicy, temporaryCachedQueryResults |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Converter |
getValueConverter()
PUBLIC: Return the converter on the query. |
boolean |
isDirectReadQuery()
PUBLIC: Return if this is a direct read query. |
void |
setValueConverter(Converter valueConverter)
PUBLIC: Set the converter on the query. |
Methods inherited from class org.eclipse.persistence.queries.DataReadQuery |
---|
buildObject, cacheResult, clone, execute, executeDatabaseQuery, executeNonCursor, getContainerPolicy, getResultType, isDataReadQuery, prepare, prepareForExecution, remoteExecute, setContainerPolicy, setResultType, setResultType, useCollectionClass, useCursoredStream, useCursoredStream, useCursoredStream, useScrollableCursor, useScrollableCursor, useScrollableCursor |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Converter valueConverter
Constructor Detail |
---|
public DirectReadQuery()
public DirectReadQuery(java.lang.String sqlString)
public DirectReadQuery(Call call)
Method Detail |
---|
public Converter getValueConverter()
getValueConverter
in class DataReadQuery
public void setValueConverter(Converter valueConverter)
public boolean isDirectReadQuery()
isDirectReadQuery
in class DatabaseQuery
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |