public class EISConnectionSpec extends java.lang.Object implements Connector
An EISConnectionSpec
specifies how the
javax.resource.cci.Connection
is accessed. There are three ways
to connect to an EIS datasource through JCA:
EISLogin
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected javax.resource.cci.ConnectionFactory |
connectionFactory |
protected javax.resource.cci.ConnectionSpec |
connectionSpec |
protected javax.naming.Context |
context |
protected java.io.Writer |
log |
protected javax.naming.Name |
name |
static java.lang.String |
PASSWORD |
static java.lang.String |
USER |
Constructor and Description |
---|
EISConnectionSpec()
PUBLIC:
Construct a EISConnectionSpec with no settings.
|
EISConnectionSpec(javax.naming.Context context,
javax.naming.Name name)
PUBLIC:
Construct a EISConnectionSpec with the specified settings.
|
EISConnectionSpec(javax.naming.Context context,
java.lang.String name)
PUBLIC:
Construct a EISConnectionSpec with the specified settings.
|
EISConnectionSpec(javax.naming.Name name)
PUBLIC:
Construct a EISConnectionSpec with the specified settings.
|
EISConnectionSpec(java.lang.String name)
PUBLIC:
Construct a EISConnectionSpec with the specified settings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
INTERNAL:
Clone the connector.
|
java.sql.Connection |
connect(java.util.Properties properties,
Session session)
INTERNAL:
Required for interface, but never used, for JDBC.
|
javax.resource.cci.Connection |
connectToDataSource(EISAccessor accessor,
java.util.Properties properties)
Connect with the specified properties and return the Connection.
|
java.lang.String |
getConnectionDetails()
PUBLIC:
Provide the details of my connection information.
|
javax.resource.cci.ConnectionFactory |
getConnectionFactory()
PUBLIC:
Return the javax.resource.cci.ConnectionFactory.
|
javax.resource.cci.ConnectionSpec |
getConnectionSpec()
PUBLIC:
Return the javax.resource.cci.ConnectionSpec.
|
javax.naming.Context |
getContext()
PUBLIC:
Return the JNDI Context that can supplied the named ConnectionFactory.
|
java.io.Writer |
getLog()
PUBLIC:
Returns the attunity adapter message log.
|
javax.naming.Name |
getName()
PUBLIC:
Return the name of the ConnectionFactory within the
JNDI Context.
|
java.lang.String |
getPasswordFromProperties(java.util.Properties properties)
INTERNAL:
Retrieve the password property from the supplied Properties object
|
void |
setConnectionFactory(javax.resource.cci.ConnectionFactory connectionFactory)
PUBLIC:
Set the javax.resource.cci.ConnectionFactory.
|
void |
setConnectionFactoryObject(java.lang.Object connectionFactory)
PUBLIC:
Set the javax.resource.cci.ConnectionFactory.
|
void |
setConnectionSpec(javax.resource.cci.ConnectionSpec connectionSpec)
PUBLIC:
Set the javax.resource.cci.ConnectionSpec.
|
void |
setConnectionSpecObject(java.lang.Object connectionFactory)
PUBLIC:
Set the javax.resource.cci.ConnectionSpec.
|
void |
setContext(javax.naming.Context context)
PUBLIC:
Set the JNDI Context that can supply the named ConnectionFactory.
|
void |
setLog(java.io.Writer log)
PUBLIC:
Sets the attunity adapter message log.
|
void |
setName(javax.naming.Name name)
PUBLIC:
Set the name of the ConnectionFactory within the
JNDI Context.
|
void |
setName(java.lang.String name)
PUBLIC:
Set the name of the ConnectionFactory within the
JNDI Context.
|
java.lang.String |
toString()
PUBLIC:
Print data source info.
|
void |
toString(java.io.PrintWriter writer)
INTERNAL:
Print something useful on the log.
|
public static final java.lang.String USER
public static final java.lang.String PASSWORD
protected javax.resource.cci.ConnectionSpec connectionSpec
protected javax.resource.cci.ConnectionFactory connectionFactory
protected javax.naming.Context context
protected javax.naming.Name name
protected java.io.Writer log
public EISConnectionSpec()
public EISConnectionSpec(javax.naming.Context context, java.lang.String name) throws ValidationException
ValidationException
public EISConnectionSpec(java.lang.String name) throws ValidationException
ValidationException
public EISConnectionSpec(javax.naming.Context context, javax.naming.Name name)
public EISConnectionSpec(javax.naming.Name name)
public java.io.Writer getLog()
public void setLog(java.io.Writer log)
public java.lang.Object clone()
public java.sql.Connection connect(java.util.Properties properties, Session session)
public javax.resource.cci.Connection connectToDataSource(EISAccessor accessor, java.util.Properties properties) throws DatabaseException, ValidationException
DatabaseException
ValidationException
public javax.naming.Context getContext()
public java.lang.String getPasswordFromProperties(java.util.Properties properties)
public javax.resource.cci.ConnectionFactory getConnectionFactory()
public javax.resource.cci.ConnectionSpec getConnectionSpec()
public javax.naming.Name getName()
public java.lang.String getConnectionDetails()
getConnectionDetails
in interface Connector
public void setContext(javax.naming.Context context)
public void setConnectionFactory(javax.resource.cci.ConnectionFactory connectionFactory)
public void setConnectionFactoryObject(java.lang.Object connectionFactory)
public void setConnectionSpec(javax.resource.cci.ConnectionSpec connectionSpec)
public void setConnectionSpecObject(java.lang.Object connectionFactory)
public void setName(java.lang.String name) throws ValidationException
ValidationException
public void setName(javax.naming.Name name)
public java.lang.String toString()
toString
in class java.lang.Object