org.objectweb.speedo.jca
Class JdoConnection

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

public class JdoConnection
extends java.lang.Object

Author:
P. Dechamboux

Method Summary
 void close()
          Closes this Connection.
 Interaction createInteraction()
          No support for Interaction.
 Transaction currentTransaction()
           
 void deletePersistent(java.lang.Object o)
           
 void deletePersistentAll(java.util.Collection collection)
           
 void deletePersistentAll(java.lang.Object[] objects)
           
 void evict(java.lang.Object o)
           
 void evictAll()
           
 void evictAll(java.util.Collection collection)
           
 void evictAll(java.lang.Object[] objects)
           
 boolean getAutoCommit()
          Gets the connection auto-commit mode.
 java.lang.String getEISProductName()
          Returns the name of this storage sub-system.
 java.lang.String getEISProductVersion()
          This is the same version number as the adapter.
 Extent getExtent(java.lang.Class aClass, boolean b)
           
 boolean getIgnoreCache()
           
 LocalTransaction getLocalTransaction()
           
 ConnectionMetaData getMetaData()
          The JdoConnection manages the metadata on its own.
 boolean getMultithreaded()
           
 java.lang.Object getObjectById(java.lang.Object o, boolean b)
           
 java.lang.Object getObjectId(java.lang.Object o)
           
 java.lang.Class getObjectIdClass(java.lang.Class aClass)
           
 PersistenceManagerFactory getPersistenceManagerFactory()
           
 ResultSetInfo getResultSetInfo()
          No support for ResultSet.
 java.lang.Object getTransactionalObjectId(java.lang.Object o)
           
 java.lang.String getUserName()
          No support for user name.
 java.lang.Object getUserObject()
           
 boolean isClosed()
           
 void makeNontransactional(java.lang.Object o)
           
 void makeNontransactionalAll(java.util.Collection collection)
           
 void makeNontransactionalAll(java.lang.Object[] objects)
           
 void makePersistent(java.lang.Object o)
           
 void makePersistentAll(java.util.Collection collection)
           
 void makePersistentAll(java.lang.Object[] objects)
           
 void makeTransactional(java.lang.Object o)
           
 void makeTransactionalAll(java.util.Collection collection)
           
 void makeTransactionalAll(java.lang.Object[] objects)
           
 void makeTransient(java.lang.Object o)
           
 void makeTransientAll(java.util.Collection collection)
           
 void makeTransientAll(java.lang.Object[] objects)
           
 java.lang.Object newObjectIdInstance(java.lang.Class aClass, java.lang.String s)
           
 Query newQuery()
           
 Query newQuery(java.lang.Class aClass)
           
 Query newQuery(java.lang.Class aClass, java.util.Collection collection)
           
 Query newQuery(java.lang.Class aClass, java.util.Collection collection, java.lang.String s)
           
 Query newQuery(java.lang.Class aClass, java.lang.String s)
           
 Query newQuery(java.lang.Object o)
           
 Query newQuery(java.lang.String s, java.lang.Object o)
           
 void refresh(java.lang.Object o)
           
 void refreshAll()
           
 void refreshAll(java.util.Collection collection)
           
 void refreshAll(java.lang.Object[] objects)
           
 void retrieve(java.lang.Object o)
           
 void retrieveAll(java.util.Collection collection)
           
 void retrieveAll(java.lang.Object[] objects)
           
 void setAutoCommit(boolean b)
          Sets the connection to the relevant auto-commit mode.
 void setIgnoreCache(boolean b)
           
 void setMultithreaded(boolean b)
           
 void setUserObject(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInteraction

public Interaction createInteraction()
                              throws ResourceException
No support for Interaction.

Throws:
ResourceException

getLocalTransaction

public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Throws:
ResourceException

getMetaData

public ConnectionMetaData getMetaData()
                               throws ResourceException
The JdoConnection manages the metadata on its own.

Throws:
ResourceException

getResultSetInfo

public ResultSetInfo getResultSetInfo()
                               throws ResourceException
No support for ResultSet.

Throws:
ResourceException

close

public void close()
Closes this Connection. Dissociates from the ManagedConnection to which it is linked.


setAutoCommit

public void setAutoCommit(boolean b)
                   throws ResourceException
Sets the connection to the relevant auto-commit mode.

Throws:
ResourceException

getAutoCommit

public boolean getAutoCommit()
                      throws ResourceException
Gets the connection auto-commit mode.

Throws:
ResourceException

getEISProductName

public java.lang.String getEISProductName()
                                   throws ResourceException
Returns the name of this storage sub-system.

Returns:
The storage sub-system name.
Throws:
ResourceException

getEISProductVersion

public java.lang.String getEISProductVersion()
                                      throws ResourceException
This is the same version number as the adapter.

Returns:
The storage sub-system version.
Throws:
ResourceException

getUserName

public java.lang.String getUserName()
                             throws ResourceException
No support for user name.

Returns:
The empty string.
Throws:
ResourceException

isClosed

public boolean isClosed()

currentTransaction

public Transaction currentTransaction()

evict

public void evict(java.lang.Object o)

evictAll

public void evictAll(java.lang.Object[] objects)

evictAll

public void evictAll(java.util.Collection collection)

evictAll

public void evictAll()

refresh

public void refresh(java.lang.Object o)

refreshAll

public void refreshAll(java.lang.Object[] objects)

refreshAll

public void refreshAll(java.util.Collection collection)

refreshAll

public void refreshAll()

newQuery

public Query newQuery()

newQuery

public Query newQuery(java.lang.Object o)

newQuery

public Query newQuery(java.lang.String s,
                      java.lang.Object o)

newQuery

public Query newQuery(java.lang.Class aClass)

newQuery

public Query newQuery(java.lang.Class aClass,
                      java.util.Collection collection)

newQuery

public Query newQuery(java.lang.Class aClass,
                      java.lang.String s)

newQuery

public Query newQuery(java.lang.Class aClass,
                      java.util.Collection collection,
                      java.lang.String s)

getExtent

public Extent getExtent(java.lang.Class aClass,
                        boolean b)

getObjectById

public java.lang.Object getObjectById(java.lang.Object o,
                                      boolean b)

getObjectId

public java.lang.Object getObjectId(java.lang.Object o)

getTransactionalObjectId

public java.lang.Object getTransactionalObjectId(java.lang.Object o)

newObjectIdInstance

public java.lang.Object newObjectIdInstance(java.lang.Class aClass,
                                            java.lang.String s)

makePersistent

public void makePersistent(java.lang.Object o)

makePersistentAll

public void makePersistentAll(java.lang.Object[] objects)

makePersistentAll

public void makePersistentAll(java.util.Collection collection)

deletePersistent

public void deletePersistent(java.lang.Object o)

deletePersistentAll

public void deletePersistentAll(java.lang.Object[] objects)

deletePersistentAll

public void deletePersistentAll(java.util.Collection collection)

makeTransient

public void makeTransient(java.lang.Object o)

makeTransientAll

public void makeTransientAll(java.lang.Object[] objects)

makeTransientAll

public void makeTransientAll(java.util.Collection collection)

makeTransactional

public void makeTransactional(java.lang.Object o)

makeTransactionalAll

public void makeTransactionalAll(java.lang.Object[] objects)

makeTransactionalAll

public void makeTransactionalAll(java.util.Collection collection)

makeNontransactional

public void makeNontransactional(java.lang.Object o)

makeNontransactionalAll

public void makeNontransactionalAll(java.lang.Object[] objects)

makeNontransactionalAll

public void makeNontransactionalAll(java.util.Collection collection)

retrieve

public void retrieve(java.lang.Object o)

retrieveAll

public void retrieveAll(java.util.Collection collection)

retrieveAll

public void retrieveAll(java.lang.Object[] objects)

setUserObject

public void setUserObject(java.lang.Object o)

getUserObject

public java.lang.Object getUserObject()

getPersistenceManagerFactory

public PersistenceManagerFactory getPersistenceManagerFactory()

getObjectIdClass

public java.lang.Class getObjectIdClass(java.lang.Class aClass)

setMultithreaded

public void setMultithreaded(boolean b)

getMultithreaded

public boolean getMultithreaded()

setIgnoreCache

public void setIgnoreCache(boolean b)

getIgnoreCache

public boolean getIgnoreCache()