com.sforce.rest
Class RestConnectionImpl
java.lang.Object
com.sforce.rest.RestConnectionImpl
- All Implemented Interfaces:
- RestConnection
public class RestConnectionImpl
- extends java.lang.Object
- implements RestConnection
RestConnection
- Since:
- 172
- Author:
- gwester
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestConnectionImpl
public RestConnectionImpl(ConnectorConfig config)
throws RestApiException
- Constructor.
- Parameters:
config -
- Throws:
RestApiException
getConfig
public ConnectorConfig getConfig()
describeGlobal
public DescribeGlobal describeGlobal()
throws java.io.IOException,
RestApiException
- Specified by:
describeGlobal in interface RestConnection
- Throws:
java.io.IOException
RestApiException
describeSobject
public DescribeSobject describeSobject(java.lang.String sobjectName)
throws java.io.IOException,
RestApiException
- Specified by:
describeSobject in interface RestConnection
- Throws:
java.io.IOException
RestApiException
describeLayout
public DescribeLayout describeLayout(java.lang.String sobjectName)
throws java.io.IOException,
RestApiException
- Specified by:
describeLayout in interface RestConnection
- Throws:
java.io.IOException
RestApiException
get
public <T extends SObject> T get(java.lang.Class<T> clazz,
java.lang.String id)
throws java.io.IOException,
RestApiException
- Specified by:
get in interface RestConnection
- Throws:
java.io.IOException
RestApiException
create
public SObjectResult create(SObject sobject)
throws java.io.IOException,
RestApiException
- Specified by:
create in interface RestConnection
- Throws:
java.io.IOException
RestApiException
update
public SObjectResult update(SObject sobject,
java.lang.String id)
throws java.io.IOException
- Specified by:
update in interface RestConnection
- Throws:
java.io.IOException
delete
public SObjectResult delete(java.lang.Class<? extends SObject> clazz,
java.lang.String id)
throws java.io.IOException,
RestApiException
- Specified by:
delete in interface RestConnection
- Throws:
java.io.IOException
RestApiException
query
public QueryResult query(java.lang.String query)
throws java.io.IOException,
RestApiException
- Specified by:
query in interface RestConnection
- Throws:
java.io.IOException
RestApiException
search
public SearchResult search(java.lang.String search)
throws java.io.IOException,
RestApiException
- Specified by:
search in interface RestConnection
- Throws:
java.io.IOException
RestApiException
recent
public SearchResult recent()
throws java.io.IOException,
RestApiException
- Specified by:
recent in interface RestConnection
- Throws:
java.io.IOException
RestApiException
Copyright © 2011. All Rights Reserved.