public class SqlScriptUtil extends Object implements org.hibernate.jdbc.Work
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SqlScriptUtil.State  | 
| Modifier and Type | Field and Description | 
|---|---|
static org.apache.log4j.Logger | 
logger  | 
private String | 
sqlScript  | 
private SqlScriptUtil.State | 
state  | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
SqlScriptUtil(String sqlScript,
             SqlScriptUtil.State state)
Initialisierung 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
execute(Connection connection)
Ausführen des Scriptes. 
 | 
static void | 
executeSqlScript(org.hibernate.Session session,
                String sqlScript,
                SqlScriptUtil.State state)
Führt ein SQL-Script aus. 
 | 
public static final org.apache.log4j.Logger logger
private String sqlScript
private SqlScriptUtil.State state
private SqlScriptUtil(String sqlScript, SqlScriptUtil.State state)
sqlScript - Script welches ausgeführt werden sollpublic static void executeSqlScript(org.hibernate.Session session,
                                    String sqlScript,
                                    SqlScriptUtil.State state)
                             throws org.hibernate.HibernateException
session - Session auf der eine Transaktion zum Ausführen geöffnet werden sollsqlScript - SQL-Scriptstate - Soll das Script ausgeführt werden bzw. was soll bei einem Fehler passierenorg.hibernate.HibernateExceptionpublic void execute(Connection connection) throws SQLException
execute in interface org.hibernate.jdbc.WorkSQLExceptionCopyright © 2019. All rights reserved.