Class DatasetPreparedStatement

All Implemented Interfaces:
AutoCloseable, PreparedStatement, Statement, Wrapper

public class DatasetPreparedStatement extends JenaPreparedStatement
A Jena JDBC statement over a Dataset
  • Constructor Details

    • DatasetPreparedStatement

      public DatasetPreparedStatement(String sparql, DatasetConnection connection) throws SQLException
      Creates a new statement
      Parameters:
      sparql - SPARQL command
      connection - Connection
      Throws:
      SQLException - Thrown if there is an error with the statement parameters
    • DatasetPreparedStatement

      public DatasetPreparedStatement(String sparql, DatasetConnection connection, int type, int fetchDir, int fetchSize, int holdability, boolean autoCommit, int transactionLevel) throws SQLException
      Creates a new statement
      Parameters:
      sparql - SPARQL command
      connection - Connection
      type - Result Set type for result sets produced by this statement
      fetchDir - Fetch Direction
      fetchSize - Fetch Size
      holdability - Result Set holdability
      autoCommit - Auto commit behaviour
      transactionLevel - Transaction level
      Throws:
      SQLException - Thrown if there is an error with the statement parameters