public class BaseGraphQLMultiQuery extends BaseGraphQLQuery
Constructor and Description |
---|
BaseGraphQLMultiQuery(String operationName,
List<ObjectDataSenderBuilder> queryObjects)
Constructor, passing in everything required to build the query
|
BaseGraphQLMultiQuery(String operationName,
ObjectDataSenderBuilder queryObject)
Constructor, passing in everything required to build the query
|
public BaseGraphQLMultiQuery(String operationName, ObjectDataSenderBuilder queryObject)
operationName
- String, operation namequeryObject
- ObjectDataSenderBuilder containing the query settingspublic BaseGraphQLMultiQuery(String operationName, List<ObjectDataSenderBuilder> queryObjects)
operationName
- String, operation namequeryObjects
- List of ObjectDataSenderBuilder containing the query settingspublic String getOperationName()
getOperationName
in interface IGraphQLQuery
getOperationName
in class BaseGraphQLQuery
public ObjectDataSenderBuilder getQueryObject()
getQueryObject
in interface IGraphQLQuery
getQueryObject
in class BaseGraphQLQuery
public List<ObjectDataSenderBuilder> getQueryObjects()
public BaseGraphQLMultiQuery addQueryObject(ObjectDataSenderBuilder queryObject)
queryObject
- ObjectDataSenderBuilder containing the querypublic BaseGraphQLMultiQuery removeQueryObject(ObjectDataSenderBuilder queryObject)
queryObject
- ObjectDataSenderBuilder containing the querypublic ObjectDataSenderBuilder switchQueryObjectIndex(int idx)
idx
- index of the array, or 0 if passed index exceeds boundspublic ObjectDataSenderBuilder switchQueryObject(ObjectDataSenderBuilder queryObject)
queryObject
- ObjectDataSenderBuilder containing the querypublic String returnQuery()
IGraphQLQuery
returnQuery
in interface IGraphQLQuery
returnQuery
in class BaseGraphQLQuery
public String getObjectName()
IGraphQLQuery
ObjectDataSenderBuilder.getObjectName()
getObjectName
in interface IGraphQLQuery
getObjectName
in class BaseGraphQLQuery
public void setObjectName(String objectName)
IGraphQLQuery
ObjectDataSenderBuilder.setObjectName(String)
setObjectName
in interface IGraphQLQuery
setObjectName
in class BaseGraphQLQuery
objectName
- the objectName property from queryObject propertypublic boolean isHasItems()
IGraphQLQuery
ObjectDataSenderBuilder.isHasItems()
isHasItems
in interface IGraphQLQuery
isHasItems
in class BaseGraphQLQuery
public ObjectDataSenderBuilder setHasItems(boolean hasItems)
IGraphQLQuery
ObjectDataSenderBuilder.setHasItems(boolean)
setHasItems
in interface IGraphQLQuery
setHasItems
in class BaseGraphQLQuery
hasItems
- whether queryObject includes an items level in returned JSONpublic List<String> getFieldsList()
IGraphQLQuery
ObjectDataSenderBuilder.getFieldsList()
getFieldsList
in interface IGraphQLQuery
getFieldsList
in class BaseGraphQLQuery
public void setFieldsList(List<String> fieldsList)
IGraphQLQuery
ObjectDataSenderBuilder.setFieldsList(List)
setFieldsList
in interface IGraphQLQuery
setFieldsList
in class BaseGraphQLQuery
fieldsList
- List of String fields in the queryObject of this Querypublic ObjectDataSenderBuilder addField(String field)
IGraphQLQuery
ObjectDataSenderBuilder.addField(String)
addField
in interface IGraphQLQuery
addField
in class BaseGraphQLQuery
field
- String field to add to the queryObject of this Querypublic ObjectDataSenderBuilder addField(WWFieldsAttributesInterface field)
IGraphQLQuery
ObjectDataSenderBuilder.addField(WWFieldsAttributesInterface)
addField
in interface IGraphQLQuery
addField
in class BaseGraphQLQuery
field
- WWFIeldAttributesInterface field to add to the queryObject of this Querypublic ObjectDataSenderBuilder removeField(String field)
IGraphQLQuery
ObjectDataSenderBuilder.removeField(String)
removeField
in interface IGraphQLQuery
removeField
in class BaseGraphQLQuery
field
- String field to remove from the queryObject of this Querypublic ObjectDataSenderBuilder removeField(WWFieldsAttributesInterface field)
IGraphQLQuery
ObjectDataSenderBuilder.removeField(WWFieldsAttributesInterface)
removeField
in interface IGraphQLQuery
removeField
in class BaseGraphQLQuery
field
- WWFieldsAttributesInterface field to remove from the queryObject of this Querypublic Map<String,Object> getAttributesList()
getAttributesList
in interface IGraphQLQuery
getAttributesList
in class BaseGraphQLQuery
public ObjectDataSenderBuilder setAttributesList(Map<String,Object> attributesList)
IGraphQLQuery
ObjectDataSenderBuilder.setAttributesList(Map)
setAttributesList
in interface IGraphQLQuery
setAttributesList
in class BaseGraphQLQuery
attributesList
- Map of attributes used to filter the queryObject of this Querypublic ObjectDataSenderBuilder addAttribute(String key, Object value)
IGraphQLQuery
ObjectDataSenderBuilder.addAttribute(String, Object)
addAttribute
in interface IGraphQLQuery
addAttribute
in class BaseGraphQLQuery
key
- String, attribute name to filter the queryObject of this Queryvalue
- Object, value to filter the queryObject of this Querypublic ObjectDataSenderBuilder addAttribute(WWFieldsAttributesInterface enumName, Object value) throws WWException
IGraphQLQuery
ObjectDataSenderBuilder.addAttribute(WWFieldsAttributesInterface, Object)
addAttribute
in interface IGraphQLQuery
addAttribute
in class BaseGraphQLQuery
enumName
- enum, from which label property will give attribute name to filter the queryObject of this Queryvalue
- Object, value to filter the queryObject of this QueryWWException
- containing an error message, if the value is a different data type to what the enum expectspublic ObjectDataSenderBuilder removeAttribute(String key)
IGraphQLQuery
ObjectDataSenderBuilder.removeAttribute(String)
removeAttribute
in interface IGraphQLQuery
removeAttribute
in class BaseGraphQLQuery
key
- String, attribute name to filter the queryObject of this Querypublic ObjectDataSenderBuilder removeAttribute(WWFieldsAttributesInterface enumName)
IGraphQLQuery
ObjectDataSenderBuilder.removeAttribute(WWFieldsAttributesInterface)
removeAttribute
in interface IGraphQLQuery
removeAttribute
in class BaseGraphQLQuery
enumName
- enum, from which label property will give attribute name to filter the queryObject of this Querypublic List<IDataSenderBuilder> getChildren()
IGraphQLQuery
ObjectDataSenderBuilder.getChildren()
getChildren
in interface IGraphQLQuery
getChildren
in class BaseGraphQLQuery
public ObjectDataSenderBuilder setChildren(List<IDataSenderBuilder> children)
IGraphQLQuery
ObjectDataSenderBuilder.setChildren(List)
setChildren
in interface IGraphQLQuery
setChildren
in class BaseGraphQLQuery
children
- List of DataSenderBuilders corresponding to the children of the queryObject of this Querypublic ObjectDataSenderBuilder addChild(IDataSenderBuilder child)
IGraphQLQuery
ObjectDataSenderBuilder.addChild(IDataSenderBuilder)
addChild
in interface IGraphQLQuery
addChild
in class BaseGraphQLQuery
child
- DataSenderBuilder for the child to be added to the queryObject of this Querypublic ObjectDataSenderBuilder removeChild(IDataSenderBuilder child)
IGraphQLQuery
ObjectDataSenderBuilder.removeChild(IDataSenderBuilder)
removeChild
in interface IGraphQLQuery
removeChild
in class BaseGraphQLQuery
child
- DataSenderBuilder for the child to be removed from the queryObject of this Querypublic ObjectDataSenderBuilder addPageInfo()
IGraphQLQuery
ObjectDataSenderBuilder.addPageInfo()
addPageInfo
in interface IGraphQLQuery
addPageInfo
in class BaseGraphQLQuery
public ObjectDataSenderBuilder addPageInfo(ObjectDataSenderBuilder pageInfoCustom)
IGraphQLQuery
ObjectDataSenderBuilder.addPageInfo(ObjectDataSenderBuilder)
addPageInfo
in interface IGraphQLQuery
addPageInfo
in class BaseGraphQLQuery
pageInfoCustom
- ObjectDataSenderBuilder containing the custom pageInfo fields to return from the queryObject of this Querypublic ObjectDataSenderBuilder removePageInfo()
IGraphQLQuery
ObjectDataSenderBuilder.removePageInfo()
removePageInfo
in interface IGraphQLQuery
removePageInfo
in class BaseGraphQLQuery
public int hashCode()
hashCode
in class BaseGraphQLQuery
Copyright © 2018 OpenNTF. All rights reserved.