Package org.pgcodekeeper.core.callable
Class QueryCallable
java.lang.Object
org.pgcodekeeper.core.callable.StatementCallable<String>
org.pgcodekeeper.core.callable.QueryCallable
Executable callable for running single SQL queries.
Supports both prepared statements and regular statements with dynamic SQL scripts.
Returns a success constant upon completion.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new query callable with a prepared statement.QueryCallable(Statement st, String script) Creates a new query callable with a statement and SQL script. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.callable.StatementCallable
cancel
-
Constructor Details
-
QueryCallable
Creates a new query callable with a prepared statement.- Parameters:
st- the prepared statement to execute
-
QueryCallable
Creates a new query callable with a statement and SQL script.- Parameters:
st- the statement to executescript- the SQL script to execute
-
-
Method Details
-
call
- Throws:
Exception
-