public class JDOConnectionImpl extends Object implements javax.jdo.datastore.JDOConnection
| Modifier and Type | Field and Description |
|---|---|
protected org.datanucleus.store.NucleusConnection |
nucConn
Underlying NucleusConnection providing the connection.
|
| Constructor and Description |
|---|
JDOConnectionImpl(org.datanucleus.store.NucleusConnection nconn)
Constructor taking the underlying NucleusConnection that provides the datastore access.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method to close the connection.
|
Object |
getNativeConnection()
Accessor for the native connection for this datastore.
|
protected void |
throwExceptionNotAvailable()
Throw a JDOUserException that the connection is no longer available.
|
protected void |
throwExceptionUnsupportedOperation(String methodName)
Convenience method that throws a JDOUserException that the specified method name is not supported.
|
protected org.datanucleus.store.NucleusConnection nucConn
public JDOConnectionImpl(org.datanucleus.store.NucleusConnection nconn)
nconn - Underlying connectionpublic void close()
close in interface javax.jdo.datastore.JDOConnectionpublic Object getNativeConnection()
getNativeConnection in interface javax.jdo.datastore.JDOConnectionprotected void throwExceptionNotAvailable()
protected void throwExceptionUnsupportedOperation(String methodName)
methodName - Name of the methodCopyright © 2020. All rights reserved.