|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
containerPolicy, useAbstractRecord |
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 | |
---|---|
java.lang.Object |
buildObject(org.eclipse.persistence.internal.sessions.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. |
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 |
---|
cacheResult, clone, execute, executeDatabaseQuery, getContainerPolicy, isDataReadQuery, prepare, prepareForExecution, remoteExecute, setContainerPolicy, setUseAbstractRecord, 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()
public void setValueConverter(Converter valueConverter)
public java.lang.Object buildObject(org.eclipse.persistence.internal.sessions.AbstractRecord row)
buildObject
in class ReadQuery
public java.lang.Object executeNonCursor() throws DatabaseException, QueryException
executeNonCursor
in class DataReadQuery
DatabaseException
QueryException
public boolean isDirectReadQuery()
isDirectReadQuery
in class DatabaseQuery
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |