パッケージ org.postgresql.ds.common
クラス PGObjectFactory
java.lang.Object
org.postgresql.ds.common.PGObjectFactory
- すべての実装されたインタフェース:
ObjectFactory
- 直系の既知のサブクラス:
PGXADataSourceFactory
Returns a DataSource-ish thing based on a JNDI reference. In the case of a SimpleDataSource or
ConnectionPool, a new instance is created each time, as there is no connection state to maintain.
In the case of a PoolingDataSource, the same DataSource will be returned for every invocation
within the same VM/ClassLoader, so that the state of the connections in the pool will be
consistent.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明@Nullable Object
getObjectInstance
(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) Dereferences a PostgreSQL DataSource.protected @Nullable String
getProperty
(Reference ref, String s) protected Object
loadBaseDataSource
(BaseDataSource ds, Reference ref)
-
コンストラクタの詳細
-
PGObjectFactory
public PGObjectFactory()
-
-
メソッドの詳細
-
getObjectInstance
public @Nullable Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws ExceptionDereferences a PostgreSQL DataSource. Other types of references are ignored.- 定義:
getObjectInstance
インタフェース内ObjectFactory
- 例外:
Exception
-
loadBaseDataSource
-
getProperty
-