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 clearWarnings()
           
 void close()
           
 void commit()
           
 JdbcStatement createStatement()
           
 JdbcStatement createStatement(int resultSetType, int resultSetConcurrency)
           
 JdbcStatement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 boolean getAutoCommit()
           
 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.
 java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
          Not supporetd yet.
 java.sql.SQLWarning getWarnings()
          It always returns null.
 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 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 releaseSavepoint(java.sql.Savepoint savepoint)
          Not supporetd yet.
 void rollback()
           
 void rollback(java.sql.Savepoint savepoint)
          Not supporetd yet.
 void setAutoCommit(boolean autoCommit)
           
 void setCatalog(java.lang.String catalog)
           
 void setHoldability(int holdability)
           
 void setReadOnly(boolean readOnly)
           
 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 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 registered.
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
定義:
インタフェース java.sql.Connection 内の setCatalog
例外:
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
It always returns null.

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

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
定義:
インタフェース 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
定義:
インタフェース java.sql.Connection 内の setHoldability
例外:
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
例外:
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)
パラメータ:
type - 'DEFERRED', 'IMMEDIATE', 'EXCLUSIVE'

registerFunction

public void registerFunction(Function func)
                      throws java.sql.SQLException
invoke 'sqlite3_create_function()' function and the User-Defined function is registered.

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

unregisterFunction

public void unregisterFunction(Function func)
                        throws java.sql.SQLException
invoke 'sqlite3_create_function()' function and the User-Defined function is registered.

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

registerCollation

public void registerCollation(Collator col)
                       throws java.sql.SQLException
invoke 'sqlite3_create_collation()' function and the User-Defined Collating Sequences is registered.

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

unregisterCollation

public void unregisterCollation(Collator col)
                         throws java.sql.SQLException
invoke 'sqlite3_create_function()' function and the User-Defined Collating Sequences is unregistered.

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