Class DirectReadQuery

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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.

    See Also:
    Serialized Form
    Author:
    Yvon Lavoie
    Since:
    TOPLink/Java 1.0
    • Field Detail

      • valueConverter

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

      • DirectReadQuery

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

        public DirectReadQuery​(java.lang.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 Detail

      • 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