パッケージ org.postgresql.core.v3

クラス BatchedQuery

java.lang.Object
org.postgresql.core.v3.BatchedQuery
すべての実装されたインタフェース:
Query

public class BatchedQuery extends Object
Purpose of this object is to support batched query re write behaviour. Responsibility for tracking the batch size and implement the clean up of the query fragments after the batch execute is complete. Intended to be used to wrap a Query that is present in the batchStatements collection.
  • コンストラクタの詳細

    • BatchedQuery

      public BatchedQuery(NativeQuery query, TypeTransferModeRegistry transferModeRegistry, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean sanitiserDisabled)
  • メソッドの詳細

    • deriveForMultiBatch

      public BatchedQuery deriveForMultiBatch(int valueBlock)
    • getBatchSize

      public int getBatchSize()
      インタフェースからコピーされた説明: Query
      Get the number of times this Query has been batched.
      定義:
      getBatchSize インタフェース内 Query
      戻り値:
      number of times addBatch() has been called.
    • getNativeSql

      public String getNativeSql()
      Method to return the sql based on number of batches. Skipping the initial batch.
      定義:
      getNativeSql インタフェース内 Query
      戻り値:
      SQL in native for database format
    • toString

      public String toString(@Nullable ParameterList params)
      インタフェースからコピーされた説明: Query
      Stringize this query to a human-readable form, substituting particular parameter values for parameter placeholders.
      定義:
      toString インタフェース内 Query
      パラメータ:
      params - a ParameterList returned by this Query's Query.createParameterList() method, or null to leave the parameter placeholders unsubstituted.
      戻り値:
      a human-readable representation of this query
    • createParameterList

      public ParameterList createParameterList()
      インタフェースからコピーされた説明: Query

      Create a ParameterList suitable for storing parameters associated with this Query.

      If this query has no parameters, a ParameterList will be returned, but it may be a shared immutable object. If this query does have parameters, the returned ParameterList is a new list, unshared by other callers.

      定義:
      createParameterList インタフェース内 Query
      戻り値:
      a suitable ParameterList instance for this query
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 Object
    • close

      public void close()
      インタフェースからコピーされた説明: Query

      Close this query and free any server-side resources associated with it. The resources may not be immediately deallocated, but closing a Query may make the deallocation more prompt.

      A closed Query should not be executed.

      定義:
      close インタフェース内 Query
    • getSubqueries

      public org.postgresql.core.v3.SimpleQuery @Nullable [] getSubqueries()
      インタフェースからコピーされた説明: Query
      Return a list of the Query objects that make up this query. If this object is already a SimpleQuery, returns null (avoids an extra array construction in the common case).
      定義:
      getSubqueries インタフェース内 Query
      戻り値:
      an array of single-statement queries, or null if this object is already a single-statement query.
    • getMaxResultRowSize

      public int getMaxResultRowSize()

      Return maximum size in bytes that each result row from this query may return. Mainly used for batches that return results.

      Results are cached until/unless the query is re-described.

      戻り値:
      Max size of result data in bytes according to returned fields, 0 if no results, -1 if result is unbounded.
      例外:
      IllegalStateException - if the query is not described
    • resetNeedUpdateFieldFormats

      public void resetNeedUpdateFieldFormats()
    • hasBinaryFields

      public boolean hasBinaryFields()
    • setHasBinaryFields

      public void setHasBinaryFields(boolean hasBinaryFields)
    • isStatementDescribed

      public boolean isStatementDescribed()
      定義:
      isStatementDescribed インタフェース内 Query
    • isEmpty

      public boolean isEmpty()
      定義:
      isEmpty インタフェース内 Query
    • getBindCount

      public final int getBindCount()
    • getResultSetColumnNameIndexMap

      public @Nullable Map<String,Integer> getResultSetColumnNameIndexMap()
      インタフェースからコピーされた説明: Query
      Get a map that a result set can use to find the index associated to a name.
      定義:
      getResultSetColumnNameIndexMap インタフェース内 Query
      戻り値:
      null if the query implementation does not support this method.
    • getSqlCommand

      public SqlCommand getSqlCommand()
      インタフェースからコピーされた説明: Query
      Returns properties of the query (sql keyword, and some other parsing info).
      定義:
      getSqlCommand インタフェース内 Query
      戻り値:
      returns properties of the query (sql keyword, and some other parsing info) or null if not applicable