org.tranql.connector.derby
Class ClientXAMCF

java.lang.Object
  extended by org.tranql.connector.jdbc.AbstractXADataSourceMCF
      extended by org.tranql.connector.derby.ClientXAMCF
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ManagedConnectionFactory, org.tranql.connector.UserPasswordManagedConnectionFactory

public class ClientXAMCF
extends org.tranql.connector.jdbc.AbstractXADataSourceMCF

ManagedConnectionFactory that wraps a Derby ClientXADataSource for use with a remote server.

Version:
$Revision: 227 $ $Date: 2005-08-07 18:38:59 -0400 (Sun, 07 Aug 2005) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tranql.connector.jdbc.AbstractXADataSourceMCF
exceptionSorter, xaDataSource
 
Constructor Summary
ClientXAMCF()
          Default constructor for a Derby Client XA DataSource.
 
Method Summary
 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.Integer getPortNumber()
          Return the port number to connect to.
 java.lang.Boolean getRetrieveMessageText()
          Return whether the client should retrieve the text of messages from the server.
 java.lang.String getServerName()
          Return the name of the server to connect to.
 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 setPortNumber(java.lang.Integer port)
          Set the port number to connect to.
 void setRetrieveMessageText(java.lang.Boolean b)
          Set whether the client should retrieve the text of messages from the server.
 void setServerName(java.lang.String serverName)
          Set the name of the server to connect to.
 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, createManagedConnection, 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

ClientXAMCF

public ClientXAMCF()
Default constructor for a Derby Client XA DataSource.

Method Detail

getUserName

public java.lang.String getUserName()
Return the user name used to establish the connection.

Returns:
the user name used to establish the connection

setUserName

public void setUserName(java.lang.String user)
Set the user name used establish the connection. This value is used if no connection information is supplied by the application when attempting to create a connection.

Parameters:
user - the user name used to establish the connection; may be null

getPassword

public java.lang.String getPassword()
Return the password credential used to establish the connection.

Returns:
the password credential used to establish the connection

setPassword

public void setPassword(java.lang.String password)
Set the user password credential establish the connection. This value is used if no connection information is supplied by the application when attempting to create a connection.

Parameters:
password - the password credential used to establish the connection; may be null

getServerName

public java.lang.String getServerName()
Return the name of the server to connect to.

Returns:
the name of the server to connect to

setServerName

public void setServerName(java.lang.String serverName)
Set the name of the server to connect to.

Parameters:
serverName - the name of the server to connect to

getPortNumber

public java.lang.Integer getPortNumber()
Return the port number to connect to.

Returns:
the port number to connect to

setPortNumber

public void setPortNumber(java.lang.Integer port)
Set the port number to connect to.

Parameters:
port - the port number to connect to

getDatabaseName

public java.lang.String getDatabaseName()
Return the database name.

Returns:
the database name

setDatabaseName

public void setDatabaseName(java.lang.String name)
Set the database name.

Parameters:
name - the database name

getCreateDatabase

public java.lang.Boolean getCreateDatabase()
Return whether the database should be created if it does not already exist.

Returns:
true if the database should be created

setCreateDatabase

public void setCreateDatabase(java.lang.Boolean create)
Set whether the database should be created if it does not already exist.

Parameters:
create - TRUE if the database should be created

getRetrieveMessageText

public java.lang.Boolean getRetrieveMessageText()
Return whether the client should retrieve the text of messages from the server.

Returns:
true if message text should be retrieved from the server

setRetrieveMessageText

public void setRetrieveMessageText(java.lang.Boolean b)
Set whether the client should retrieve the text of messages from the server.

Parameters:
b - whether the client should retrieve the text of messages from the server


Copyright © 2006 The Codehaus. All Rights Reserved.