org.apache.cayenne.access.trans
Class UpdateBatchQueryBuilder

java.lang.Object
  extended by org.apache.cayenne.access.trans.BatchQueryBuilder
      extended by org.apache.cayenne.access.trans.UpdateBatchQueryBuilder

public class UpdateBatchQueryBuilder
extends BatchQueryBuilder

A translator for UpdateBatchQueries that produces parameterized SQL.


Field Summary
 
Fields inherited from class org.apache.cayenne.access.trans.BatchQueryBuilder
adapter, trimFunction
 
Constructor Summary
UpdateBatchQueryBuilder(DbAdapter adapter)
           
 
Method Summary
 void bindParameters(PreparedStatement statement, BatchQuery query)
          Binds BatchQuery parameters to the PreparedStatement.
 String createSqlString(BatchQuery batch)
          Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.
 
Methods inherited from class org.apache.cayenne.access.trans.BatchQueryBuilder
appendDbAttribute, getAdapter, getParameterValues, getTrimFunction, setAdapter, setTrimFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateBatchQueryBuilder

public UpdateBatchQueryBuilder(DbAdapter adapter)
Method Detail

createSqlString

public String createSqlString(BatchQuery batch)
                       throws IOException
Description copied from class: BatchQueryBuilder
Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.

Specified by:
createSqlString in class BatchQueryBuilder
Throws:
IOException

bindParameters

public void bindParameters(PreparedStatement statement,
                           BatchQuery query)
                    throws SQLException,
                           Exception
Binds BatchQuery parameters to the PreparedStatement.

Overrides:
bindParameters in class BatchQueryBuilder
Throws:
SQLException
Exception


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.