public class BaseGraphQLMutation extends Object implements Serializable, IGraphQLMutation
Constructor and Description |
---|
BaseGraphQLMutation(String operationName,
InputDataSenderBuilder inputObject,
IDataSenderBuilder... returnObject)
Constructor, passing in multiple return objects to build the query
|
BaseGraphQLMutation(String operationName,
InputDataSenderBuilder inputObject,
IDataSenderBuilder returnObject)
Constructor, passing in everything required to build the query
|
public BaseGraphQLMutation(String operationName, InputDataSenderBuilder inputObject, IDataSenderBuilder returnObject)
operationName
- String, operation nameinputObject
- InputDataSenderBuilder containing the input to pass to the mutationreturnObject
- IDataSenderBuilder containing the query settingspublic BaseGraphQLMutation(String operationName, InputDataSenderBuilder inputObject, IDataSenderBuilder... returnObject)
operationName
- String, operation nameinputObject
- InputDataSenderBuilder containing the input to pass to the mutationreturnObject
- IDataSenderBuilder containing the query settingspublic String getOperationName()
getOperationName
in interface IGraphQLMutation
public List<IDataSenderBuilder> getReturnObjects()
getReturnObjects
in interface IGraphQLMutation
public IDataSenderBuilder getFirstReturnObject()
getFirstReturnObject
in interface IGraphQLMutation
public IGraphQLMutation addReturnObject(IDataSenderBuilder returnObject)
addReturnObject
in interface IGraphQLMutation
returnObject
- IDataSenderBuilder to addpublic IGraphQLMutation removeReturnObject(IDataSenderBuilder returnObject)
removeReturnObject
in interface IGraphQLMutation
returnObject
- IDataSenderBuilder to removepublic InputDataSenderBuilder getInputObject()
getInputObject
in interface IGraphQLMutation
public String returnQuery()
IGraphQLMutation
returnQuery
in interface IGraphQLMutation
public Map<String,Object> getInputFieldsMap()
IGraphQLMutation
InputDataSenderBuilder.getFieldsMap()
getInputFieldsMap
in interface IGraphQLMutation
public void setInputFieldsMap(Map<String,Object> fieldsMap)
IGraphQLMutation
InputDataSenderBuilder.setFieldsMap(Map)
setInputFieldsMap
in interface IGraphQLMutation
fieldsMap
- Map of fields and values to set via the mutationpublic InputDataSenderBuilder addInputField(String field, String value)
IGraphQLMutation
InputDataSenderBuilder.addField(String, Object)
addInputField
in interface IGraphQLMutation
field
- String field namevalue
- Object value to setpublic InputDataSenderBuilder addInputField(WWFieldsAttributesInterface field, Object value) throws WWException
IGraphQLMutation
InputDataSenderBuilder.addField(WWFieldsAttributesInterface, Object)
addInputField
in interface IGraphQLMutation
field
- WWFieldsAttributesInterface enum, whose label property is the name of the field to set via the mutationvalue
- Object value to setWWException
- containing an error message, if the value is a different data type to what the enum expectspublic InputDataSenderBuilder removeInputField(String field)
IGraphQLMutation
InputDataSenderBuilder.removeField(String)
removeInputField
in interface IGraphQLMutation
field
- String field namepublic InputDataSenderBuilder removeInputField(WWFieldsAttributesInterface field)
IGraphQLMutation
InputDataSenderBuilder.removeField(WWFieldsAttributesInterface)
removeInputField
in interface IGraphQLMutation
field
- WWFieldsAttributesInterface enum, whose label property is the name of the field to set via the mutationpublic String getReturnObjectName()
IGraphQLMutation
ObjectDataSenderBuilder.getObjectName()
getReturnObjectName
in interface IGraphQLMutation
public void setReturnObjectName(String objectName)
IGraphQLMutation
ObjectDataSenderBuilder.setObjectName(String)
setReturnObjectName
in interface IGraphQLMutation
objectName
- the objectName property from queryObject propertypublic List<String> getReturnFieldsList()
IGraphQLMutation
ObjectDataSenderBuilder.getFieldsList()
getReturnFieldsList
in interface IGraphQLMutation
public void setReturnFieldsList(List<String> fieldsList)
IGraphQLMutation
ObjectDataSenderBuilder.setFieldsList(List)
setReturnFieldsList
in interface IGraphQLMutation
fieldsList
- List of String fields in the queryObject of this Querypublic ObjectDataSenderBuilder addReturnField(String field)
IGraphQLMutation
ObjectDataSenderBuilder.addField(String)
addReturnField
in interface IGraphQLMutation
field
- String field to add to the queryObject of this Querypublic ObjectDataSenderBuilder addReturnField(WWFieldsAttributesInterface field)
IGraphQLMutation
ObjectDataSenderBuilder.addField(WWFieldsAttributesInterface)
addReturnField
in interface IGraphQLMutation
field
- WWFIeldAttributesInterface field to add to the queryObject of this Querypublic ObjectDataSenderBuilder removeReturnField(String field)
IGraphQLMutation
ObjectDataSenderBuilder.removeField(String)
removeReturnField
in interface IGraphQLMutation
field
- String field to remove from the queryObject of this Querypublic ObjectDataSenderBuilder removeReturnField(WWFieldsAttributesInterface field)
IGraphQLMutation
ObjectDataSenderBuilder.removeField(WWFieldsAttributesInterface)
removeReturnField
in interface IGraphQLMutation
field
- WWFieldsAttributesInterface field to remove from the queryObject of this Querypublic List<IDataSenderBuilder> getReturnChildren()
IGraphQLMutation
ObjectDataSenderBuilder.getChildren()
getReturnChildren
in interface IGraphQLMutation
public ObjectDataSenderBuilder setReturnChildren(List<IDataSenderBuilder> children)
IGraphQLMutation
ObjectDataSenderBuilder.setChildren(List)
setReturnChildren
in interface IGraphQLMutation
children
- List of DataSenderBuilders corresponding to the children of the queryObject of this Querypublic ObjectDataSenderBuilder addReturnChild(IDataSenderBuilder child)
IGraphQLMutation
ObjectDataSenderBuilder.addChild(IDataSenderBuilder)
addReturnChild
in interface IGraphQLMutation
child
- DataSenderBuilder for the child to be added to the queryObject of this Querypublic ObjectDataSenderBuilder removeReturnChild(IDataSenderBuilder child)
IGraphQLMutation
ObjectDataSenderBuilder.removeChild(IDataSenderBuilder)
removeReturnChild
in interface IGraphQLMutation
child
- DataSenderBuilder for the child to be removed from the queryObject of this Querypublic int hashCode()
hashCode
in interface IGraphQLMutation
hashCode
in class Object
Copyright © 2018 OpenNTF. All rights reserved.