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