java.lang.Object
org.eclipse.persistence.eis.EISConnectionSpec
- All Implemented Interfaces:
Serializable,Cloneable,Connector
- Direct Known Subclasses:
AQEISConnectionSpec,JMSEISConnectionSpec,MongoConnectionSpec,OracleNoSQLConnectionSpec,OracleNoSQLConnectionSpec,XMLFileEISConnectionSpec
An EISConnectionSpec specifies how the
jakarta.resource.cci.Connection is accessed. There are three ways
to connect to an EIS datasource through JCA:
- Provide a JNDI name to the ConnectionFactory and use the default getConnection
- Provide a JNDI name to the ConnectionFactory, and a driver specific ConnectionSpec to pass to the getConnection
- Connect in a non-managed way directly to the driver specific ConnectionFactory
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConnectionFactoryprotected ConnectionSpecprotected Contextprotected Writerprotected Namestatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionPUBLIC: Construct a EISConnectionSpec with no settings.EISConnectionSpec(String name) PUBLIC: Construct a EISConnectionSpec with the specified settings.EISConnectionSpec(Context context, String name) PUBLIC: Construct a EISConnectionSpec with the specified settings.EISConnectionSpec(Context context, Name name) PUBLIC: Construct a EISConnectionSpec with the specified settings.EISConnectionSpec(Name name) PUBLIC: Construct a EISConnectionSpec with the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionclone()INTERNAL: Clone the connector.connect(Properties properties, Session session) INTERNAL: Required for interface, but never used, for JDBC.connectToDataSource(EISAccessor accessor, Properties properties) Connect with the specified properties and return the Connection.PUBLIC: Provide the details of my connection information.PUBLIC: Return the jakarta.resource.cci.ConnectionFactory.PUBLIC: Return the jakarta.resource.cci.ConnectionSpec.PUBLIC: Return the JNDI Context that can supplied the named ConnectionFactory.getLog()PUBLIC: Returns the attunity adapter message log.getName()PUBLIC: Return the name of the ConnectionFactory within the JNDI Context.getPasswordFromProperties(Properties properties) INTERNAL: Retrieve the password property from the supplied Properties objectvoidsetConnectionFactory(ConnectionFactory connectionFactory) PUBLIC: Set the jakarta.resource.cci.ConnectionFactory.voidsetConnectionFactoryObject(Object connectionFactory) PUBLIC: Set the jakarta.resource.cci.ConnectionFactory.voidsetConnectionSpec(ConnectionSpec connectionSpec) PUBLIC: Set the jakarta.resource.cci.ConnectionSpec.voidsetConnectionSpecObject(Object connectionFactory) PUBLIC: Set the jakarta.resource.cci.ConnectionSpec.voidsetContext(Context context) PUBLIC: Set the JNDI Context that can supply the named ConnectionFactory.voidPUBLIC: Sets the attunity adapter message log.voidPUBLIC: Set the name of the ConnectionFactory within the JNDI Context.voidPUBLIC: Set the name of the ConnectionFactory within the JNDI Context.toString()PUBLIC: Print data source info.voidtoString(PrintWriter writer) INTERNAL: Print something useful on the log.
-
Field Details
-
USER
- See Also:
-
PASSWORD
- See Also:
-
connectionSpec
-
connectionFactory
-
context
-
name
-
log
-
-
Constructor Details
-
EISConnectionSpec
public EISConnectionSpec()PUBLIC: Construct a EISConnectionSpec with no settings. The ConnectionFactory name will still need to be set. -
EISConnectionSpec
PUBLIC: Construct a EISConnectionSpec with the specified settings.- Throws:
ValidationException
-
EISConnectionSpec
PUBLIC: Construct a EISConnectionSpec with the specified settings.- Throws:
ValidationException
-
EISConnectionSpec
PUBLIC: Construct a EISConnectionSpec with the specified settings. -
EISConnectionSpec
PUBLIC: Construct a EISConnectionSpec with the specified settings.
-
-
Method Details
-
getLog
PUBLIC: Returns the attunity adapter message log. -
setLog
PUBLIC: Sets the attunity adapter message log. -
clone
INTERNAL: Clone the connector. -
connect
INTERNAL: Required for interface, but never used, for JDBC. -
connectToDataSource
public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException Connect with the specified properties and return the Connection.- Throws:
DatabaseExceptionValidationException
-
getContext
PUBLIC: Return the JNDI Context that can supplied the named ConnectionFactory. -
getPasswordFromProperties
INTERNAL: Retrieve the password property from the supplied Properties object -
getConnectionFactory
PUBLIC: Return the jakarta.resource.cci.ConnectionFactory. -
getConnectionSpec
PUBLIC: Return the jakarta.resource.cci.ConnectionSpec. -
getName
PUBLIC: Return the name of the ConnectionFactory within the JNDI Context. -
getConnectionDetails
PUBLIC: Provide the details of my connection information. This is primarily for JMX runtime services.- Specified by:
getConnectionDetailsin interfaceConnector- Returns:
- java.lang.String
-
setContext
PUBLIC: Set the JNDI Context that can supply the named ConnectionFactory. -
setConnectionFactory
PUBLIC: Set the jakarta.resource.cci.ConnectionFactory. -
setConnectionFactoryObject
PUBLIC: Set the jakarta.resource.cci.ConnectionFactory. -
setConnectionSpec
PUBLIC: Set the jakarta.resource.cci.ConnectionSpec. This is only required if the default getConnection() on the connection factory is not used. This must be set to the EIS adapter specific connection spec. -
setConnectionSpecObject
PUBLIC: Set the jakarta.resource.cci.ConnectionSpec. This is only required if the default getConnection() on the connection factory is not used. This must be set to the EIS adapter specific connection spec. -
setName
PUBLIC: Set the name of the ConnectionFactory within the JNDI Context.- Throws:
ValidationException
-
setName
PUBLIC: Set the name of the ConnectionFactory within the JNDI Context. -
toString
PUBLIC: Print data source info. -
toString
INTERNAL: Print something useful on the log.
-