Package org.glassfish.jdbc.util
Class JdbcResourcesUtil
java.lang.Object
org.glassfish.jdbc.util.JdbcResourcesUtil
Utility class for JDBC related classes
-
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcResourcesUtilorg.glassfish.jdbc.config.JdbcConnectionPoolgetJdbcConnectionPoolOfResource(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo) getRANameofJdbcConnectionPool(org.glassfish.jdbc.config.JdbcConnectionPool pool) This method takes in an admin JdbcConnectionPool and returns the RA that it belongs to.static com.sun.enterprise.config.serverbeans.ResourcePoolgetResourceByName(com.sun.enterprise.config.serverbeans.Resources resources, Class<com.sun.enterprise.config.serverbeans.ResourcePool> type, org.glassfish.api.naming.SimpleJndiName name) static Collection<com.sun.enterprise.config.serverbeans.BindableResource> getResourcesOfPool(com.sun.enterprise.config.serverbeans.Resources resources, org.glassfish.api.naming.SimpleJndiName connectionPoolName) booleanisJdbcPoolReferredInServerInstance(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo) Determines if a JDBC connection pool is referred in a server-instance via resource-refs
-
Method Details
-
createInstance
-
getResourcesOfPool
public static Collection<com.sun.enterprise.config.serverbeans.BindableResource> getResourcesOfPool(com.sun.enterprise.config.serverbeans.Resources resources, org.glassfish.api.naming.SimpleJndiName connectionPoolName) -
getResourceByName
public static com.sun.enterprise.config.serverbeans.ResourcePool getResourceByName(com.sun.enterprise.config.serverbeans.Resources resources, Class<com.sun.enterprise.config.serverbeans.ResourcePool> type, org.glassfish.api.naming.SimpleJndiName name) -
getRANameofJdbcConnectionPool
This method takes in an admin JdbcConnectionPool and returns the RA that it belongs to.- Parameters:
pool- - The pool to check- Returns:
- The name of the JDBC RA that provides this pool's data-source
-
getJdbcConnectionPoolOfResource
public org.glassfish.jdbc.config.JdbcConnectionPool getJdbcConnectionPoolOfResource(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo) -
isJdbcPoolReferredInServerInstance
public boolean isJdbcPoolReferredInServerInstance(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo) Determines if a JDBC connection pool is referred in a server-instance via resource-refs- Parameters:
poolInfo- pool-name- Returns:
- boolean true if pool is referred in this server instance as well enabled, false otherwise
-