Class OwlapiPreparedStatement
java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.query.OwlapiStatement
cz.cvut.kbss.ontodriver.owlapi.query.OwlapiPreparedStatement
- All Implemented Interfaces:
PreparedStatement,Statement,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.cvut.kbss.ontodriver.Statement
Statement.StatementOntology -
Constructor Summary
ConstructorsConstructorDescriptionOwlapiPreparedStatement(StatementExecutorFactory executorFactory, OwlapiConnection connection, String statement) -
Method Summary
Modifier 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 class cz.cvut.kbss.ontodriver.owlapi.query.OwlapiStatement
close, disableInference, executeQuery, executeUpdate, getStatementOntology, isInferenceDisabled, isOpen, useOntologyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.ontodriver.Statement
close, disableInference, executeQuery, executeUpdate, getStatementOntology, isInferenceDisabled, isOpen, useOntology
-
Constructor Details
-
OwlapiPreparedStatement
public OwlapiPreparedStatement(StatementExecutorFactory executorFactory, OwlapiConnection connection, String statement)
-
-
Method Details
-
executeQuery
Description copied from interface:PreparedStatementExecutes query represented by this statement.- Specified by:
executeQueryin interfacePreparedStatement- Returns:
- ResultSet of the query
- Throws:
OntoDriverException- If an ontology access error occurs
-
executeUpdate
Description copied from interface:PreparedStatementExecutes an update represented by this statement.- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
OntoDriverException- If an ontology access error occurs
-
setObject
Description copied from interface:PreparedStatementSets value of binding with the specified name.- Specified by:
setObjectin interfacePreparedStatement- Parameters:
binding- Binding namevalue- The value of the parameter
-
clearParameters
public void clearParameters()Description copied from interface:PreparedStatementClears the currently set parameters.- Specified by:
clearParametersin interfacePreparedStatement
-