com.sleepycat.je.jca.ra
Class JEConnection
java.lang.Object
com.sleepycat.je.jca.ra.JEConnection
- All Implemented Interfaces:
- Closeable
public class JEConnection
- extends Object
- implements Closeable
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.
Constructor Summary |
JEConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEConnection
public JEConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc)
setManagedConnection
protected void setManagedConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc,
com.sleepycat.je.jca.ra.JELocalTransaction lt)
getEnvironment
public Environment getEnvironment()
openDatabase
public Database openDatabase(String name,
DatabaseConfig config)
throws DatabaseException
- Throws:
DatabaseException
openSecondaryDatabase
public SecondaryDatabase openSecondaryDatabase(String name,
Database primaryDatabase,
SecondaryConfig config)
throws DatabaseException
- Throws:
DatabaseException
removeDatabase
public void removeDatabase(String databaseName)
throws DatabaseException
- Throws:
DatabaseException
truncateDatabase
public long truncateDatabase(String databaseName,
boolean returnCount)
throws DatabaseException
- Throws:
DatabaseException
getTransaction
public Transaction getTransaction()
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
close
public void close()
- Specified by:
close
in interface Closeable
Copyright (c) 2004-2011 Oracle. All rights reserved.