|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.quickbinder.api.common.sql.Connect
public class Connect
データベース接続情報管理クラス
データベース接続情報の取得および トランザクションの管理を行います。
フィールドの概要 | |
---|---|
String |
fnlDB2
DBProduct判定用文字列 |
String |
fnlORACLE
DBProduct判定用文字列 |
String |
fnlPOSTGRE
DBProduct判定用文字列 |
String |
fnlSQLSERVER
DBProduct判定用文字列 |
int |
isDB2
DBProduct判定用定数 |
int |
isORACLE
DBProduct判定用定数 |
int |
isPOSTGRE
DBProduct判定用定数 |
int |
isSQLSERVER
DBProduct判定用定数 |
コンストラクタの概要 | |
---|---|
Connect()
コンストラクタ |
メソッドの概要 | |
---|---|
String |
getConnectGroupID()
接続ユーザーのログイングループIDを取得します。 |
Connection |
getConnection(String groupID)
ログインしているユーザーのログイングループからデータベースコネクションを取得します。 |
int |
getDBProductType(Connection con)
接続しているDBのTypeを取得 |
void |
setBeginTransaction(Connection con)
トランザクションを開始する際にAutoCommitをOFFに設定します。 |
void |
setCommitTransaction(Connection con)
Commitを実行してAutoCommitをONに設定します。 |
void |
setRollbackTransaction(Connection con)
RollBackを実行してAutoCommitをONに設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public final String fnlORACLE
public final String fnlSQLSERVER
public final String fnlDB2
public final String fnlPOSTGRE
public final int isORACLE
public final int isSQLSERVER
public final int isDB2
public final int isPOSTGRE
コンストラクタの詳細 |
---|
public Connect()
メソッドの詳細 |
---|
public int getDBProductType(Connection con) throws Exception, SQLException
con
- コネクション
Exception
SQLException
public String getConnectGroupID() throws jp.co.intra_mart.foundation.security.exception.AccessSecurityException
jp.co.intra_mart.foundation.security.exception.AccessSecurityException
public Connection getConnection(String groupID) throws SQLException, Exception
groupID
- ログイングループID
SQLException
Exception
public void setBeginTransaction(Connection con) throws SQLException
con
- コネクション
SQLException
public void setCommitTransaction(Connection con) throws SQLException
con
- コネクション
SQLException
public void setRollbackTransaction(Connection con) throws SQLException
con
- コネクション
SQLException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |