com.sforce.rest
Interface RestConnection

All Known Implementing Classes:
RestConnectionImpl

public interface RestConnection

Since:
172
Author:
gwester

Method Summary
 SObjectResult create(SObject sobject)
           
 SObjectResult delete(Class<? extends SObject> clazz, String id)
           
 DescribeGlobal describeGlobal()
           
 DescribeLayout describeLayout(String sobjectName)
           
 DescribeSobject describeSobject(String sobjectName)
           
<T extends SObject>
T
get(Class<T> clazz, String id)
           
 QueryResult query(String query)
           
 SearchResult recent()
           
 SearchResult search(String search)
           
 SObjectResult update(SObject sobject, String id)
           
 

Method Detail

describeGlobal

DescribeGlobal describeGlobal()
                              throws IOException,
                                     RestApiException
Throws:
IOException
RestApiException

describeSobject

DescribeSobject describeSobject(String sobjectName)
                                throws IOException,
                                       RestApiException
Throws:
IOException
RestApiException

describeLayout

DescribeLayout describeLayout(String sobjectName)
                              throws IOException,
                                     RestApiException
Throws:
IOException
RestApiException

create

SObjectResult create(SObject sobject)
                     throws IOException,
                            RestApiException
Throws:
IOException
RestApiException

update

SObjectResult update(SObject sobject,
                     String id)
                     throws IOException,
                            RestApiException
Throws:
IOException
RestApiException

delete

SObjectResult delete(Class<? extends SObject> clazz,
                     String id)
                     throws IOException,
                            RestApiException
Throws:
IOException
RestApiException

get

<T extends SObject> T get(Class<T> clazz,
                          String id)
                      throws IOException,
                             RestApiException
Throws:
IOException
RestApiException

query

QueryResult query(String query)
                  throws IOException,
                         RestApiException
Throws:
IOException
RestApiException

search

SearchResult search(String search)
                    throws IOException,
                           RestApiException
Throws:
IOException
RestApiException

recent

SearchResult recent()
                    throws IOException,
                           RestApiException
Throws:
IOException
RestApiException


Copyright © 2012. All Rights Reserved.