Methods Summary |
---|
public boolean | equals(java.lang.Object other)
if (other == null) return false;
if (other instanceof ResourceSpec) {
ResourceSpec obj = (ResourceSpec) other;
if(connectionPoolName == null) {
return (resourceId.equals(obj.resourceId) &&
resourceIdType == obj.resourceIdType);
} else {
return (connectionPoolName.equals(obj.connectionPoolName));
}
} else {
return false;
}
|
public java.lang.String | getConnectionPoolName()
return connectionPoolName;
|
public java.lang.Object | getConnectionToAssociate()
return connectionToAssoc_;
|
public java.lang.String | getResourceId()
return resourceId;
|
public int | hashCode()
if(connectionPoolName == null) {
return resourceId.hashCode() + resourceIdType;
} else {
return connectionPoolName.hashCode();
}
|
public boolean | isLazyAssociatable()
return lazyAssociatable_;
|
public boolean | isLazyEnlistable()
return lazyEnlistable_;
|
public boolean | isNonTx()Returns the status of the noTxResource flag
return nonTxResource;
|
public boolean | isPM()
return pmResource;
|
public boolean | isXA()
return isXA_;
|
public void | markAsXA()
isXA_ = true;
|
public void | setConnectionPoolName(java.lang.String name)
connectionPoolName = name;
|
public void | setConnectionToAssociate(java.lang.Object conn)
connectionToAssoc_ = conn;
|
public void | setLazyAssociatable(boolean lazyAssoc)
lazyAssociatable_ = lazyAssoc;
|
public void | setLazyEnlistable(boolean lazyEnlist)
lazyEnlistable_ = lazyEnlist;
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer("ResourceSpec :- ");
sb.append("\nconnectionPoolName : ").append(connectionPoolName);
sb.append("\nisXA_ : ").append(isXA_);
sb.append("\nresoureId : ").append(resourceId);
sb.append("\nresoureIdType : ").append(resourceIdType);
sb.append("\npmResource : ").append(pmResource);
sb.append("\nnonTxResource : ").append(nonTxResource);
sb.append("\nlazyEnlistable : ").append(lazyEnlistable_);
sb.append("\nlazyAssociatable : ").append(lazyAssociatable_);
return sb.toString();
|