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(java.lang.Class<? extends SObject> clazz, java.lang.String id)
           
 DescribeGlobal describeGlobal()
           
 DescribeLayout describeLayout(java.lang.String sobjectName)
           
 DescribeSobject describeSobject(java.lang.String sobjectName)
           
<T extends SObject>
T
get(java.lang.Class<T> clazz, java.lang.String id)
           
 QueryResult query(java.lang.String query)
           
 SearchResult recent()
           
 SearchResult search(java.lang.String search)
           
 SObjectResult update(SObject sobject, java.lang.String id)
           
 

Method Detail

describeGlobal

DescribeGlobal describeGlobal()
                              throws java.io.IOException,
                                     RestApiException
Throws:
java.io.IOException
RestApiException

describeSobject

DescribeSobject describeSobject(java.lang.String sobjectName)
                                throws java.io.IOException,
                                       RestApiException
Throws:
java.io.IOException
RestApiException

describeLayout

DescribeLayout describeLayout(java.lang.String sobjectName)
                              throws java.io.IOException,
                                     RestApiException
Throws:
java.io.IOException
RestApiException

create

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

update

SObjectResult update(SObject sobject,
                     java.lang.String id)
                     throws java.io.IOException,
                            RestApiException
Throws:
java.io.IOException
RestApiException

delete

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

get

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

query

QueryResult query(java.lang.String query)
                  throws java.io.IOException,
                         RestApiException
Throws:
java.io.IOException
RestApiException

search

SearchResult search(java.lang.String search)
                    throws java.io.IOException,
                           RestApiException
Throws:
java.io.IOException
RestApiException

recent

SearchResult recent()
                    throws java.io.IOException,
                           RestApiException
Throws:
java.io.IOException
RestApiException


Copyright © 2011. All Rights Reserved.