Package nl.cwi.monetdb.embedded.jdbc
Class JDBCEmbeddedConnection
java.lang.Object
nl.cwi.monetdb.embedded.env.MonetDBEmbeddedConnection
nl.cwi.monetdb.embedded.jdbc.JDBCEmbeddedConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class JDBCEmbeddedConnection extends MonetDBEmbeddedConnection
An extension to the
MonetDBEmbeddedConnection
in order to adapt it into a MonetDB's JDBC connection. This
class is not Thread safe and provides JNI calls to perform actions on the server. After a user query is sent,
the fields of this class are filled immediately upon by the JNI calls. After that, these fields provide enough
information to mimic a MAPI connection in MonetConnection.ResponseList
main loop.- Author:
- Pedro Ferreira
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
JDBCEmbeddedConnection(long connectionPointer)
-
Method Summary
Modifier and Type Method Description void
close()
Shuts down this connection.Methods inherited from class nl.cwi.monetdb.embedded.env.MonetDBEmbeddedConnection
checkIfTableExists, closeConnectionImplementation, commit, executeQuery, executeUpdate, getAutoCommit, getMonetDBTable, getMonetDBTable, getRandomIdentifier, getSchema, isClosed, listTables, prepareStatement, releaseSavepoint, removeTable, rollback, rollback, setAutoCommit, setSavepoint, setSavepoint, setSchema, startTransaction, toString
-
Constructor Details
-
JDBCEmbeddedConnection
protected JDBCEmbeddedConnection(long connectionPointer)
-
-
Method Details
-
close
public void close()Description copied from class:MonetDBEmbeddedConnection
Shuts down this connection. Any pending queries connections will be immediately closed as well.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classMonetDBEmbeddedConnection
-