org.enhydra.instantdb.jdbc
Interface ConnectionExtensions


public interface ConnectionExtensions

Defines the extensions that InstantDB provides to the normal Connection interface.


Method Summary
 java.lang.String getDatabaseId()
          Retrieves a unique String identifing an InstantDB database.
 java.lang.Object getLastValueInserted(java.lang.String tableName, java.lang.String columnName)
          Retrieves the last value inserted in a partcular column of a table.
 java.util.Properties getProperties()
          Returns the Properties object passed to this Connection when it was created by the DriverManager.
 int prepare()
          Tells a connection to prepare before a commit.
 void startGlobalTransaction(javax.transaction.xa.Xid xid)
          Informs a connection that it is now part of a Global transaction.
 

Method Detail

getProperties

public java.util.Properties getProperties()
                                   throws java.sql.SQLException
Returns the Properties object passed to this Connection when it was created by the DriverManager.

getLastValueInserted

public java.lang.Object getLastValueInserted(java.lang.String tableName,
                                             java.lang.String columnName)
                                      throws java.sql.SQLException
Retrieves the last value inserted in a partcular column of a table.

startGlobalTransaction

public void startGlobalTransaction(javax.transaction.xa.Xid xid)
                            throws javax.transaction.xa.XAException
Informs a connection that it is now part of a Global transaction.

prepare

public int prepare()
            throws javax.transaction.xa.XAException
Tells a connection to prepare before a commit. Should behave in the same way as javax.transaction.xa.XAResource.prepare().

getDatabaseId

public java.lang.String getDatabaseId()
                               throws java.sql.SQLException
Retrieves a unique String identifing an InstantDB database.