public final class ConnectionPoolObjectsUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_PROPERTY |
Modifier and Type | Method and Description |
---|---|
static int |
convertSpecTxSupportToContainerTxSupport(javax.resource.spi.TransactionSupport.TransactionSupportLevel mcfTS)
Return the interger representation container transaction support value equivalent to
the javax.resource.spi.TransactionSupport enum value.
|
static ConnectorConnectionPool |
createDefaultConnectorPoolObject(PoolInfo poolInfo,
String rarName)
Creates default ConnectorConnectionPool consisting of default
pool values.
|
static Subject |
createSubject(javax.resource.spi.ManagedConnectionFactory mcf,
ResourcePrincipal prin) |
static ConnectorConnectionPool |
createSunRaConnectorPoolObject(PoolInfo poolInfo,
ConnectorDescriptor desc,
String rarName)
Creates ConnectorConnectionPool object pertaining to the pool props
mentioned in the sun-ra/xml i.e it represents the pool mentioned in the
sun-ra.xm.
|
static TransactionSupport |
getTransactionSupport(int ts)
A utility method to map TransactionSupport ints as represented
in ConnectorConstants to the new TransactionSupport enum
|
static int |
getTransactionSupportFromRaXml(String rarName) |
static String |
getValueFromMCF(String prop,
PoolInfo poolInfo,
javax.resource.spi.ManagedConnectionFactory mcf) |
static boolean |
isPoolSystemPool(ConnectorConnectionPool domainCcp) |
static boolean |
isPoolSystemPool(String poolName) |
static boolean |
isTxSupportConfigurationSane(int txSupport,
String raName) |
static int |
parseTransactionSupportString(String txSupport)
Return the integer representation of the transaction-support attribure
|
static void |
setLazyEnlistAndLazyAssocProperties(String lazyAssocString,
List<Property> properties,
ConnectorConnectionPool conConnPool)
Validates and sets the values for LazyConnectionEnlistment and LazyConnectionAssociation.
|
public static final String ELEMENT_PROPERTY
public static ConnectorConnectionPool createDefaultConnectorPoolObject(PoolInfo poolInfo, String rarName)
poolInfo
- Name of the poolpublic static ConnectorConnectionPool createSunRaConnectorPoolObject(PoolInfo poolInfo, ConnectorDescriptor desc, String rarName)
poolInfo
- Name of the pooldesc
- ConnectorDescriptor which represent ra.xml and sun-ra.xml.public static int convertSpecTxSupportToContainerTxSupport(javax.resource.spi.TransactionSupport.TransactionSupportLevel mcfTS)
mcfTS
- javax.resource.spi.TransactionSupportpublic static int parseTransactionSupportString(String txSupport)
txSupport
- one of public static boolean isTxSupportConfigurationSane(int txSupport, String raName)
public static TransactionSupport getTransactionSupport(int ts)
public static String getValueFromMCF(String prop, PoolInfo poolInfo, javax.resource.spi.ManagedConnectionFactory mcf)
public static Subject createSubject(javax.resource.spi.ManagedConnectionFactory mcf, ResourcePrincipal prin)
public static boolean isPoolSystemPool(ConnectorConnectionPool domainCcp)
public static boolean isPoolSystemPool(String poolName)
public static void setLazyEnlistAndLazyAssocProperties(String lazyAssocString, List<Property> properties, ConnectorConnectionPool conConnPool)
lazyAssocString
- Property valueadminPool
- Config BeanconConnPool
- Connector Connection Poolpublic static int getTransactionSupportFromRaXml(String rarName) throws ConnectorRuntimeException
ConnectorRuntimeException
Copyright © 2019. All rights reserved.