Class DirectReadQuery

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
ValueReadQuery

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.

Since:
TOPLink/Java 1.0
See Also:
  • Field Details

    • valueConverter

      protected Converter valueConverter
      Allows user defined conversion between the result value and the database value.
  • Constructor Details

    • DirectReadQuery

      public DirectReadQuery()
      PUBLIC: Initialize the state of the query.
    • DirectReadQuery

      public DirectReadQuery(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.
    • DirectReadQuery

      public DirectReadQuery(Call call)
      PUBLIC: Initialize the query to use the specified call.
  • Method Details

    • getValueConverter

      public Converter getValueConverter()
      PUBLIC: Return the converter on the query. A converter can be used to convert between the result value and database value.
      Overrides:
      getValueConverter in class DataReadQuery
    • setValueConverter

      public void setValueConverter(Converter valueConverter)
      PUBLIC: Set the converter on the query. A converter can be used to convert between the result value and database value.
    • isDirectReadQuery

      public boolean isDirectReadQuery()
      PUBLIC: Return if this is a direct read query.
      Overrides:
      isDirectReadQuery in class DatabaseQuery