public abstract class BaseGraphQLQuery extends Object implements Serializable, IGraphQLQuery
Constructor and Description |
---|
BaseGraphQLQuery(String operationName,
ObjectDataSenderBuilder queryObject)
Constructor, passing in everything required to build the query
|
public BaseGraphQLQuery(String operationName, ObjectDataSenderBuilder queryObject)
operationName
- String, operation namequeryObject
- ObjectDataSenderBuilder containing the query settingspublic String getOperationName()
getOperationName
in interface IGraphQLQuery
public ObjectDataSenderBuilder getQueryObject()
getQueryObject
in interface IGraphQLQuery
public String returnQuery()
IGraphQLQuery
returnQuery
in interface IGraphQLQuery
public String getObjectName()
IGraphQLQuery
ObjectDataSenderBuilder.getObjectName()
getObjectName
in interface IGraphQLQuery
public void setObjectName(String objectName)
IGraphQLQuery
ObjectDataSenderBuilder.setObjectName(String)
setObjectName
in interface IGraphQLQuery
objectName
- the objectName property from queryObject propertypublic boolean isHasItems()
IGraphQLQuery
ObjectDataSenderBuilder.isHasItems()
isHasItems
in interface IGraphQLQuery
public ObjectDataSenderBuilder setHasItems(boolean hasItems)
IGraphQLQuery
ObjectDataSenderBuilder.setHasItems(boolean)
setHasItems
in interface IGraphQLQuery
hasItems
- whether queryObject includes an items level in returned JSONpublic List<String> getFieldsList()
IGraphQLQuery
ObjectDataSenderBuilder.getFieldsList()
getFieldsList
in interface IGraphQLQuery
public void setFieldsList(List<String> fieldsList)
IGraphQLQuery
ObjectDataSenderBuilder.setFieldsList(List)
setFieldsList
in interface IGraphQLQuery
fieldsList
- List of String fields in the queryObject of this Querypublic ObjectDataSenderBuilder addField(String field)
IGraphQLQuery
ObjectDataSenderBuilder.addField(String)
addField
in interface IGraphQLQuery
field
- String field to add to the queryObject of this Querypublic ObjectDataSenderBuilder addField(WWFieldsAttributesInterface field)
IGraphQLQuery
ObjectDataSenderBuilder.addField(WWFieldsAttributesInterface)
addField
in interface IGraphQLQuery
field
- WWFIeldAttributesInterface field to add to the queryObject of this Querypublic ObjectDataSenderBuilder removeField(String field)
IGraphQLQuery
ObjectDataSenderBuilder.removeField(String)
removeField
in interface IGraphQLQuery
field
- String field to remove from the queryObject of this Querypublic ObjectDataSenderBuilder removeField(WWFieldsAttributesInterface field)
IGraphQLQuery
ObjectDataSenderBuilder.removeField(WWFieldsAttributesInterface)
removeField
in interface IGraphQLQuery
field
- WWFieldsAttributesInterface field to remove from the queryObject of this Querypublic Map<String,Object> getAttributesList()
getAttributesList
in interface IGraphQLQuery
public ObjectDataSenderBuilder setAttributesList(Map<String,Object> attributesList)
IGraphQLQuery
ObjectDataSenderBuilder.setAttributesList(Map)
setAttributesList
in interface IGraphQLQuery
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
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
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
key
- String, attribute name to filter the queryObject of this Querypublic ObjectDataSenderBuilder removeAttribute(WWFieldsAttributesInterface enumName)
IGraphQLQuery
ObjectDataSenderBuilder.removeAttribute(WWFieldsAttributesInterface)
removeAttribute
in interface IGraphQLQuery
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
public ObjectDataSenderBuilder setChildren(List<IDataSenderBuilder> children)
IGraphQLQuery
ObjectDataSenderBuilder.setChildren(List)
setChildren
in interface IGraphQLQuery
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
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
child
- DataSenderBuilder for the child to be removed from the queryObject of this Querypublic ObjectDataSenderBuilder addPageInfo()
IGraphQLQuery
ObjectDataSenderBuilder.addPageInfo()
addPageInfo
in interface IGraphQLQuery
public ObjectDataSenderBuilder addPageInfo(ObjectDataSenderBuilder pageInfoCustom)
IGraphQLQuery
ObjectDataSenderBuilder.addPageInfo(ObjectDataSenderBuilder)
addPageInfo
in interface IGraphQLQuery
pageInfoCustom
- ObjectDataSenderBuilder containing the custom pageInfo fields to return from the queryObject of this Querypublic ObjectDataSenderBuilder removePageInfo()
IGraphQLQuery
ObjectDataSenderBuilder.removePageInfo()
removePageInfo
in interface IGraphQLQuery
Copyright © 2018 OpenNTF. All rights reserved.