|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.jca.FBManagedConnectionFactory
FBManagedConnectionFactory implements the jca ManagedConnectionFactory interface and also many of the internal functions of ManagedConnection. This nonstandard behavior is required due to firebird requiring all work done in a transaction to be done over one connection. To support xa semantics, the correct db handle must be located whenever a ManagedConnection is associated with an xid. WARNING: this adapter will probably not work properly in an environment where ManagedConnectionFactory is serialized and deserialized, and the deserialized copy is expected to function as anything other than a key.
Constructor Summary | |
FBManagedConnectionFactory()
|
|
FBManagedConnectionFactory(GDSType type)
|
Method Summary | |
FBManagedConnectionFactory |
canonicalize()
The canonicalize method is used in FBDriver to reuse
previous fbmcf instances if they have been create. |
java.lang.Object |
createConnectionFactory()
The createConnectionFactory method creates a DataSource
with a default stand alone ConnectionManager. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
The createConnectionFactory method creates a DataSource
using the supplied ConnectionManager.. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Creates a new physical connection to the underlying EIS resource manager, ManagedConnectionFactory uses the security information (passed as Subject) and additional ConnectionRequestInfo (which is specific to ResourceAdapter and opaque to application server) to create this new connection. |
boolean |
equals(java.lang.Object other)
|
java.lang.Integer |
getBlobBufferLength()
Get the BlobBufferLength value. |
java.lang.String |
getDatabase()
|
FBConnectionRequestInfo |
getDefaultConnectionRequestInfo()
|
java.lang.String |
getEncoding()
|
java.lang.String |
getLocalEncoding()
|
java.io.PrintWriter |
getLogWriter()
Get the log writer for this ManagedConnectionFactory instance. |
java.lang.String |
getPassword()
|
FBTpb |
getTpb()
|
java.lang.Integer |
getTransactionIsolation()
|
java.lang.String |
getTransactionIsolationName()
|
GDSType |
getType()
|
java.lang.String |
getUserName()
|
int |
hashCode()
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Returns a matched connection from the candidate set of connections. |
void |
setBlobBufferLength(java.lang.Integer blobBufferLengthWrapper)
Set the BlobBufferLength value. |
void |
setConnectionRequestInfo(FBConnectionRequestInfo cri)
|
void |
setDatabase(java.lang.String database)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setLocalEncoding(java.lang.String localEncoding)
|
void |
setLogWriter(java.io.PrintWriter out)
Set the log writer for this ManagedConnectionFactory instance. |
void |
setPassword(java.lang.String password)
|
void |
setTpb(FBTpb tpb)
|
void |
setTpbMapper(FBTpbMapper mapper)
|
void |
setTransactionIsolation(java.lang.Integer level)
|
void |
setTransactionIsolationName(java.lang.String level)
|
void |
setUserName(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FBManagedConnectionFactory()
public FBManagedConnectionFactory(GDSType type)
Method Detail |
public GDSType getType()
public void setDatabase(java.lang.String database)
public java.lang.String getDatabase()
public void setConnectionRequestInfo(FBConnectionRequestInfo cri)
public FBConnectionRequestInfo getDefaultConnectionRequestInfo()
public void setUserName(java.lang.String userName)
public java.lang.String getUserName()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setTpb(FBTpb tpb)
public FBTpb getTpb()
public void setTpbMapper(FBTpbMapper mapper) throws FBResourceException
FBResourceException
public void setTransactionIsolation(java.lang.Integer level) throws javax.resource.ResourceException
javax.resource.ResourceException
public java.lang.Integer getTransactionIsolation() throws javax.resource.ResourceException
javax.resource.ResourceException
public void setTransactionIsolationName(java.lang.String level) throws javax.resource.ResourceException
javax.resource.ResourceException
public java.lang.String getTransactionIsolationName() throws javax.resource.ResourceException
javax.resource.ResourceException
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public void setLocalEncoding(java.lang.String localEncoding)
public java.lang.String getLocalEncoding()
public java.lang.Integer getBlobBufferLength()
public void setBlobBufferLength(java.lang.Integer blobBufferLengthWrapper)
blobBufferLengthWrapper
- The new BlobBufferLength value.public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
public boolean equals(java.lang.Object other)
equals
in interface javax.resource.spi.ManagedConnectionFactory
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
method creates a DataSource
using the supplied ConnectionManager..
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cxManager
- a ConnectionManager
value
java.lang.Object
value
javax.resource.ResourceException
- if an error occurspublic java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
method creates a DataSource
with a default stand alone ConnectionManager. Ours can implement pooling.
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
java.lang.Object
value
javax.resource.ResourceException
- if an error occurspublic javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
public FBManagedConnectionFactory canonicalize()
canonicalize
method is used in FBDriver to reuse
previous fbmcf instances if they have been create. It should
really be package access level
FBManagedConnectionFactory
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |