Class Query

  • All Implemented Interfaces:
    QueryInfo

    public abstract class Query
    extends Object
    implements QueryInfo
    This is a convenience abstract class for creating a QueryInfo with a QUERY ExecuteType
    Author:
    OpenCloud
    • Constructor Detail

      • Query

        public Query()
        Creates a new empty Query with a TRY_ALL RetryBehaviour and a PREPARED StatementType.
      • Query

        public Query​(String sql)
        Creates a new Query with the specified SQL String, a TRY_ALL RetryBehaviour and a PREPARED StatementType.
        Parameters:
        sql - the SQL string for the query
      • Query

        public Query​(String sql,
                     QueryInfo.RetryBehaviour retryBehaviour)
        Creates a new Query with the specified SQL String, the specified RetryBehaviour and a PREPARED StatementType.
        Parameters:
        sql - the SQL string for the query
        retryBehaviour - the RetryBehaviour for the query
      • Query

        public Query​(String sql,
                     QueryInfo.RetryBehaviour retryBehaviour,
                     QueryInfo.StatementType statementType)
        Creates a new Query with the specified SQL String, RetryBehaviour and StatementType.
        Parameters:
        sql - the SQL string for the query
        retryBehaviour - the RetryBehaviour for the query
        statementType - the StatementType for the query