|
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
org.eclipse.persistence.queries.ValueReadQuery
public class ValueReadQuery
Purpose: Concrete class to perform a read of a single data value.
Responsibilities: Used in conjunction with CursoredStream size and Platform getSequence. This can be used to read a single data value (i.e. one field). A single data value is returned, or null if no rows are returned.
Field Summary |
---|
Fields inherited from class org.eclipse.persistence.queries.DirectReadQuery |
---|
valueConverter |
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 | |
---|---|
ValueReadQuery()
PUBLIC: Initialize the state of the query. |
|
ValueReadQuery(Call call)
PUBLIC: Initialize the query to use the specified call. |
|
ValueReadQuery(java.lang.String sqlString)
PUBLIC: Initialize the query to use the specified SQL string. |
Method Summary | |
---|---|
java.lang.Object |
executeDatabaseQuery()
INTERNAL: Execute the query. |
boolean |
isValueReadQuery()
PUBLIC: Return if this is a value read query. |
Methods inherited from class org.eclipse.persistence.queries.DirectReadQuery |
---|
buildObject, executeNonCursor, getValueConverter, isDirectReadQuery, setValueConverter |
Methods inherited from class org.eclipse.persistence.queries.DataReadQuery |
---|
cacheResult, clone, execute, 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 |
Constructor Detail |
---|
public ValueReadQuery()
public ValueReadQuery(java.lang.String sqlString)
public ValueReadQuery(Call call)
Method Detail |
---|
public java.lang.Object executeDatabaseQuery() throws DatabaseException
executeDatabaseQuery
in class DataReadQuery
DatabaseException
- an error has occurred on the databasepublic boolean isValueReadQuery()
isValueReadQuery
in class DatabaseQuery
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |