public class JEConnection extends Object implements Closeable
| Constructor and Description |
|---|
JEConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Environment |
getEnvironment() |
Transaction |
getTransaction() |
Database |
openDatabase(String name,
DatabaseConfig config) |
SecondaryDatabase |
openSecondaryDatabase(String name,
Database primaryDatabase,
SecondaryConfig config) |
void |
removeDatabase(String databaseName) |
protected void |
setManagedConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc,
com.sleepycat.je.jca.ra.JELocalTransaction lt) |
long |
truncateDatabase(String databaseName,
boolean returnCount) |
protected void setManagedConnection(com.sleepycat.je.jca.ra.JEManagedConnection mc,
com.sleepycat.je.jca.ra.JELocalTransaction lt)
public Environment getEnvironment()
public Database openDatabase(String name, DatabaseConfig config) throws DatabaseException
DatabaseExceptionpublic SecondaryDatabase openSecondaryDatabase(String name, Database primaryDatabase, SecondaryConfig config) throws DatabaseException
DatabaseExceptionpublic void removeDatabase(String databaseName) throws DatabaseException
DatabaseExceptionpublic long truncateDatabase(String databaseName, boolean returnCount) throws DatabaseException
DatabaseExceptionpublic Transaction getTransaction() throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.