Class StudioDBScriptRunnerImpl
java.lang.Object
org.craftercms.studio.impl.v2.dal.StudioDBScriptRunnerImpl
- All Implemented Interfaces:
StudioDBScriptRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Connectionprotected DataSourceprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStudioDBScriptRunnerImpl(DataSource dataSource, int scriptLinesBufferSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidExecute the given SQL script file.protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.craftercms.studio.api.v2.dal.StudioDBScriptRunner
execute
-
Field Details
-
dataSource
-
scriptLinesBufferSize
protected int scriptLinesBufferSize -
connection
-
autoCommit
protected boolean autoCommit
-
-
Constructor Details
-
StudioDBScriptRunnerImpl
-
-
Method Details
-
openConnection
protected void openConnection() -
closeConnection
protected void closeConnection() -
execute
Description copied from interface:StudioDBScriptRunnerExecute the given SQL script file.- Specified by:
executein interfaceStudioDBScriptRunner- Parameters:
sqlScriptPath- Path to the SQL script file to executesendFullFile- if true, the whole script will be sent to the DB, otherwise it will be partitioned into chunks- Throws:
SQLException- if an error occurs while executing the scriptIOException- if an error occurs while reading the script file
-