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