net.core22.dbfw
クラス DataSourceFactory

java.lang.Object
  上位を拡張 net.core22.dbfw.DataSourceFactory

public class DataSourceFactory
extends java.lang.Object

データソースを取得する  DataSource方式で、APサーバーのコネクションプール機能を  用いる方式を推奨する

作成者:
KURO

コンストラクタの概要
DataSourceFactory()
           
 
メソッドの概要
static javax.sql.DataSource getDataSource()
          DataSourceインスタンスを取得する db.propertiesから情報を取得 Modeが設定されていないときは、nullを返却する
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DataSourceFactory

public DataSourceFactory()
メソッドの詳細

getDataSource

public static javax.sql.DataSource getDataSource()
                                          throws DBException,
                                                 java.sql.SQLException
DataSourceインスタンスを取得する db.propertiesから情報を取得 Modeが設定されていないときは、nullを返却する

戻り値:
Connection
例外:
StorageException - Storage例外
java.sql.SQLException - SQL例外
DBException