com.sleepycat.je.jca.ra
Interface JEConnection
- All Known Implementing Classes:
- JEConnectionImpl
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 javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
openDatabase
Database openDatabase(java.lang.String name,
DatabaseConfig config)
throws DatabaseException
- Throws:
DatabaseException
openSecondaryDatabase
SecondaryDatabase openSecondaryDatabase(java.lang.String name,
Database primaryDatabase,
SecondaryConfig config)
throws DatabaseException
- Throws:
DatabaseException
removeDatabase
void removeDatabase(java.lang.String databaseName)
throws DatabaseException
- Throws:
DatabaseException
truncateDatabase
long truncateDatabase(java.lang.String databaseName,
boolean returnCount)
throws DatabaseException
- Throws:
DatabaseException
getTransaction
Transaction getTransaction()
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
close
void close()
throws JEException
- Throws:
JEException
Copyright 2004,2008 Oracle. All rights reserved.