public class ResourceSpec extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
JDBC_URL |
static int |
JMS |
static int |
JNDI_NAME |
Constructor and Description |
---|
ResourceSpec(String resourceId,
int resourceIdType) |
ResourceSpec(String resourceId,
int resourceIdType,
PoolMetaData pmd) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
The logic is *
If the connectionpool exist then equality check is against *
connectionPoolName *
*
If connection is null then equality check is made against *
resourceId and resourceType *
|
Object |
getConnectionToAssociate() |
PoolInfo |
getPoolInfo() |
String |
getResourceId() |
int |
hashCode()
If the connectionpool exist then hashcode of connectionPoolName
is returned.
|
boolean |
isLazyAssociatable() |
boolean |
isLazyEnlistable() |
boolean |
isNonTx()
Returns the status of the noTxResource flag
|
boolean |
isPM() |
boolean |
isXA() |
void |
markAsXA() |
void |
setConnectionToAssociate(Object conn) |
void |
setLazyAssociatable(boolean lazyAssoc) |
void |
setLazyEnlistable(boolean lazyEnlist) |
void |
setPoolInfo(PoolInfo poolInfo) |
String |
toString() |
public static final int JDBC_URL
public static final int JNDI_NAME
public static final int JMS
public ResourceSpec(String resourceId, int resourceIdType)
public ResourceSpec(String resourceId, int resourceIdType, PoolMetaData pmd)
public PoolInfo getPoolInfo()
public void setPoolInfo(PoolInfo poolInfo)
public boolean equals(Object other)
public int hashCode()
public String getResourceId()
public boolean isPM()
public boolean isNonTx()
public boolean isXA()
public void markAsXA()
public boolean isLazyEnlistable()
public void setLazyEnlistable(boolean lazyEnlist)
public boolean isLazyAssociatable()
public void setLazyAssociatable(boolean lazyAssoc)
public void setConnectionToAssociate(Object conn)
public Object getConnectionToAssociate()
Copyright © 2019. All rights reserved.