|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.datanucleus.store.connection.AbstractManagedConnection
com.force.sdk.jpa.ForceManagedConnection
public class ForceManagedConnection
Managed connection class that delegates to the ForceServiceConnector.
Field Summary |
---|
Fields inherited from class org.datanucleus.store.connection.AbstractManagedConnection |
---|
closeOnRelease, commitOnRelease, conn, listeners, locked, useCount |
Constructor Summary | |
---|---|
ForceManagedConnection(ForceServiceConnector connector)
Constructor for a managed connection. |
Method Summary | |
---|---|
void |
close()
Closes all API connections (SOAP, metadata, and bulk) and resets configs. |
com.sforce.async.BulkConnection |
getBulkConnection()
Get the BulkConnection object, connection will be lazily instantiated. |
Object |
getConnection()
Get the PartnerConnection object, connection will be lazily instantiated. |
com.sforce.soap.metadata.MetadataConnection |
getMetadataConnection()
Get the MetadataConnection object, connection will be lazily instantiated. |
String |
getNamespace()
Retrieve the namespace of the Force.com organization. |
Methods inherited from class org.datanucleus.store.connection.AbstractManagedConnection |
---|
addListener, flush, getXAResource, isLocked, lock, release, removeListener, setManagedResource, setPooled, toString, unlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForceManagedConnection(ForceServiceConnector connector)
connector
- a ForceServiceConnector object configured for the org
that the application will run againstMethod Detail |
---|
public void close()
public Object getConnection()
public com.sforce.soap.metadata.MetadataConnection getMetadataConnection() throws com.sforce.ws.ConnectionException
com.sforce.ws.ConnectionException
- thrown if an error occurs during initialization of the connectionpublic com.sforce.async.BulkConnection getBulkConnection() throws com.sforce.ws.ConnectionException, com.sforce.async.AsyncApiException
com.sforce.ws.ConnectionException
- thrown if an error occurs during initialization of the connection
com.sforce.async.AsyncApiException
- thrown if an error occurs during initialization of the connectionpublic String getNamespace() throws com.sforce.ws.ConnectionException
com.sforce.ws.ConnectionException
- thrown if an error occurs during initialization of the connection
(if the connection has not yet been instantiated this method will
first instantiate it)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |