@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Script
The annotated method must be a member of a Dao annotated interface.
@Dao
public interface EmployeeDao {
@Script
void createTables();
}
The method may throw following exceptions:
ScriptFileNotFoundException if a script file is not found
ScriptException if an exception is thrown while executing a script
JdbcException if a JDBC related error occurs
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
blockDelimiter
The SQL block delimiter.
|
boolean |
haltOnError |
SqlLogType |
sqlLog |
public abstract java.lang.String blockDelimiter
The SQL block delimiter is a mark that indicates the end of definition of such as stored procedures, stored functions and triggers.
If not specified, the return value of Dialect.getScriptBlockDelimiter() is used.
public abstract boolean haltOnError
public abstract SqlLogType sqlLog