|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.force.sdk.jpa.NativeConnection
public class NativeConnection
Connection class that provides connections to native Force.com APIs (SOAP Web services API, Metadata API, and Bulk API).
| Constructor Summary | |
|---|---|
NativeConnection(org.datanucleus.store.connection.ManagedConnection connection)
Instantiates a native connection. |
|
| Method Summary | |
|---|---|
void |
close()
Closes all API connections and resets configs. |
com.sforce.async.BulkConnection |
getBulkConnection()
|
com.sforce.soap.metadata.MetadataConnection |
getMetadataConnection()
|
Object |
getNativeConnection()
|
com.sforce.soap.partner.PartnerConnection |
getPartnerConnection()
|
boolean |
isAvailable()
Returns whether the connection has been instantiated (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeConnection(org.datanucleus.store.connection.ManagedConnection connection)
ForceManagedConnection.
connection - The ForceManagedConnection object that will be used for all API connections| Method Detail |
|---|
public void close()
close in interface org.datanucleus.store.NucleusConnectionpublic Object getNativeConnection()
getNativeConnection in interface org.datanucleus.store.NucleusConnectionpublic boolean isAvailable()
isAvailable in interface org.datanucleus.store.NucleusConnectiontrue if the connection is not nullpublic com.sforce.soap.partner.PartnerConnection getPartnerConnection()
public com.sforce.soap.metadata.MetadataConnection getMetadataConnection()
throws com.sforce.ws.ConnectionException
com.sforce.ws.ConnectionException - thrown if a connection cannot be instantiated
public com.sforce.async.BulkConnection getBulkConnection()
throws com.sforce.ws.ConnectionException,
com.sforce.async.AsyncApiException
com.sforce.ws.ConnectionException - thrown if a connection cannot be instantiated
com.sforce.async.AsyncApiException - thrown if there are problems with the connection config
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||