Home | History | Annotate | Download | only in sqlite

Lines Matching defs:connection

42  * Represents a SQLite database connection.
43 * Each connection wraps an instance of a native <code>sqlite3</code> object.
45 * When database connection pooling is enabled, there can be multiple active
47 * connection per database.
56 * Connection objects are not thread-safe. They are acquired as needed to
58 * given time, a connection is either owned and used by a {@link SQLiteSession}
61 * use of a connection.
69 * The connection object object owns *all* of the SQLite related native
70 * objects that are associated with the connection. What's more, there are
72 * those native objects. Consequently, when the connection is closed, we do
76 * Encapsulation is what ensures that the connection object's
116 // times we have attempted to attach a cancellation signal to the connection so that
192 SQLiteConnection connection = new SQLiteConnection(pool, configuration,
195 connection.open();
196 return connection;
198 connection.dispose(false);
205 // Do not call methods on the connection after it is closed. It will probably crash.
343 // This error (SQLITE_BUSY) occurs if one connection has the database
348 // there is another open connection to the database somewhere.
357 // get it, although it can still use connection pooling.
468 * Gets the unique id of this connection.
469 * @return The connection id.
476 * Returns true if this is the primary database connection.
477 * @return True if this is the primary database connection.
496 * To take advantage of this behavior as an optimization, the connection pool
497 * provides a method to acquire a connection that already has a given SQL statement
987 // that the SQLite connection is still alive.
1040 + "might modify the database but the connection is read-only.");
1063 * Dumps debugging information about this connection.
1073 * Dumps debugging information about this connection, in the case where the
1074 * caller might not actually own the connection.
1077 * own the connection. We need to be very careful because the connection state is
1087 printer.println("Connection #" + mConnectionId + ":");
1103 * caller might not actually own the connection.
1106 * own the connection. We need to be very careful because the connection state is
1120 * Collects statistics about database connection memory usage.
1168 * Collects statistics about database connection memory usage, in the case where the
1169 * caller might not actually own the connection.
1179 // even if we do not own the database connection.
1222 // dumping the connection, which is a rare (mainly error) case. So:
1233 * In particular, closing the connection requires a guarantee of deterministic
1245 // Lifetime is managed explicitly by the connection.
1451 // used when dumping a connection, which is a rare (mainly error) case.