#include <LiteConnection.h>
Inheritance diagram for acdk::sql::sqlite::LiteConnection:
Public Member Functions | |
LiteConnection (IN(RString) url, IN(RLiteDb) db, bool readOnly=false) | |
sqlite3 * | conPtr () |
return the native SQLite connection pointer | |
RLiteDb | getDb () |
return the core SQLite wrapper | |
RString | getURL () |
virtual void | clearWarnings () |
JDKDOC: Clears all warnings reported for this Connection object. | |
virtual void | close () |
JDKDOC: Releases a Connection's database and JDBC resources immediately instead of waiting for them to be automatically released. | |
virtual void | commit () |
JDKDOC: Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection. | |
virtual RStatement | createStatement () |
JDKDOC: Creates a Statement object for sending SQL statements to the database. | |
virtual RStatement | createStatement (int resultSetType, int resultSetConcurrency) |
JDKDOC: JDBC 2.0 Creates a Statement object that will generate ResultSet objects with the given type and concurrency. | |
virtual bool | getAutoCommit () |
JDKDOC: Gets the current auto-commit state. | |
virtual RString | getCatalog () |
JDKDOC: Returns the Connection's current catalog name. | |
virtual RDatabaseMetaData | getMetaData () |
JDKDOC: Gets the metadata regarding this connection's database. | |
virtual int | getTransactionIsolation () |
JDKDOC: Gets this Connection's current transaction isolation level. | |
virtual acdk::util::RMap | getTypeMap () |
JDKDOC: JDBC 2.0 Gets the type map object associated with this connection. | |
virtual RSQLWarning | getWarnings () |
JDKDOC: Returns the first warning reported by calls on this Connection. | |
virtual bool | isClosed () |
JDKDOC: Tests to see if a Connection is closed. | |
virtual bool | isReadOnly () |
JDKDOC: Tests to see if the connection is in read-only mode. | |
virtual RString | nativeSQL (INP(RString) sql) |
JDKDOC: Converts the given SQL statement into the system's native SQL grammar. | |
virtual RCallableStatement | prepareCall (INP(RString) sql) |
JDKDOC: Creates a CallableStatement object for calling database stored procedures. | |
virtual RPreparedStatement | prepareStatement (INP(RString) sql) |
JDKDOC: Creates a PreparedStatement object for sending parameterized SQL statements to the database. | |
virtual void | rollback () |
JDKDOC: Drops all changes made since the previous commit/rollback and releases any database locks currently held by this Connection. | |
virtual void | setAutoCommit (bool autoCommit) |
JDKDOC: Sets this connection's auto-commit mode. | |
virtual void | setCatalog (INP(RString) catalog) |
JDKDOC: Sets a catalog name in order to select a subspace of this Connection's database in which to work. | |
virtual void | setReadOnly (bool readOnly) |
JDKDOC: Puts this connection in read-only mode as a hint to enable database optimizations. | |
virtual void | setTransactionIsolation (int level) |
JDKDOC: Attempts to change the transaction isolation level to the one given. | |
virtual void | setTypeMap (INP(acdk::util::RMap) map) |
JDKDOC: JDBC 2.0 Installs the given type map as the type map for this connection. | |
void | execute (IN(RString) cmd) |
int | executeUpdate (IN(RString) cmd) |
Static Public Member Functions | |
RLiteConnection | createConnection (IN(RString) url, IN(RString) dbFile, bool readOnly=false) |
Protected Attributes | |
RLiteDb | _db |
RString | _url |
bool | _readOnly |
bool | _autoCommit |
|
|
|
JDKDOC: Clears all warnings reported for this Connection object. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Releases a Connection's database and JDBC resources immediately instead of waiting for them to be automatically released. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection. API: JDK Implements acdk::sql::Connection. |
|
return the native SQLite connection pointer
|
|
|
|
JDKDOC: JDBC 2.0 Creates a Statement object that will generate ResultSet objects with the given type and concurrency. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Creates a Statement object for sending SQL statements to the database. API: JDK Implements acdk::sql::Connection. |
|
|
|
|
|
JDKDOC: Gets the current auto-commit state. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Returns the Connection's current catalog name. API: JDK Implements acdk::sql::Connection. |
|
return the core SQLite wrapper
|
|
JDKDOC: Gets the metadata regarding this connection's database. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Gets this Connection's current transaction isolation level. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: JDBC 2.0 Gets the type map object associated with this connection. API: JDK Implements acdk::sql::Connection. |
|
|
|
JDKDOC: Returns the first warning reported by calls on this Connection. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Tests to see if a Connection is closed. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Tests to see if the connection is in read-only mode. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Converts the given SQL statement into the system's native SQL grammar. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Creates a CallableStatement object for calling database stored procedures. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Creates a PreparedStatement object for sending parameterized SQL statements to the database. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Drops all changes made since the previous commit/rollback and releases any database locks currently held by this Connection. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Sets this connection's auto-commit mode. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Sets a catalog name in order to select a subspace of this Connection's database in which to work. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Puts this connection in read-only mode as a hint to enable database optimizations. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: Attempts to change the transaction isolation level to the one given. API: JDK Implements acdk::sql::Connection. |
|
JDKDOC: JDBC 2.0 Installs the given type map as the type map for this connection. API: JDK Implements acdk::sql::Connection. |
|
|
|
|
|
|
|
|