org.objectweb.speedo.jca
Class JdoConnectionFactory

java.lang.Object
  extended byorg.objectweb.speedo.jca.JdoConnectionFactory

public class JdoConnectionFactory
extends java.lang.Object

Author:
P. Dechamboux

Method Summary
 java.lang.String getAdapterName()
          Gives access to the adapter name metadata for the JDO.
 java.lang.String getAdapterShortDescription()
          Gives access to a short description of the JDO adapter.
 java.lang.String getAdapterVendorName()
          Gives access to the adapter vendor name metadata for the JDO.
 java.lang.String getAdapterVersion()
          Gives access to the adapter version metadata for the JDO.
 Connection getConnection()
          Connection allocation is delegated to the ConnectionManager assigned to this factory.
 Connection getConnection(ConnectionSpec spec)
          Connection allocation is delegated to the ConnectionManager assigned to this factory.
 java.lang.String getConnectionDriverName()
           
 java.lang.Object getConnectionFactory()
           
 java.lang.Object getConnectionFactory2()
           
 java.lang.String getConnectionFactory2Name()
           
 java.lang.String getConnectionFactoryName()
           
 java.lang.String getConnectionURL()
           
 java.lang.String getConnectionUserName()
           
 boolean getIgnoreCache()
           
 java.lang.String[] getInteractionSpecsSupported()
          No interaction is supported by the JDO adapter.
 int getMaxPool()
           
 ResourceAdapterMetaData getMetaData()
          The JdoConnectionFactory manages its metadata on its own.
 int getMinPool()
           
 int getMsWait()
           
 boolean getMultithreaded()
           
 boolean getNontransactionalRead()
           
 boolean getNontransactionalWrite()
           
 boolean getOptimistic()
           
 PersistenceManager getPersistenceManager()
           
 PersistenceManager getPersistenceManager(java.lang.String s, java.lang.String s1)
           
 java.util.Properties getProperties()
           
 RecordFactory getRecordFactory()
          No support for record.
 Reference getReference()
          Returns the JNDI Reference.
 boolean getRestoreValues()
           
 boolean getRetainValues()
           
 java.lang.String getSpecVersion()
          Gives access to the specification version of the JDO.
 void setConnectionDriverName(java.lang.String s)
           
 void setConnectionFactory(java.lang.Object o)
           
 void setConnectionFactory2(java.lang.Object o)
           
 void setConnectionFactory2Name(java.lang.String s)
           
 void setConnectionFactoryName(java.lang.String s)
           
 void setConnectionManager(ConnectionManager connectionManager)
           
 void setConnectionPassword(java.lang.String s)
           
 void setConnectionURL(java.lang.String s)
           
 void setConnectionUserName(java.lang.String s)
           
 void setIgnoreCache(boolean b)
           
 void setMaxPool(int i)
           
 void setMinPool(int i)
           
 void setMsWait(int i)
           
 void setMultithreaded(boolean b)
           
 void setNontransactionalRead(boolean b)
           
 void setNontransactionalWrite(boolean b)
           
 void setOptimistic(boolean b)
           
 void setReference(Reference reference)
          Assigns a JNDI Reference to the adapter.
 void setRestoreValues(boolean b)
           
 void setRetainValues(boolean b)
           
 java.util.Collection supportedOptions()
           
 boolean supportsExecuteWithInputAndOutputRecord()
          No support for record.
 boolean supportsExecuteWithInputRecordOnly()
          No support for record.
 boolean supportsLocalTransactionDemarcation()
          Yes, it does support local transaction demarcation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConnectionManager

public void setConnectionManager(ConnectionManager connectionManager)

getConnection

public Connection getConnection()
                         throws ResourceException
Connection allocation is delegated to the ConnectionManager assigned to this factory.

Throws:
ResourceException

getConnection

public Connection getConnection(ConnectionSpec spec)
                         throws ResourceException
Connection allocation is delegated to the ConnectionManager assigned to this factory.

Parameters:
spec - The connection is not taken into account within JDO.
Throws:
ResourceException

setReference

public void setReference(Reference reference)
Assigns a JNDI Reference to the adapter.

Parameters:
reference - The JNDI Reference to be assigned.

getReference

public Reference getReference()
                                    throws NamingException
Returns the JNDI Reference.

Returns:
The JNDI Reference.
Throws:
NamingException

getRecordFactory

public RecordFactory getRecordFactory()
                               throws ResourceException
No support for record.

Throws:
ResourceException

getMetaData

public ResourceAdapterMetaData getMetaData()
                                    throws ResourceException
The JdoConnectionFactory manages its metadata on its own.

Throws:
ResourceException

getAdapterVersion

public java.lang.String getAdapterVersion()
Gives access to the adapter version metadata for the JDO.

Returns:
The JDO adapter version.

getAdapterVendorName

public java.lang.String getAdapterVendorName()
Gives access to the adapter vendor name metadata for the JDO.

Returns:
The JDO adapter vendor name.

getAdapterName

public java.lang.String getAdapterName()
Gives access to the adapter name metadata for the JDO.

Returns:
The JDO adapter name.

getAdapterShortDescription

public java.lang.String getAdapterShortDescription()
Gives access to a short description of the JDO adapter.

Returns:
The JDO short description.

getSpecVersion

public java.lang.String getSpecVersion()
Gives access to the specification version of the JDO.

Returns:
The JDO specification version.

getInteractionSpecsSupported

public java.lang.String[] getInteractionSpecsSupported()
No interaction is supported by the JDO adapter.


supportsExecuteWithInputAndOutputRecord

public boolean supportsExecuteWithInputAndOutputRecord()
No support for record.


supportsExecuteWithInputRecordOnly

public boolean supportsExecuteWithInputRecordOnly()
No support for record.


supportsLocalTransactionDemarcation

public boolean supportsLocalTransactionDemarcation()
Yes, it does support local transaction demarcation.


getPersistenceManager

public PersistenceManager getPersistenceManager()

getPersistenceManager

public PersistenceManager getPersistenceManager(java.lang.String s,
                                                java.lang.String s1)

setConnectionUserName

public void setConnectionUserName(java.lang.String s)

getConnectionUserName

public java.lang.String getConnectionUserName()

setConnectionPassword

public void setConnectionPassword(java.lang.String s)

setConnectionURL

public void setConnectionURL(java.lang.String s)

getConnectionURL

public java.lang.String getConnectionURL()

setConnectionDriverName

public void setConnectionDriverName(java.lang.String s)

getConnectionDriverName

public java.lang.String getConnectionDriverName()

setConnectionFactoryName

public void setConnectionFactoryName(java.lang.String s)

getConnectionFactoryName

public java.lang.String getConnectionFactoryName()

setConnectionFactory

public void setConnectionFactory(java.lang.Object o)

getConnectionFactory

public java.lang.Object getConnectionFactory()

setConnectionFactory2Name

public void setConnectionFactory2Name(java.lang.String s)

getConnectionFactory2Name

public java.lang.String getConnectionFactory2Name()

setConnectionFactory2

public void setConnectionFactory2(java.lang.Object o)

getConnectionFactory2

public java.lang.Object getConnectionFactory2()

setMultithreaded

public void setMultithreaded(boolean b)

getMultithreaded

public boolean getMultithreaded()

setOptimistic

public void setOptimistic(boolean b)

getOptimistic

public boolean getOptimistic()

setRetainValues

public void setRetainValues(boolean b)

getRetainValues

public boolean getRetainValues()

setRestoreValues

public void setRestoreValues(boolean b)

getRestoreValues

public boolean getRestoreValues()

setNontransactionalRead

public void setNontransactionalRead(boolean b)

getNontransactionalRead

public boolean getNontransactionalRead()

setNontransactionalWrite

public void setNontransactionalWrite(boolean b)

getNontransactionalWrite

public boolean getNontransactionalWrite()

setIgnoreCache

public void setIgnoreCache(boolean b)

getIgnoreCache

public boolean getIgnoreCache()

getMaxPool

public int getMaxPool()

setMaxPool

public void setMaxPool(int i)

getMinPool

public int getMinPool()

setMinPool

public void setMinPool(int i)

getMsWait

public int getMsWait()

setMsWait

public void setMsWait(int i)

getProperties

public java.util.Properties getProperties()

supportedOptions

public java.util.Collection supportedOptions()