Interface Query

All Known Implementing Classes:
AbstractDMLQuery, AlterTableQuery, CommitQuery, CreateTableQuery, DeleteQuery, DropTableQuery, InsertQuery, Join, ProcedureQuery, SelectQuery, UpdateQuery

public interface Query
An interface that represents an SQL query.
Author:
Michael Mitrani, 2Train4 - 2004
  • Method Details

    • executeOnSpace

      ResponsePacket executeOnSpace(ISpaceProxy space, Transaction txn) throws SQLException
      Will execute this query on the space and return a ResponsePacket
      Throws:
      SQLException
    • validateQuery

      void validateQuery(ISpaceProxy space) throws SQLException
      Each query should have its own specific validations. this is the place to do them. if some validation fail, an SQLException will be thrown.
      Throws:
      SQLException
    • setSession

      void setSession(QuerySession session)
    • build

      void build() throws SQLException
      Throws:
      SQLException
    • isPrepared

      boolean isPrepared()
      Returns:
      isPrepared is this a PreparedStatment or not.
    • setSecurityInterceptor

      void setSecurityInterceptor(SecurityInterceptor securityInterceptor)
    • isForceUnderTransaction

      boolean isForceUnderTransaction()
      Gets whether this query is forced to be executed under transaction.
    • containsSubQueries

      boolean containsSubQueries()
      Gets whether this query contains sub queries.
    • validateQuery

      default void validateQuery(SpaceTypeManager typeManager) throws SQLException
      Throws:
      SQLException