|
||||||||||
| 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 each Force.com API (SOAP, Metadata, and Bulk).
| Constructor Summary | |
|---|---|
NativeConnection(org.datanucleus.store.connection.ManagedConnection connection)
Instantiate a Native connection, this must be called with a ForceManagedConnection. |
|
| Method Summary | |
|---|---|
void |
close()
Close all API connections and reset 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)
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.NucleusConnectionpublic 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 | |||||||||