public abstract class CoreConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoCommit |
protected static Map<SQLiteConfig.TransactionMode,String> |
beginCommandMap |
SQLiteConfig.DateClass |
dateClass |
FastDateFormat |
dateFormat |
long |
dateMultiplier |
SQLiteConfig.DatePrecision |
datePrecision |
String |
dateStringFormat |
protected DB |
db |
protected CoreDatabaseMetaData |
meta |
protected int |
openModeFlags |
protected int |
transactionIsolation |
protected SQLiteConfig.TransactionMode |
transactionMode |
| Modifier | Constructor and Description |
|---|---|
protected |
CoreConnection(String url,
String fileName,
Properties prop) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCursor(int rst,
int rsc,
int rsh)
Checks whether the type, concurrency, and holdability settings for a
ResultSet are supported by the SQLite interface. |
protected void |
checkOpen()
Whether an SQLite library interface to the database has been established.
|
void |
close() |
DB |
db() |
void |
finalize() |
int |
getBusyTimeout() |
protected boolean |
isClosed() |
String |
libversion() |
void |
setBusyTimeout(int milliseconds)
Sets the timeout value for the connection.
|
protected void |
setTransactionMode(SQLiteConfig.TransactionMode mode)
Sets the mode that will be used to start transactions on this connection.
|
String |
url() |
protected DB db
protected CoreDatabaseMetaData meta
protected boolean autoCommit
protected int transactionIsolation
protected final int openModeFlags
protected SQLiteConfig.TransactionMode transactionMode
protected static final Map<SQLiteConfig.TransactionMode,String> beginCommandMap
public final SQLiteConfig.DateClass dateClass
public final SQLiteConfig.DatePrecision datePrecision
public final long dateMultiplier
public final FastDateFormat dateFormat
public final String dateStringFormat
protected CoreConnection(String url, String fileName, Properties prop) throws SQLException
SQLExceptionpublic int getBusyTimeout()
public void setBusyTimeout(int milliseconds)
throws SQLException
milliseconds - The timeout value in milliseconds.SQLExceptionpublic String url()
public String libversion() throws SQLException
SQLExceptionpublic DB db()
protected void checkOpen()
throws SQLException
SQLException.SQLExceptionprotected void checkCursor(int rst,
int rsc,
int rsh)
throws SQLException
ResultSet are supported by the SQLite interface. Supported
settings are:ResultSet.TYPE_FORWARD_ONLYResultSet.CONCUR_READ_ONLY)ResultSet.CLOSE_CURSORS_AT_COMMITrst - the type setting.rsc - the concurrency setting.rsh - the holdability setting.SQLExceptionprotected void setTransactionMode(SQLiteConfig.TransactionMode mode)
mode - One of SQLiteConfig.TransactionModeprotected boolean isClosed()
throws SQLException
SQLExceptionpublic void finalize()
throws SQLException
finalize in class ObjectSQLExceptionObject.finalize()public void close()
throws SQLException
SQLExceptionConnection.close()Copyright © 2018. All rights reserved.