Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.access.trans
Class InsertBatchQueryBuilder

    java.lang.Object
      org.apache.cayenne.access.trans.BatchQueryBuilder
          org.apache.cayenne.access.trans.InsertBatchQueryBuilder

    public class InsertBatchQueryBuilder

extends BatchQueryBuilder

Translator of InsertBatchQueries.

Author:
  Andriy Shapochka, Andrei Adamchik

Field Summary

Fields inherited from class org.apache.cayenne.access.trans.BatchQueryBuilder
`adapter, trimFunction`

Constructor Summary
`InsertBatchQueryBuilder(DbAdapter adapter)`

Method Summary
`void` | `bindParameters(java.sql.PreparedStatement statement, BatchQuery query)` Binds parameters for the current batch iteration to the PreparedStatement.
`java.lang.String` | `createSqlString(BatchQuery batch)` Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.
`java.util.List` | `getParameterValues(BatchQuery query)` Returns a list of values for the current batch iteration.
`protected boolean` | `includeInBatch(DbAttribute attribute)` Returns true if an attribute should be included in the batch.

Methods inherited from class org.apache.cayenne.access.trans.BatchQueryBuilder
`appendDbAttribute, bindParameters, getAdapter, getTrimFunction, setAdapter, setTrimFunction`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InsertBatchQueryBuilder

    public InsertBatchQueryBuilder(DbAdapter adapter)

Method Detail

### bindParameters

    public void bindParameters(java.sql.PreparedStatement statement,
                               BatchQuery query)
                        throws java.sql.SQLException,
                               java.lang.Exception

  Binds parameters for the current batch iteration to the PreparedStatement. Performs filtering of attributes based on column generation rules.

  Overrides:
    `bindParameters` in class `BatchQueryBuilder`
  Throws:
    `java.sql.SQLException`
    `java.lang.Exception`
  Since:
    1.2

### getParameterValues

    public java.util.List getParameterValues(BatchQuery query)

  Returns a list of values for the current batch iteration. Performs filtering of attributes based on column generation rules. Used primarily for logging.

  Overrides:
    `getParameterValues` in class `BatchQueryBuilder`
  Since:
    1.2

### createSqlString

    public java.lang.String createSqlString(BatchQuery batch)

  Description copied from class: `BatchQueryBuilder`
  Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.

  Specified by:
    `createSqlString` in class `BatchQueryBuilder`

### includeInBatch

    protected boolean includeInBatch(DbAttribute attribute)

  Returns true if an attribute should be included in the batch.

  Since:
    1.2

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.