Top Description Fields Constructors Methods
org.eclipse.persistence.queries

public Class ValueReadQuery

extends DirectReadQuery
Class Inheritance

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.

Author
James Sutherland
Since
TOPLink/Java 1.2

Field Summary

Inherited from org.eclipse.persistence.queries.DirectReadQuery:
valueConverter

Constructor Summary

AccessConstructor and Description
public
ValueReadQuery()

PUBLIC: Initialize the state of the query.

public
ValueReadQuery(String sqlString)

PUBLIC: Initialize the query to use the specified SQL string.

public
ValueReadQuery(Call call)

PUBLIC: Initialize the query to use the specified call.

Method Summary

Modifier and TypeMethod and Description
public boolean
isValueReadQuery()

Overrides org.eclipse.persistence.queries.DatabaseQuery.isValueReadQuery.

PUBLIC: Return if this is a value read query.
Inherited from org.eclipse.persistence.queries.DirectReadQuery:
getValueConverterisDirectReadQuerysetValueConverter

Constructor Detail

ValueReadQueryback to summary
public ValueReadQuery()

PUBLIC: Initialize the state of the query.

ValueReadQueryback to summary
public ValueReadQuery(String sqlString)

PUBLIC: Initialize the query to use the specified SQL string.

Warning

Allowing an unverified SQL string to be passed into this method makes your application vulnerable to SQL injection attacks.

ValueReadQueryback to summary
public ValueReadQuery(Call call)

PUBLIC: Initialize the query to use the specified call.

Method Detail

isValueReadQueryback to summary
public boolean isValueReadQuery()

Overrides org.eclipse.persistence.queries.DatabaseQuery.isValueReadQuery.

PUBLIC: Return if this is a value read query.

Annotations
@Override