Package com.sun.enterprise.resource
Class ResourceSpec
- java.lang.Object
-
- com.sun.enterprise.resource.ResourceSpec
-
- All Implemented Interfaces:
Serializable
public class ResourceSpec extends Object implements Serializable
ResourceSpec is used as a key to locate the correct resource pool- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceSpec(String resourceId, int resourceIdType)
ResourceSpec(String resourceId, int resourceIdType, PoolMetaData pmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 flagboolean
isPM()
boolean
isXA()
void
markAsXA()
void
setConnectionToAssociate(Object conn)
void
setLazyAssociatable(boolean lazyAssoc)
void
setLazyEnlistable(boolean lazyEnlist)
void
setPoolInfo(PoolInfo poolInfo)
String
toString()
-
-
-
Field Detail
-
JDBC_URL
public static final int JDBC_URL
- See Also:
- Constant Field Values
-
JNDI_NAME
public static final int JNDI_NAME
- See Also:
- Constant Field Values
-
JMS
public static final int JMS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceSpec
public ResourceSpec(String resourceId, int resourceIdType)
-
ResourceSpec
public ResourceSpec(String resourceId, int resourceIdType, PoolMetaData pmd)
-
-
Method Detail
-
getPoolInfo
public PoolInfo getPoolInfo()
-
setPoolInfo
public void setPoolInfo(PoolInfo poolInfo)
-
equals
public 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 *
-
hashCode
public int hashCode()
If the connectionpool exist then hashcode of connectionPoolName is returned. If connectionpool is null return the hashcode of resourceId + resourceIdType
-
getResourceId
public String getResourceId()
-
isPM
public boolean isPM()
-
isNonTx
public boolean isNonTx()
Returns the status of the noTxResource flag- Returns:
- true if this resource is a noTx resource
-
isXA
public boolean isXA()
-
markAsXA
public void markAsXA()
-
isLazyEnlistable
public boolean isLazyEnlistable()
-
setLazyEnlistable
public void setLazyEnlistable(boolean lazyEnlist)
-
isLazyAssociatable
public boolean isLazyAssociatable()
-
setLazyAssociatable
public void setLazyAssociatable(boolean lazyAssoc)
-
setConnectionToAssociate
public void setConnectionToAssociate(Object conn)
-
getConnectionToAssociate
public Object getConnectionToAssociate()
-
-