クラス SQLiteCSLib.SQLiteConnection

SQLite接続. [詳細]

SQLiteCSLib.SQLiteConnectionのコラボレーション図
Collaboration graph
[凡例]

すべてのメンバ一覧

Public メソッド

 SQLiteConnection ()
 コンストラクタ
 SQLiteConnection (string connectstring)
 コンストラクタ
void ChangeDatabase (string databaseName)
 データベース変更 ※未サポート
IDbTransaction BeginTransaction (IsolationLevel il)
 トランザクション開始 ※トランザクション動作は、未サポート
IDbTransaction BeginTransaction ()
 トランザクション開始
IDbCommand CreateCommand ()
 コマンド作成
void Open ()
 SQLite接続.
void Close ()
 切断
new void Dispose ()
 デストラクタ
long getLastInsertROWID ()
 最終追加ROWID取得
ResultEnum CreateFunction (string funcname, int inArg, ICallUserFunction iCallinterface)
 ユーザ定義関数作成
ResultEnum CreateCollation (string funcname, ICollationFunction iCallinterface)
 ユーザ定義照合順序関数作成

Protected 変数

OSQLiteDBWrap m_db = null
 データベース
string m_connectstring = ""
 接続文字列 ※単純にファイル名
ArrayList m_userfunclist = new ArrayList()
 ユーザ定義関数リスト
ArrayList m_usercollationlist = new ArrayList()
 ユーザ定義照合順序関数リスト

プロパティ

ConnectionState State [get]
 接続状態プロパティ
string ConnectionString [get, set]
 接続文字列プロパティ
string Database [get]
 データベース名プロパティ SQLiteのバージョン情報を取得します。
int ConnectionTimeout [get]
 接続タイムアウトプロパティ ※未サポート

説明

SQLite接続.

SQLiteConnection.cs13 行で定義されています。


コンストラクタとデストラクタ

SQLiteCSLib.SQLiteConnection.SQLiteConnection (  ) 

コンストラクタ

SQLiteConnection.cs40 行で定義されています。

00041                 {
00042                         m_db = new OSQLiteDBWrap();
00043                 }

SQLiteCSLib.SQLiteConnection.SQLiteConnection ( string  connectstring  ) 

コンストラクタ

引数:
connectstring 接続ファイルパス(存在しない場合、作成します。)

SQLiteConnection.cs49 行で定義されています。

00050                 {
00051                         ConnectionString = connectstring;
00052                         m_db = new OSQLiteDBWrap();
00053                 }


メソッド

IDbTransaction SQLiteCSLib.SQLiteConnection.BeginTransaction (  ) 

トランザクション開始

戻り値:

SQLiteConnection.cs79 行で定義されています。

00080                 {
00081                         return new SQLiteTransaction( this );
00082                 }

IDbTransaction SQLiteCSLib.SQLiteConnection.BeginTransaction ( IsolationLevel  il  ) 

トランザクション開始 ※トランザクション動作は、未サポート

引数:
il 
戻り値:

SQLiteConnection.cs70 行で定義されています。

00071                 {
00072                         return BeginTransaction();
00073                 }

void SQLiteCSLib.SQLiteConnection.ChangeDatabase ( string  databaseName  ) 

データベース変更 ※未サポート

引数:
databaseName 

SQLiteConnection.cs60 行で定義されています。

00061                 {
00062                 }

void SQLiteCSLib.SQLiteConnection.Close (  ) 

切断

SQLiteConnection.cs141 行で定義されています。

00142                 {
00143                         if( m_db != null )
00144                         {
00145                                 m_db.Close();
00146                                 m_db = null;
00147                         }
00148                 }

ResultEnum SQLiteCSLib.SQLiteConnection.CreateCollation ( string  funcname,
ICollationFunction  iCallinterface 
)

ユーザ定義照合順序関数作成

引数:
funcname 関数名
iCallinterface 関数コールバックインターフェース
戻り値:
処理戻値

SQLiteConnection.cs237 行で定義されています。

00238                 {
00239                         OSQLiteCollation usercollation = new OSQLiteCollation( m_db, iCallinterface );
00240                         m_usercollationlist.Add( usercollation );
00241                         return usercollation.CreateFunction( funcname );
00242                 }

IDbCommand SQLiteCSLib.SQLiteConnection.CreateCommand (  ) 

コマンド作成

戻り値:

SQLiteConnection.cs117 行で定義されています。

00118                 {
00119                         return new SQLiteCommand( this );
00120                 }

ResultEnum SQLiteCSLib.SQLiteConnection.CreateFunction ( string  funcname,
int  inArg,
ICallUserFunction  iCallinterface 
)

ユーザ定義関数作成

引数:
funcname 関数名
inArg 引数の数
iCallinterface 関数コールバックインターフェース
戻り値:
処理戻値

SQLiteConnection.cs215 行で定義されています。

00216                 {
00217                         OSQLiteFunc userfunc = new OSQLiteFunc( m_db, iCallinterface );
00218                         m_userfunclist.Add( userfunc );
00219                         return userfunc.CreateFunction( funcname, inArg );
00220                 }

new void SQLiteCSLib.SQLiteConnection.Dispose (  ) 

デストラクタ

SQLiteConnection.cs177 行で定義されています。

00178                 {
00179                         Close();
00180 
00181                         foreach( OSQLiteFunc userfunc in m_userfunclist )
00182                         {
00183                                 userfunc.Dispose();
00184                         }
00185 
00186                         foreach( OSQLiteCollation usercoll in m_usercollationlist )
00187                         {
00188                                 usercoll.Dispose();
00189                         }
00190                 }

long SQLiteCSLib.SQLiteConnection.getLastInsertROWID (  ) 

最終追加ROWID取得

戻り値:

SQLiteConnection.cs196 行で定義されています。

00197                 {
00198                         return m_db.getLastInsertROWID();
00199                 }

void SQLiteCSLib.SQLiteConnection.Open (  ) 

SQLite接続.

SQLiteConnection.cs125 行で定義されています。

00126                 {
00127                         Close();
00128 
00129                         m_db = new OSQLiteDBWrap();
00130                         if( m_db.Open( m_connectstring ) == false )
00131                         {
00132                                 m_db = null;
00133 
00134                                 throw new DataException( m_db.getLastErrMsg(), null );
00135                         }
00136                 }


変数

接続文字列 ※単純にファイル名

SQLiteConnection.cs24 行で定義されています。

データベース

SQLiteConnection.cs18 行で定義されています。

ArrayList SQLiteCSLib.SQLiteConnection.m_usercollationlist = new ArrayList() [protected]

ユーザ定義照合順序関数リスト

SQLiteConnection.cs229 行で定義されています。

ArrayList SQLiteCSLib.SQLiteConnection.m_userfunclist = new ArrayList() [protected]

ユーザ定義関数リスト

SQLiteConnection.cs206 行で定義されています。


プロパティ

string SQLiteCSLib.SQLiteConnection.ConnectionString [get, set]

接続文字列プロパティ

SQLiteConnection.cs102 行で定義されています。

int SQLiteCSLib.SQLiteConnection.ConnectionTimeout [get]

接続タイムアウトプロパティ ※未サポート

SQLiteConnection.cs167 行で定義されています。

string SQLiteCSLib.SQLiteConnection.Database [get]

データベース名プロパティ SQLiteのバージョン情報を取得します。

SQLiteConnection.cs155 行で定義されています。

ConnectionState SQLiteCSLib.SQLiteConnection.State [get]

接続状態プロパティ

SQLiteConnection.cs88 行で定義されています。


このクラスの説明は次のファイルから生成されました:

SQLite3 Wrap ADO For .Net1.1 or Compact Frameworkに対してTue Jan 12 12:05:09 2010に生成されました。  doxygen 1.6.1