Package com.kuzudb
Class PreparedStatement
java.lang.Object
com.kuzudb.PreparedStatement
- All Implemented Interfaces:
AutoCloseable
PreparedStatement is a parameterized query which can avoid planning the same query for repeated execution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the prepared statement and release the underlying resources.Get the error message if the query is not prepared successfully.boolean
Check if the query is prepared successfully or not.
-
Constructor Details
-
PreparedStatement
public PreparedStatement()
-
-
Method Details
-
close
Close the prepared statement and release the underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.- Specified by:
close
in interfaceAutoCloseable
- Throws:
ObjectRefDestroyedException
- If the prepared statement has been destroyed.
-
isSuccess
Check if the query is prepared successfully or not.- Returns:
- The query is prepared successfully or not.
- Throws:
ObjectRefDestroyedException
- If the prepared statement has been destroyed.
-
getErrorMessage
Get the error message if the query is not prepared successfully.- Returns:
- The error message if the query is not prepared successfully.
- Throws:
ObjectRefDestroyedException
- If the prepared statement has been destroyed.
-