Package net.sf.basedb.core.hibernate
Class MultiUpdateWork
- java.lang.Object
-
- net.sf.basedb.core.hibernate.MultiUpdateWork
-
- All Implemented Interfaces:
org.hibernate.jdbc.Work
public class MultiUpdateWork extends Object implements org.hibernate.jdbc.Work
A JDBC Work implementation that executes multiple queries that doesn't return any result.- Version:
- 2.9
- Author:
- nicklas
- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<String>
statements
-
Constructor Summary
Constructors Constructor Description MultiUpdateWork(Collection<String> statements)
Create a new work item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Connection connection)
From the Work interface -----------------------
-
-
-
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 interfaceorg.hibernate.jdbc.Work
- Throws:
SQLException
-
-