public class ConnectionSpecImpl extends Object implements ConnectionFactory.ConnectionSpec
| Constructor and Description |
|---|
ConnectionSpecImpl()
Constructor
|
ConnectionSpecImpl(String sServiceName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
ClassLoader |
getClassLoader()
Get the class loader for which the configuration should be used.
|
String |
getConfigURI()
Get the configuration URI used to create the connection.
|
Isolation |
getIsolation()
Get the
transaction isolation for this connection. |
String |
getServiceName()
Get the name of the service that will be associated with any connection obtained with this connection spec.
|
int |
getTimeout()
Obtain the transaction timeout for this connection.
|
XmlElement |
getXmlConfig()
Get the cache configuration in
xml element format used to create the connection. |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isAutoCommit()
Get the auto commit option.
|
boolean |
isEager()
Get the eager mode value.
|
void |
setClassLoader(ClassLoader loader)
Set the class loader for which the configuration should be used.
|
void |
setCommitOption(boolean fCommitOption)
Set the auto commit option.
|
void |
setConfigURI(String sConfigURI)
Set the configuration URI used to create the connection.
|
void |
setEager(boolean fEager)
Set the eager mode value.
|
void |
setIsolation(Isolation isolation)
Set the transaction isolation for the connection.
|
void |
setServiceName(String sServiceName)
Set the name of the service that will be associated with any connection obtained with this connection spec.
|
void |
setTimeout(int nSeconds)
Set the transactions timeout for the connection.
|
void |
setXmlConfig(XmlElement xmlConfig)
Set the cache configuration in
xml element format used to create the connection. |
public ConnectionSpecImpl()
public ConnectionSpecImpl(String sServiceName)
sServiceName - the service to be associated with the connectionpublic String getServiceName()
getServiceName in interface ConnectionFactory.ConnectionSpecpublic String getConfigURI()
getConfigURI in interface ConnectionFactory.ConnectionSpecpublic XmlElement getXmlConfig()
xml element format used to create the connection.getXmlConfig in interface ConnectionFactory.ConnectionSpecpublic ClassLoader getClassLoader()
getClassLoader in interface ConnectionFactory.ConnectionSpecpublic boolean isAutoCommit()
isAutoCommit in interface ConnectionFactory.ConnectionSpecpublic Isolation getIsolation()
transaction isolation for this connection.getIsolation in interface ConnectionFactory.ConnectionSpecpublic boolean isEager()
isEager in interface ConnectionFactory.ConnectionSpecpublic int getTimeout()
getTimeout in interface ConnectionFactory.ConnectionSpecpublic void setServiceName(String sServiceName)
sServiceName - the name of the servicepublic void setConfigURI(String sConfigURI)
sConfigURI - the configuration URIpublic void setXmlConfig(XmlElement xmlConfig)
xml element format used to create the connection.xmlConfig - the cache configuration in xml element formatpublic void setClassLoader(ClassLoader loader)
loader - the class loaderpublic void setCommitOption(boolean fCommitOption)
fCommitOption - the auto commit optionpublic void setIsolation(Isolation isolation)
isolation - the transaction isolationpublic void setEager(boolean fEager)
fEager - the eager mode; false indicates that cache operations will potentially be delayed and submitted in batch form.public void setTimeout(int nSeconds)
nSeconds - the timeout in secondspublic int hashCode()