public class JdbcResourcesUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static JdbcResourcesUtil |
createInstance() |
org.glassfish.jdbc.config.JdbcConnectionPool |
getJdbcConnectionPoolOfResource(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo) |
String |
getRANameofJdbcConnectionPool(org.glassfish.jdbc.config.JdbcConnectionPool pool)
This method takes in an admin JdbcConnectionPool and returns the RA
that it belongs to.
|
static <T> com.sun.enterprise.config.serverbeans.Resource |
getResourceByName(com.sun.enterprise.config.serverbeans.Resources resources,
Class<T> type,
String name) |
static Collection<com.sun.enterprise.config.serverbeans.BindableResource> |
getResourcesOfPool(com.sun.enterprise.config.serverbeans.Resources resources,
String connectionPoolName) |
boolean |
isJdbcPoolReferredInServerInstance(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)
Determines if a JDBC connection pool is referred in a
server-instance via resource-refs
|
public static JdbcResourcesUtil createInstance()
public static <T> com.sun.enterprise.config.serverbeans.Resource getResourceByName(com.sun.enterprise.config.serverbeans.Resources resources,
Class<T> type,
String name)
public static Collection<com.sun.enterprise.config.serverbeans.BindableResource> getResourcesOfPool(com.sun.enterprise.config.serverbeans.Resources resources, String connectionPoolName)
public String getRANameofJdbcConnectionPool(org.glassfish.jdbc.config.JdbcConnectionPool pool)
pool - - The pool to checkpublic org.glassfish.jdbc.config.JdbcConnectionPool getJdbcConnectionPoolOfResource(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo)
public boolean isJdbcPoolReferredInServerInstance(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)
poolInfo - pool-nameCopyright © 2013. All Rights Reserved.