- All Superinterfaces:
Query
- All Known Implementing Classes:
SqlFileScriptQuery
A query that executes SQL scripts.
This interface defines operations for executing SQL scripts from files or other sources.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the delimiter that separates SQL statements in the script.booleanReturns whether execution should halt on error.Returns a supplier that provides a reader for the script content.Returns the path of the script file.Returns the URL of the script file.Returns the SQL log type for this script query.Methods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, getSql, prepare
-
Method Details
-
getScriptFileUrl
URL getScriptFileUrl()Returns the URL of the script file.- Returns:
- the URL of the script file
-
getReaderSupplier
Returns a supplier that provides a reader for the script content.- Returns:
- the reader supplier
-
getScriptFilePath
String getScriptFilePath()Returns the path of the script file.- Returns:
- the script file path
-
getBlockDelimiter
String getBlockDelimiter()Returns the delimiter that separates SQL statements in the script.- Returns:
- the block delimiter
-
getHaltOnError
boolean getHaltOnError()Returns whether execution should halt on error.- Returns:
trueif execution should halt on error
-
getSqlLogType
SqlLogType getSqlLogType()Returns the SQL log type for this script query.- Returns:
- the SQL log type
-