Class ValueReadQuery

All Implemented Interfaces:
Serializable, Cloneable

public class ValueReadQuery extends DirectReadQuery

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.

See Also:
Author:
James Sutherland
  • Constructor Details

    • ValueReadQuery

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

      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.
    • ValueReadQuery

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

    • isValueReadQuery

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