Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.engine.execution
Class SqlExecutor.Batch  view SqlExecutor.Batch download SqlExecutor.Batch.java

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.execution.SqlExecutor.Batch
Enclosing class:
SqlExecutor

private static class SqlExecutor.Batch
extends java.lang.Object


Field Summary
private  java.lang.String currentSql
           
private static int EXECUTE_FAILED
           
private  int size
           
private  java.util.List statementList
           
private static int SUCCESS_NO_INFO
           
 
Constructor Summary
SqlExecutor.Batch()
          Create a new batch
 
Method Summary
 void addBatch(com.ibatis.sqlmap.engine.scope.RequestScope request, java.sql.Connection conn, java.lang.String sql, java.lang.Object[] parameters)
          Add a prepared statement to the batch
 void cleanupBatch()
          Close all the statements in the batch and clear all the statements
 int executeBatch()
          Execute the current session's batch
 int getSize()
          Getter for the batch size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSql

private java.lang.String currentSql

statementList

private java.util.List statementList

size

private int size

SUCCESS_NO_INFO

private static final int SUCCESS_NO_INFO
See Also:
Constant Field Values

EXECUTE_FAILED

private static final int EXECUTE_FAILED
See Also:
Constant Field Values
Constructor Detail

SqlExecutor.Batch

public SqlExecutor.Batch()
Create a new batch

Method Detail

getSize

public int getSize()
Getter for the batch size


addBatch

public void addBatch(com.ibatis.sqlmap.engine.scope.RequestScope request,
                     java.sql.Connection conn,
                     java.lang.String sql,
                     java.lang.Object[] parameters)
              throws java.sql.SQLException
Add a prepared statement to the batch


executeBatch

public int executeBatch()
                 throws java.sql.SQLException
Execute the current session's batch


cleanupBatch

public void cleanupBatch()
Close all the statements in the batch and clear all the statements