com.sleepycat.je.jca.ra
Interface JEConnection
public interface JEConnection
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.
setManagedConnection
void setManagedConnection(JEManagedConnection mc,
JELocalTransaction lt)
getLocalTransaction
JELocalTransaction getLocalTransaction()
setLocalTransaction
void setLocalTransaction(JELocalTransaction txn)
getEnvironment
Environment getEnvironment()
throws ResourceException
- Throws:
ResourceException
openDatabase
Database openDatabase(String name,
DatabaseConfig config)
throws DatabaseException
- Throws:
DatabaseException
openSecondaryDatabase
SecondaryDatabase openSecondaryDatabase(String name,
Database primaryDatabase,
SecondaryConfig config)
throws DatabaseException
- Throws:
DatabaseException
removeDatabase
void removeDatabase(String databaseName)
throws DatabaseException
- Throws:
DatabaseException
truncateDatabase
long truncateDatabase(String databaseName,
boolean returnCount)
throws DatabaseException
- Throws:
DatabaseException
getTransaction
Transaction getTransaction()
throws ResourceException
- Throws:
ResourceException
close
void close()
throws JEException
- Throws:
JEException
Copyright 1996,2008 Oracle. All rights reserved.