|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.jca.JdoManagedConnectionFactory
Field Summary | |
---|---|
protected JdoConnectionFactory |
connectionFactory
It is assumed that only one ConnectionFactory is actually created by a ManagedConnectionFactory. |
protected ProxyManagerFactory |
pmf
The factory for managing JDO transaction contexts. |
protected boolean |
started
|
protected javax.transaction.TransactionManager |
tm
|
Constructor Summary | |
---|---|
JdoManagedConnectionFactory()
|
Method Summary | |
---|---|
java.lang.Object |
createConnection()
Delegates the creation of a Connection to the ConnectionFactory. |
java.lang.Object |
createConnectionFactory()
Creates a JdoConnectionFactory; yields the existing one if any. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cm)
Creates a JdoConnectionFactory; yields the existing one if any. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Creates a new JdoManagedConnection. |
protected void |
finalize()
|
java.io.PrintWriter |
getLogWriter()
Retrieves the printwriter used for the logging. |
java.lang.String |
getPropertyFile()
Gives access to the name of the property file for initializing the underlying JDO implementation. |
java.lang.String |
getTransactionManagerJNDIName()
Gives access to the JNDI name of the transaction manager (javax.transaction.TransactionManager). |
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set set,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
No matching rules supported. |
void |
setLogWriter(java.io.PrintWriter writer)
If he given PrintWrtier is a Loggable implementation then the inner logger and the inner loggerFactory are used. |
void |
setPropertyFile(java.lang.String pf)
Assigns to this JDO connector the name of the property file for initializing the underlying JDO implementation. |
void |
setTransactionManager(javax.transaction.TransactionManager tm)
|
void |
setTransactionManagerJNDIName(java.lang.String jndiname)
Assigns the JNDI name of the transaction manager (javax.transaction.TransactionManager). |
void |
start()
Starts this JdoManagedConnectionFactory. |
void |
stop()
Stops this JdoManagedConnectionFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
---|
equals, hashCode |
Field Detail |
protected JdoConnectionFactory connectionFactory
protected ProxyManagerFactory pmf
protected boolean started
protected javax.transaction.TransactionManager tm
Constructor Detail |
public JdoManagedConnectionFactory()
Method Detail |
public void start() throws javax.resource.ResourceException
javax.resource.ResourceException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void stop() throws javax.resource.ResourceException
javax.resource.ResourceException
public java.lang.Object createConnection() throws javax.resource.ResourceException
javax.resource.ResourceException
public java.lang.String getPropertyFile()
getPropertyFile
in interface JdoAttributeController
public void setPropertyFile(java.lang.String pf)
setPropertyFile
in interface JdoAttributeController
pf
- The name of the property file.public java.lang.String getTransactionManagerJNDIName()
JdoAttributeController
getTransactionManagerJNDIName
in interface JdoAttributeController
public void setTransactionManagerJNDIName(java.lang.String jndiname) throws javax.resource.ResourceException
JdoAttributeController
setTransactionManagerJNDIName
in interface JdoAttributeController
jndiname
- is the JNDI name of the transaction manager
javax.resource.ResourceException
public void setTransactionManager(javax.transaction.TransactionManager tm)
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
cm
- The ConnectionManager to be used by the created
ConnectionFactory (may be null).
javax.resource.ResourceException
public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter writer) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |