|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.eis.EISConnectionSpec
public class EISConnectionSpec
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 FormField Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
setConnectionSpec(javax.resource.cci.ConnectionSpec connectionSpec)
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)
Method Detail |
---|
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 setConnectionSpec(javax.resource.cci.ConnectionSpec connectionSpec)
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
public void toString(java.io.PrintWriter writer)
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |