|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tranql.connector.jdbc.AbstractXADataSourceMCF
org.tranql.connector.derby.EmbeddedXAMCF
public class EmbeddedXAMCF
ManagedConnectionFactory that wraps a Derby EmbeddedXADataSource for use in-VM.
| Field Summary |
|---|
| Fields inherited from class org.tranql.connector.jdbc.AbstractXADataSourceMCF |
|---|
exceptionSorter, xaDataSource |
| Constructor Summary | |
|---|---|
EmbeddedXAMCF()
Default constructor for a Derby Embedded XA DataSource. |
|
| Method Summary | |
|---|---|
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
|
java.lang.Boolean |
getCreateDatabase()
Return whether the database should be created if it does not already exist. |
java.lang.String |
getDatabaseName()
Return the database name. |
java.lang.String |
getPassword()
Return the password credential used to establish the connection. |
java.lang.String |
getShutdownDatabase()
|
java.lang.String |
getUserName()
Return the user name used to establish the connection. |
void |
setCreateDatabase(java.lang.Boolean create)
Set whether the database should be created if it does not already exist. |
void |
setDatabaseName(java.lang.String name)
Set the database name. |
void |
setPassword(java.lang.String password)
Set the user password credential establish the connection. |
void |
setShutdownDatabase(java.lang.String shutDown)
Set this property if one wishes to shutdown the database identified by databaseName. |
void |
setUserName(java.lang.String user)
Set the user name used establish the connection. |
| Methods inherited from class org.tranql.connector.jdbc.AbstractXADataSourceMCF |
|---|
createConnectionFactory, createConnectionFactory, equals, getLoginTimeout, getLogWriter, getPhysicalConnection, hashCode, matchManagedConnections, setLoginTimeout, setLogWriter, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedXAMCF()
| Method Detail |
|---|
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactorycreateManagedConnection in class org.tranql.connector.jdbc.AbstractXADataSourceMCFjavax.resource.ResourceExceptionpublic java.lang.String getUserName()
public void setUserName(java.lang.String user)
user - the user name used to establish the connection; may be nullpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password credential used to establish the connection; may be nullpublic java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String name)
name - the database namepublic java.lang.Boolean getCreateDatabase()
public void setCreateDatabase(java.lang.Boolean create)
create - TRUE if the database should be createdpublic void setShutdownDatabase(java.lang.String shutDown)
shutdown - - if set to the string "shutdown", this data source will shutdown the
database if it is running.public java.lang.String getShutdownDatabase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||