ENTITY_TYPE - the input object value holding typeGETTER_ATTRIBUTE_TYPE - the getter value attribute typeSETTER_ATTRIBUTE_TYPE - the setter attribute argument typepublic abstract class GQLDynamicAttributeGetterSetter<ENTITY_TYPE,GETTER_ATTRIBUTE_TYPE,SETTER_ATTRIBUTE_TYPE> extends GQLAbstractDynamicAttribute<ENTITY_TYPE> implements IGQLDynamicAttributeGetter<ENTITY_TYPE,GETTER_ATTRIBUTE_TYPE>, IGQLDynamicAttributeSetter<ENTITY_TYPE,SETTER_ATTRIBUTE_TYPE>
| Constructor and Description |
|---|
GQLDynamicAttributeGetterSetter()
Constructor
|
GQLDynamicAttributeGetterSetter(String name)
Constructor
|
GQLDynamicAttributeGetterSetter(String entityName,
String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityName()
Get the name of the entity holding this attribute in the GQL schema.
|
void |
setEntityName(String entityName) |
getName, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGetterAttributeType, getValuegetSetterAttributeType, setValuegetEntityType, getNamepublic GQLDynamicAttributeGetterSetter()
public GQLDynamicAttributeGetterSetter(String name)
name - the property name that will be available in GraphQL schemapublic GQLDynamicAttributeGetterSetter(String entityName, String name)
entityName - the name of the entity holding this attribute in the GQL
schema. By default this is the simple name of the entity class
taken from class generics.name - the property name that will be available in GraphQL schemapublic String getEntityName()
getEntityName in interface IGQLDynamicAttributeSetter<ENTITY_TYPE,SETTER_ATTRIBUTE_TYPE>public void setEntityName(String entityName)
entityName - the entityName to setCopyright © 2019. All rights reserved.