2.17.2: 2011-06-17

net.sf.basedb.core.hibernate
Class MultiUpdateWork

java.lang.Object
  extended by net.sf.basedb.core.hibernate.MultiUpdateWork
All Implemented Interfaces:
JdbcWork<Object>, org.hibernate.jdbc.Work

public class MultiUpdateWork
extends Object
implements JdbcWork<Object>

A JDBC Work implementation that executes multiple queries that doesn't return any result.

Version:
2.9
Author:
nicklas
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  Collection<String> statements
           
 
Constructor Summary
MultiUpdateWork(Collection<String> statements)
          Create a new work item.
 
Method Summary
 void execute(Connection connection)
          From the Work interface -----------------------
 Object getResult()
          Get the result of the work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statements

private Collection<String> statements
Constructor Detail

MultiUpdateWork

public MultiUpdateWork(Collection<String> statements)
Create a new work item.

Parameters:
statements - The sql statements to execute
Method Detail

execute

public void execute(Connection connection)
             throws SQLException
From the Work interface -----------------------

Specified by:
execute in interface org.hibernate.jdbc.Work
Throws:
SQLException

getResult

public Object getResult()
Description copied from interface: JdbcWork
Get the result of the work.

Specified by:
getResult in interface JdbcWork<Object>
Returns:
Always null

2.17.2: 2011-06-17