|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.sqlite.Database
public class Database
sqlite3 wrapper class.
NOTE: SQLite 3.3.5 based.
| フィールドの概要 | |
|---|---|
protected java.util.Properties |
info
|
| コンストラクタの概要 | |
|---|---|
Database(java.lang.String filename,
java.util.Properties info)
|
|
| メソッドの概要 | |
|---|---|
void |
beginTransaction(TransactionType type)
begin transaction. |
int |
changes()
invoke sqlite3_changes() function. |
void |
close()
invoke sqlite3_close() function. |
void |
commitTransaction()
commit toransaction. |
int |
execute(java.lang.String sql)
invoke sqlite3_exec() function. |
protected void |
finalize()
|
boolean |
getAutoCommit()
invoke sqlite3_get_autocommit() function. |
int |
getBusyTimeout()
Retrieves the timeout(ms) value. |
ColumnMetaData |
getColumnMetaData(java.lang.String dbName,
java.lang.String tableName,
java.lang.String columnName)
invoke sqlite3_table_column_metadata() function. |
java.lang.String |
getProductName()
It always returns "SQLite". |
void |
interrupt()
invoke sqlite3_interrupt() function. |
boolean |
isClosed()
Retrieves whether this Database object has been closed. |
boolean |
isInMemoryMode()
|
boolean |
isReadOnly()
|
long |
lastInsertRowId()
invoke sqlite3_last_insert_rowid() function. |
void |
pragma(java.lang.String[] commands)
execute PRAGMA commands by sqlite3_exec() finction. |
Statement |
prepare(java.lang.String sql)
create UNMANAGED Statement instance. |
Statement |
prepare(java.lang.String sql,
SQLite3StmtPtrPtr ppStmt)
create MANAGED Statement instance. |
void |
registerCollation(Collator col)
invoke 'sqlite3_create_collation()' function and the User-Defined Collating Sequences is registered. |
void |
registerFunction(Function func)
invoke 'sqlite3_create_function()' function and the User-Defined function is registered. |
void |
rollbackTransaction()
rollback transaction. |
int |
setBusyTimeout(int ms)
invoke sqlite3_busy_timeout() function. |
int |
totalChanges()
invoke sqlite3_total_changes() function. |
void |
unregisterCollation(Collator col)
invoke 'sqlite3_create_function()' function and the User-Defined Collating Sequences is unregistered. |
void |
unregisterFunction(Function func)
invoke 'sqlite3_create_function()' function and the User-Defined function is unregistered. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected final java.util.Properties info
| コンストラクタの詳細 |
|---|
public Database(java.lang.String filename,
java.util.Properties info)
throws java.sql.SQLException
java.sql.SQLException| メソッドの詳細 |
|---|
public java.lang.String getProductName()
public boolean isInMemoryMode()
public boolean isReadOnly()
public boolean isClosed()
public void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean getAutoCommit()
public int setBusyTimeout(int ms)
throws java.sql.SQLException
ms - milliseconds
java.sql.SQLExceptionpublic int getBusyTimeout()
public int execute(java.lang.String sql)
throws java.sql.SQLException
sql -
java.sql.SQLException
public void pragma(java.lang.String[] commands)
throws java.sql.SQLException
commands - command list
java.sql.SQLException
public void beginTransaction(TransactionType type)
throws java.sql.SQLException
type - transaction type.
java.sql.SQLException
public void commitTransaction()
throws java.sql.SQLException
java.sql.SQLException
public void rollbackTransaction()
throws java.sql.SQLException
java.sql.SQLException
public Statement prepare(java.lang.String sql,
SQLite3StmtPtrPtr ppStmt)
throws java.sql.SQLException
sql - ppStmt -
java.sql.SQLException
public Statement prepare(java.lang.String sql)
throws java.sql.SQLException
sql -
java.sql.SQLException
public void interrupt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int changes()
public int totalChanges()
public long lastInsertRowId()
public ColumnMetaData getColumnMetaData(java.lang.String dbName,
java.lang.String tableName,
java.lang.String columnName)
throws java.sql.SQLException
dbName - tableName - columnName -
java.sql.SQLException
public void registerFunction(Function func)
throws java.sql.SQLException
func - User-Defined function
java.sql.SQLException
public void unregisterFunction(Function func)
throws java.sql.SQLException
func - User-Defined function
java.sql.SQLException
public void registerCollation(Collator col)
throws java.sql.SQLException
col - User-Defined Collating Sequences
java.sql.SQLException
public void unregisterCollation(Collator col)
throws java.sql.SQLException
col - User-Defined Collating Sequences
java.sql.SQLException
protected void finalize()
throws java.lang.Throwable
java.lang.Object 内の finalizejava.lang.Throwable
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||