Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.transaction
Class ConnectionSpecImpl

java.lang.Object
  extended by com.tangosol.coherence.transaction.ConnectionSpecImpl

All Implemented Interfaces:
ConnectionFactory.ConnectionSpec

public class ConnectionSpecImpl
extends java.lang.Object
implements ConnectionFactory.ConnectionSpec

The connection spec implementation used to pass the connection info to the connection request on the connection factory.

Since:
Coherence 3.7.1
Author:
tb 2011.08.16

Constructor Summary
ConnectionSpecImpl()
          Constructor
ConnectionSpecImpl(java.lang.String sServiceName)
          Constructor

 

Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.ClassLoader getClassLoader()
          Get the class loader for which the configuration should be used.
 java.lang.String getConfigURI()
          Get the configuration URI used to create the connection.
 Isolation getIsolation()
          Get the transaction isolation for this connection.
 java.lang.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(java.lang.ClassLoader loader)
          Set the class loader for which the configuration should be used.
 void setCommitOption(boolean fCommitOption)
          Set the auto commit option.
 void setConfigURI(java.lang.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(java.lang.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.

 

Constructor Detail

ConnectionSpecImpl

public ConnectionSpecImpl()
Constructor

ConnectionSpecImpl

public ConnectionSpecImpl(java.lang.String sServiceName)
Constructor
Parameters:
sServiceName - the service to be associated with the connection

Method Detail

getServiceName

public java.lang.String getServiceName()
Get the name of the service that will be associated with any connection obtained with this connection spec.
Specified by:
getServiceName in interface ConnectionFactory.ConnectionSpec
Returns:
the name of the service

getConfigURI

public java.lang.String getConfigURI()
Get the configuration URI used to create the connection.
Specified by:
getConfigURI in interface ConnectionFactory.ConnectionSpec
Returns:
the configuration URI

getXmlConfig

public XmlElement getXmlConfig()
Get the cache configuration in xml element format used to create the connection.
Specified by:
getXmlConfig in interface ConnectionFactory.ConnectionSpec
Returns:
the cache configuration in xml element format

getClassLoader

public java.lang.ClassLoader getClassLoader()
Get the class loader for which the configuration should be used.
Specified by:
getClassLoader in interface ConnectionFactory.ConnectionSpec
Returns:
the class loader for which the configuration should be used

isAutoCommit

public boolean isAutoCommit()
Get the auto commit option. This value determines how the auto commit option will be set on the Coherence connection when a connection is acquired from the adapter.
Specified by:
isAutoCommit in interface ConnectionFactory.ConnectionSpec
Returns:
the auto commit option

getIsolation

public Isolation getIsolation()
Get the transaction isolation for this connection.
Specified by:
getIsolation in interface ConnectionFactory.ConnectionSpec
Returns:
the transaction isolation

isEager

public boolean isEager()
Get the eager mode value. The eager mode value determines whether or not operations will be performed eagerly. A value of false means that cache operations will potentially be delayed and submitted in batch form.
Specified by:
isEager in interface ConnectionFactory.ConnectionSpec
Returns:
the eager mode

getTimeout

public int getTimeout()
Obtain the transaction timeout for this connection.
Specified by:
getTimeout in interface ConnectionFactory.ConnectionSpec
Returns:
the timeout in seconds

setServiceName

public void setServiceName(java.lang.String sServiceName)
Set the name of the service that will be associated with any connection obtained with this connection spec.
Parameters:
sServiceName - the name of the service

setConfigURI

public void setConfigURI(java.lang.String sConfigURI)
Set the configuration URI used to create the connection.
Parameters:
sConfigURI - the configuration URI

setXmlConfig

public void setXmlConfig(XmlElement xmlConfig)
Set the cache configuration in xml element format used to create the connection.
Parameters:
xmlConfig - the cache configuration in xml element format

setClassLoader

public void setClassLoader(java.lang.ClassLoader loader)
Set the class loader for which the configuration should be used.
Parameters:
loader - the class loader

setCommitOption

public void setCommitOption(boolean fCommitOption)
Set the auto commit option. This value determines how the auto commit option will be set on the Coherence connection when a managed connection is acquired from the adapter.
Parameters:
fCommitOption - the auto commit option

setIsolation

public void setIsolation(Isolation isolation)
Set the transaction isolation for the connection.
Parameters:
isolation - the transaction isolation

setEager

public void setEager(boolean fEager)
Set the eager mode value. The eager mode determines whether or not operations will be performed eagerly.
Parameters:
fEager - the eager mode; false indicates that cache operations will potentially be delayed and submitted in batch form.

setTimeout

public void setTimeout(int nSeconds)
Set the transactions timeout for the connection. A value of 0 means that the timeout value will not be set when the connection is obtained (the connection default timeout value will be used).
Parameters:
nSeconds - the timeout in seconds

hashCode

public int hashCode()
Returns a hash code value for the object.
Returns:
the hash code

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.