T
- type of object that the Service works with, for example Campaign, AdGroup, etc.OperationT
- type of the com.google.api.adwords.v201409.cm.Operation specific for
the object T for example: CampaignOperation, AdGroupOperation, etc.S
- the service interface class. This is a class representing a SOAP service.
Implementation is not thread-safe, because AdWordsSession and Apache Axis service objects are not thread-safe.
public abstract class AbstractGetMutateDelegate<T,OperationT extends com.google.api.ads.adwords.axis.v201409.cm.Operation,S> extends AbstractGetDelegate<T,S>
Modifier | Constructor and Description |
---|---|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
Class<T> classT,
Class<OperationT> classOperationT,
Class<S> classS)
Constructor without fields, used in services that do not support Generic Selectors.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
Class<T> classT,
Class<OperationT> classOperationT,
Class<S> classS,
String mutateMethodName)
Constructor without fields, used in services that do not support Generic Selectors.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
Class<T> classT,
Class<OperationT> classOperationT,
S service)
Constructor without fields, used in services that do not support Generic Selectors
and with custom service.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
Class<T> classT,
Class<OperationT> classOperationT,
S service,
String mutateMethodName)
Constructor without fields, used in services that do not support Generic Selectors
and with custom service.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
List<? extends SelectorFields.FieldType<T>> selectorFields,
Class<T> classT,
Class<OperationT> classOperationT,
Class<S> classS)
Constructor with fields, used in services that support Generic Selectors.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
List<? extends SelectorFields.FieldType<T>> selectorFields,
Class<T> classT,
Class<OperationT> classOperationT,
Class<S> classS,
String mutateMethodName)
Constructor with fields, used in services that support Generic Selectors.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
List<? extends SelectorFields.FieldType<T>> selectorFields,
Class<T> classT,
Class<OperationT> classOperationT,
S service)
Constructor with fields, used in services that support Generic Selectors.
|
protected |
AbstractGetMutateDelegate(AdWordsSession adWordsSession,
List<? extends SelectorFields.FieldType<T>> selectorFields,
Class<T> classT,
Class<OperationT> classOperationT,
S service,
String mutateMethodName)
Constructor with fields, used in services that support Generic Selectors.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
insert(List<T> list)
Encapsulates one
ADD mutate operation per item on the list. |
T |
insert(T object)
Encapsulates one
ADD mutate operation for the object. |
protected Object |
mutate(List<OperationT> operations)
Method to execute by reflection
getService().mutate(operations) . |
List<T> |
remove(List<T> list)
Encapsulates one
REMOVE mutate operation per item on the list. |
T |
remove(T object)
Encapsulates one
REMOVE mutate operation for the object. |
List<T> |
update(List<T> list)
Encapsulates one
SET mutate operation per item on the list. |
T |
update(T object)
Encapsulates one
SET mutate operation for the object. |
createSelectorBuilder, get, get, get, getByField, getByField, getByField, getByField, getByFieldContainsAny, getClassT, getOneByField, getPage, setGetMethodName
getAdWordsSession, getService
protected AbstractGetMutateDelegate(AdWordsSession adWordsSession, Class<T> classT, Class<OperationT> classOperationT, Class<S> classS)
adWordsSession
- the adWordsSession
to use with the serviceclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTclassS
- the service interface class for the SOAP serviceprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, Class<T> classT, Class<OperationT> classOperationT, Class<S> classS, String mutateMethodName)
adWordsSession
- the adWordsSession
to use with the serviceclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTclassS
- the service interface class for the SOAP servicemutateMethodName
- a custom mutate method nameprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, Class<T> classT, Class<OperationT> classOperationT, S service)
adWordsSession
- the adWordsSession
to use with the serviceclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTservice
- the custom service class for the SOAP serviceprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, Class<T> classT, Class<OperationT> classOperationT, S service, String mutateMethodName)
adWordsSession
- the adWordsSession
to use with the serviceclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTservice
- the custom service class for the SOAP servicemutateMethodName
- a custom mutate method nameprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, List<? extends SelectorFields.FieldType<T>> selectorFields, Class<T> classT, Class<OperationT> classOperationT, Class<S> classS)
adWordsSession
- the adWordsSession
to use with the serviceselectorFields
- for the Generic Selectors using the SelectorField classclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTclassS
- the service interface class for the SOAP serviceprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, List<? extends SelectorFields.FieldType<T>> selectorFields, Class<T> classT, Class<OperationT> classOperationT, Class<S> classS, String mutateMethodName)
adWordsSession
- the adWordsSession
to use with the serviceselectorFields
- for the Generic Selectors using the SelectorField classclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTclassS
- the service interface class for the SOAP servicemutateMethodName
- a custom mutate method nameprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, List<? extends SelectorFields.FieldType<T>> selectorFields, Class<T> classT, Class<OperationT> classOperationT, S service)
adWordsSession
- the adWordsSession
to use with the serviceselectorFields
- for the Generic Selectors using the SelectorField classclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTservice
- the custom service class for the SOAP serviceprotected AbstractGetMutateDelegate(AdWordsSession adWordsSession, List<? extends SelectorFields.FieldType<T>> selectorFields, Class<T> classT, Class<OperationT> classOperationT, S service, String mutateMethodName)
adWordsSession
- the adWordsSession
to use with the serviceselectorFields
- for the Generic Selectors using the SelectorField classclassT
- type of object that the Service works with, for example Campaign, AdGroup, etc.classOperationT
- sub-class of the
com.google.api.adwords.v201409.cm.Operation specific for classTservice
- the custom service class for the SOAP servicemutateMethodName
- a custom mutate method nameprotected Object mutate(List<OperationT> operations) throws RemoteException
getService().mutate(operations)
.operations
- a ListUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic List<T> insert(List<T> list) throws RemoteException
ADD
mutate operation per item on the list.list
- a list of T object to insertUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic T insert(T object) throws RemoteException
ADD
mutate operation for the object.object
- the T object to insertUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic List<T> update(List<T> list) throws RemoteException
SET
mutate operation per item on the list.list
- a list of T object to updateUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic T update(T object) throws RemoteException
SET
mutate operation for the object.object
- the T object to updateUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic List<T> remove(List<T> list) throws RemoteException
REMOVE
mutate operation per item on the list.list
- a list of T object to removeUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionspublic T remove(T object) throws RemoteException
REMOVE
mutate operation for the object.object
- the T object to removeUtilityLibraryException
- if there is an error in the reflection callRemoteException
- for communication-related exceptionsCopyright © 2015. All Rights Reserved.