Class QueryCallable

java.lang.Object
org.pgcodekeeper.core.callable.StatementCallable<String>
org.pgcodekeeper.core.callable.QueryCallable
All Implemented Interfaces:
Callable<String>

public class QueryCallable extends StatementCallable<String>
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 Details

    • QueryCallable

      public QueryCallable(PreparedStatement st)
      Creates a new query callable with a prepared statement.
      Parameters:
      st - the prepared statement to execute
    • QueryCallable

      public QueryCallable(Statement st, String script)
      Creates a new query callable with a statement and SQL script.
      Parameters:
      st - the statement to execute
      script - the SQL script to execute
  • Method Details