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() |
String |
getDriverVersion() |
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
SQLException
public int getBusyTimeout()
public void setBusyTimeout(int milliseconds) throws SQLException
milliseconds
- The timeout value in milliseconds.SQLException
public String url()
public String libversion() throws SQLException
SQLException
public DB db()
protected void checkOpen() throws SQLException
SQLException.
SQLException
protected void checkCursor(int rst, int rsc, int rsh) throws SQLException
ResultSet
are supported by the SQLite interface. Supported
settings are:ResultSet.TYPE_FORWARD_ONLY
ResultSet.CONCUR_READ_ONLY
)ResultSet.CLOSE_CURSORS_AT_COMMIT
rst
- the type setting.rsc
- the concurrency setting.rsh
- the holdability setting.SQLException
protected void setTransactionMode(SQLiteConfig.TransactionMode mode)
mode
- One of SQLiteConfig.TransactionMode
public String getDriverVersion()
public void finalize() throws SQLException
finalize
in class Object
SQLException
Object.finalize()
public void close() throws SQLException
SQLException
Connection.close()
Copyright © 2015. All rights reserved.