com.sleepycat.je.jca.ra
Class JEConnection
java.lang.Object
com.sleepycat.je.jca.ra.JEConnection
public class JEConnection
- extends java.lang.Object
A JEConnection provides access to JE services. See
<JEHOME>/examples/jca/HOWTO-**.txt and
<JEHOME>/examples/jca/simple/SimpleBean.java for more information on
how to build the resource adaptor and use a JEConnection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEConnection
public JEConnection(JEManagedConnection mc)
setManagedConnection
protected void setManagedConnection(JEManagedConnection mc,
JELocalTransaction lt)
getEnvironment
public Environment getEnvironment()
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
openDatabase
public Database openDatabase(java.lang.String name,
DatabaseConfig config)
throws DatabaseException
- Throws:
DatabaseException
openSecondaryDatabase
public SecondaryDatabase openSecondaryDatabase(java.lang.String name,
Database primaryDatabase,
SecondaryConfig config)
throws DatabaseException
- Throws:
DatabaseException
removeDatabase
public void removeDatabase(java.lang.String databaseName)
throws DatabaseException
- Throws:
DatabaseException
truncateDatabase
public long truncateDatabase(java.lang.String databaseName,
boolean returnCount)
throws DatabaseException
- Throws:
DatabaseException
getTransaction
public Transaction getTransaction()
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
close
public void close()
throws JEException
- Throws:
JEException