org.sqlite.jdbc
クラス JdbcConnection

java.lang.Object
  上位を拡張 org.sqlite.jdbc.JdbcConnection
すべての実装されたインタフェース:
java.sql.Connection

public class JdbcConnection
extends java.lang.Object
implements java.sql.Connection


フィールドの概要
 
インタフェース java.sql.Connection から継承されたフィールド
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
コンストラクタの概要
JdbcConnection(Database db, java.lang.String url)
           
 
メソッドの概要
 void clearAuthorizer()
          invoke sqlite3_set_authorizer() function.
 void clearBusyHandler()
          invoke sqlite3_busy_handler() function.
 void clearCommitHook()
          invoke sqlite3_commit_hook() function.
 void clearProgressHandler()
          invoke sqlite3_progress_handler() function.
 void clearRollbackHook()
          invoke sqlite3_rollback_hook() function.
 void clearUpdateHook()
          invoke sqlite3_update_hook() function.
 void clearWarnings()
          SQL Warning is not supported yet.
 void close()
           
 void commit()
           
 void createCollation(Collator col)
          invoke sqlite3_create_collation() function.
 void createFunction(Function func)
          invoke sqlite3_create_function() function.
 JdbcStatement createStatement()
           
 JdbcStatement createStatement(int resultSetType, int resultSetConcurrency)
           
 JdbcStatement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 void dropCollation(Collator col)
          invoke sqlite3_create_function() function.
 void dropFunction(Function func)
          invoke sqlite3_create_function() function.
 boolean getAutoCommit()
           
 int getBusyTimeout()
          Retrieves the timeout(ms) value.
 java.lang.String getCatalog()
          Catalog is not supported yet.
 int getHoldability()
          It always returns CLOSE_CURSORS_AT_COMMIT.
 JdbcDatabaseMetaData getMetaData()
           
 int getTransactionIsolation()
          It always returns TRANSACTION_SERIALIZABLE.
 TransactionType getTransactionType()
           
 java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
          Not supporetd yet.
 java.sql.SQLWarning getWarnings()
          SQL Warning is not supported yet.
 boolean isClosed()
           
 boolean isReadOnly()
           
 java.lang.String nativeSQL(java.lang.String sql)
          Not supporetd yet.
 java.sql.CallableStatement prepareCall(java.lang.String sql)
          Not supporetd yet.
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)
          Not supporetd yet.
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          Not supporetd yet.
 JdbcPreparedStatement prepareStatement(java.lang.String sql)
           
 JdbcPreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys)
           
 JdbcPreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes)
          Not supporetd yet.
 JdbcPreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)
           
 JdbcPreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 JdbcPreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames)
          Not supporetd yet.
 void releaseSavepoint(java.sql.Savepoint savepoint)
          Not supporetd yet.
 void rollback()
           
 void rollback(java.sql.Savepoint savepoint)
          Not supporetd yet.
 void setAuthorizer(Authorizer auth)
          invoke sqlite3_set_authorizer() function.
 void setAutoCommit(boolean autoCommit)
           
 void setBusyHandler(BusyHandler busy)
          invoke sqlite3_busy_handler() function.
 void setBusyTimeout(int ms)
          invoke sqlite3_busy_timeout() function.
 void setCatalog(java.lang.String catalog)
          Catalog is not supported yet.
 void setCommitHook(CommitHook hook)
          invoke sqlite3_commit_hook() function.
 void setHoldability(int holdability)
          Supported result set holdability is ResultSet.CLOSE_CURSORS_AT_COMMIT only.
 void setProgressHandler(ProgressHandler prog)
          invoke sqlite3_progress_handler() function.
 void setReadOnly(boolean readOnly)
           
 void setRollbackHook(RollbackHook hook)
          invoke sqlite3_rollback_hook() function.
 java.sql.Savepoint setSavepoint()
          Not supporetd yet.
 java.sql.Savepoint setSavepoint(java.lang.String name)
          Not supporetd yet.
 void setTransactionIsolation(int level)
           
 void setTransactionType(TransactionType type)
           
 void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
          Not supporetd yet.
 void setUpdateHook(UpdateHook hook)
          invoke sqlite3_update_hook() function.
protected  void validateConnectionOpen()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JdbcConnection

public JdbcConnection(Database db,
                      java.lang.String url)
               throws java.sql.SQLException
例外:
java.sql.SQLException
メソッドの詳細

createStatement

public JdbcStatement createStatement()
                              throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の createStatement
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql)
                                       throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の prepareStatement
例外:
java.sql.SQLException

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql)
                                       throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の prepareCall
例外:
java.sql.SQLException

nativeSQL

public java.lang.String nativeSQL(java.lang.String sql)
                           throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の nativeSQL
例外:
java.sql.SQLException

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の setAutoCommit
例外:
java.sql.SQLException

getAutoCommit

public boolean getAutoCommit()
                      throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の getAutoCommit
例外:
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の commit
例外:
java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の rollback
例外:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の close
例外:
java.sql.SQLException

isClosed

public boolean isClosed()
                 throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の isClosed
例外:
java.sql.SQLException

getMetaData

public JdbcDatabaseMetaData getMetaData()
                                 throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の getMetaData
例外:
java.sql.SQLException

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の setReadOnly
例外:
java.sql.SQLException

isReadOnly

public boolean isReadOnly()
                   throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の isReadOnly
例外:
java.sql.SQLException

setCatalog

public void setCatalog(java.lang.String catalog)
                throws java.sql.SQLException
Catalog is not supported yet.

定義:
インタフェース java.sql.Connection 内の setCatalog
パラメータ:
catalog - ignored
例外:
java.sql.SQLException

getCatalog

public java.lang.String getCatalog()
                            throws java.sql.SQLException
Catalog is not supported yet. It always returns null.

定義:
インタフェース java.sql.Connection 内の getCatalog
戻り値:
null
例外:
java.sql.SQLException

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の setTransactionIsolation
例外:
java.sql.SQLException

getTransactionIsolation

public int getTransactionIsolation()
                            throws java.sql.SQLException
It always returns TRANSACTION_SERIALIZABLE.

定義:
インタフェース java.sql.Connection 内の getTransactionIsolation
戻り値:
java.sql.Connection.TRANSACTION_SERIALIZABLE
例外:
java.sql.SQLException

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
SQL Warning is not supported yet. It always returns null.

定義:
インタフェース java.sql.Connection 内の getWarnings
戻り値:
null
例外:
java.sql.SQLException

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
SQL Warning is not supported yet.

定義:
インタフェース java.sql.Connection 内の clearWarnings
例外:
java.sql.SQLException

createStatement

public JdbcStatement createStatement(int resultSetType,
                                     int resultSetConcurrency)
                              throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の createStatement
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency)
                                       throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の prepareStatement
例外:
java.sql.SQLException

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency)
                                       throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の prepareCall
例外:
java.sql.SQLException

getTypeMap

public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
                                                              throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の getTypeMap
例外:
java.sql.SQLException

setTypeMap

public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
                throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の setTypeMap
例外:
java.sql.SQLException

setHoldability

public void setHoldability(int holdability)
                    throws java.sql.SQLException
Supported result set holdability is ResultSet.CLOSE_CURSORS_AT_COMMIT only.

定義:
インタフェース java.sql.Connection 内の setHoldability
パラメータ:
holdability -
例外:
java.sql.SQLException

getHoldability

public int getHoldability()
                   throws java.sql.SQLException
It always returns CLOSE_CURSORS_AT_COMMIT.

定義:
インタフェース java.sql.Connection 内の getHoldability
戻り値:
java.sql.ResultSet.CLOSE_CURSORS_AT_COMMIT
例外:
java.sql.SQLException

setSavepoint

public java.sql.Savepoint setSavepoint()
                                throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の setSavepoint
例外:
java.sql.SQLException

setSavepoint

public java.sql.Savepoint setSavepoint(java.lang.String name)
                                throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の setSavepoint
例外:
java.sql.SQLException

rollback

public void rollback(java.sql.Savepoint savepoint)
              throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の rollback
例外:
java.sql.SQLException

releaseSavepoint

public void releaseSavepoint(java.sql.Savepoint savepoint)
                      throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の releaseSavepoint
例外:
java.sql.SQLException

createStatement

public JdbcStatement createStatement(int resultSetType,
                                     int resultSetConcurrency,
                                     int resultSetHoldability)
                              throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の createStatement
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency,
                                              int resultSetHoldability)
                                       throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の prepareStatement
例外:
java.sql.SQLException

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency,
                                              int resultSetHoldability)
                                       throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の prepareCall
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql,
                                              int autoGeneratedKeys)
                                       throws java.sql.SQLException
定義:
インタフェース java.sql.Connection 内の prepareStatement
パラメータ:
sql -
autoGeneratedKeys - ignored
戻り値:
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql,
                                              int[] columnIndexes)
                                       throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の prepareStatement
例外:
java.sql.SQLException

prepareStatement

public JdbcPreparedStatement prepareStatement(java.lang.String sql,
                                              java.lang.String[] columnNames)
                                       throws java.sql.SQLException
Not supporetd yet.

定義:
インタフェース java.sql.Connection 内の prepareStatement
例外:
java.sql.SQLException

validateConnectionOpen

protected void validateConnectionOpen()
                               throws java.sql.SQLException
例外:
java.sql.SQLException

setTransactionType

public void setTransactionType(TransactionType type)
                        throws java.sql.SQLException
パラメータ:
type - 'DEFERRED', 'IMMEDIATE', 'EXCLUSIVE'
例外:
java.sql.SQLException
関連項目:
BEGIN TRANSACTION

getTransactionType

public TransactionType getTransactionType()
                                   throws java.sql.SQLException
戻り値:
transaction type
例外:
java.sql.SQLException
関連項目:
BEGIN TRANSACTION

createFunction

public void createFunction(Function func)
                    throws java.sql.SQLException
invoke sqlite3_create_function() function.

パラメータ:
func - User-Defined function
例外:
java.sql.SQLException
関連項目:
Database.createFunction(Function)

dropFunction

public void dropFunction(Function func)
                  throws java.sql.SQLException
invoke sqlite3_create_function() function.

パラメータ:
func - User-Defined function
例外:
java.sql.SQLException
関連項目:
Database.dropFunction(Function)

createCollation

public void createCollation(Collator col)
                     throws java.sql.SQLException
invoke sqlite3_create_collation() function.

パラメータ:
col - User-Defined Collating Sequences
例外:
java.sql.SQLException
関連項目:
Database.createCollation(Collator)

dropCollation

public void dropCollation(Collator col)
                   throws java.sql.SQLException
invoke sqlite3_create_function() function.

パラメータ:
col - User-Defined Collating Sequences
例外:
java.sql.SQLException
関連項目:
Database.dropCollation(Collator)

setAuthorizer

public void setAuthorizer(Authorizer auth)
                   throws java.sql.SQLException
invoke sqlite3_set_authorizer() function.

パラメータ:
auth -
例外:
java.sql.SQLException
関連項目:
Database.setAuthorizer(Authorizer)

clearAuthorizer

public void clearAuthorizer()
                     throws java.sql.SQLException
invoke sqlite3_set_authorizer() function.

例外:
java.sql.SQLException
関連項目:
Database.clearAuthorizer()

setBusyTimeout

public void setBusyTimeout(int ms)
                    throws java.sql.SQLException
invoke sqlite3_busy_timeout() function.

パラメータ:
ms - milliseconds
例外:
java.sql.SQLException
関連項目:
Database.setBusyTimeout(int)

getBusyTimeout

public int getBusyTimeout()
                   throws java.sql.SQLException
Retrieves the timeout(ms) value.

戻り値:
timeout(ms) value.
例外:
java.sql.SQLException
関連項目:
Database.getBusyTimeout()

setBusyHandler

public void setBusyHandler(BusyHandler busy)
                    throws java.sql.SQLException
invoke sqlite3_busy_handler() function.

パラメータ:
busy - busy handler
例外:
java.sql.SQLException
関連項目:
Database.setBusyHandler(BusyHandler)

clearBusyHandler

public void clearBusyHandler()
                      throws java.sql.SQLException
invoke sqlite3_busy_handler() function.

例外:
java.sql.SQLException
関連項目:
Database.clearBusyHandler()

setProgressHandler

public void setProgressHandler(ProgressHandler prog)
                        throws java.sql.SQLException
invoke sqlite3_progress_handler() function.

パラメータ:
prog - progress handler
例外:
java.sql.SQLException
関連項目:
Database.setProgressHandler(ProgressHandler)

clearProgressHandler

public void clearProgressHandler()
                          throws java.sql.SQLException
invoke sqlite3_progress_handler() function.

例外:
java.sql.SQLException
関連項目:
Database.clearProgressHandler()

setCommitHook

public void setCommitHook(CommitHook hook)
                   throws java.sql.SQLException
invoke sqlite3_commit_hook() function.

パラメータ:
hook - commit hoot
例外:
java.sql.SQLException
関連項目:
Database.setCommitHook(CommitHook)

clearCommitHook

public void clearCommitHook()
                     throws java.sql.SQLException
invoke sqlite3_commit_hook() function.

例外:
java.sql.SQLException
関連項目:
Database.clearCommitHook()

setRollbackHook

public void setRollbackHook(RollbackHook hook)
                     throws java.sql.SQLException
invoke sqlite3_rollback_hook() function.

パラメータ:
hook - rollback hoot
例外:
java.sql.SQLException
関連項目:
Database.setRollbackHook(RollbackHook)

clearRollbackHook

public void clearRollbackHook()
                       throws java.sql.SQLException
invoke sqlite3_rollback_hook() function.

例外:
java.sql.SQLException
関連項目:
Database.clearRollbackHook()

setUpdateHook

public void setUpdateHook(UpdateHook hook)
                   throws java.sql.SQLException
invoke sqlite3_update_hook() function.

パラメータ:
hook - update hoot
例外:
java.sql.SQLException
関連項目:
Database.setUpdateHook(UpdateHook)

clearUpdateHook

public void clearUpdateHook()
                     throws java.sql.SQLException
invoke sqlite3_update_hook() function.

例外:
java.sql.SQLException
関連項目:
Database.clearUpdateHook()