Package cz.cvut.kbss.ontodriver
Interface PreparedStatement
- All Superinterfaces:
- AutoCloseable,- Statement
- All Known Implementing Classes:
- JenaPreparedStatement,- OwlapiPreparedStatement,- Rdf4jPreparedStatement
This interface extends the 
Statement and adds the possibility to parametrize queries
 Implementations are also expected to support at least a basic level of character escaping (e.g. quotes) and other injection-protection methods.
- 
Nested Class SummaryNested classes/interfaces inherited from interface cz.cvut.kbss.ontodriver.StatementStatement.StatementOntology
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears the currently set parameters.Executes query represented by this statement.voidExecutes an update represented by this statement.voidSets value of binding with the specified name.Methods inherited from interface cz.cvut.kbss.ontodriver.Statementclose, disableInference, executeQuery, executeUpdate, getStatementOntology, isInferenceDisabled, isOpen, useOntology
- 
Method Details- 
executeQueryExecutes query represented by this statement.- Returns:
- ResultSet of the query
- Throws:
- OntoDriverException- If an ontology access error occurs
- IllegalStateException- If called on a closed statement
 
- 
executeUpdateExecutes an update represented by this statement.- Throws:
- OntoDriverException- If an ontology access error occurs
- IllegalStateException- If called on a closed statement
 
- 
setObjectSets value of binding with the specified name.- Parameters:
- binding- Binding name
- value- The value of the parameter
- Throws:
- OntoDriverException- If there is no such binding in the statement or some other error occurs
- IllegalStateException- If called on a closed statement
 
- 
clearParametersClears the currently set parameters.- Throws:
- OntoDriverException- If an ontology access error occurs
- IllegalStateException- If called on a closed statement
 
 
-