public abstract class GQLAbstractAttributeMetaData extends GQLAbstractMetaData
| Constructor and Description |
|---|
GQLAbstractAttributeMetaData()
Default constructor
|
GQLAbstractAttributeMetaData(String name)
Constructor passing name and keeping default values for other attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToString(StringBuilder stringBuilder) |
String |
getDescription()
Get the description for the attribute.
|
IGQLDynamicAttributeGetter<?,?> |
getDynamicAttributeGetter()
If this attribute is dynamic then this method returns the getter for
computing the attribute value.
|
IGQLDynamicAttributeSetter<?,?> |
getDynamicAttributeSetter()
If this attribute is dynamic then this method returns the setter for
storing the attribute value.
|
String |
getName()
Get the name for the attribute.
|
boolean |
isDynamic()
Get whether this attribute is dynamic, which means that either a
dynamicAttributeGetter or a dynamicAttributeSetter (or both) is/are set.
|
boolean |
isDynamicAttributeGetter()
Get whether this attribute is a dynamic attribute getter, which means
that a dynamicAttributeGetter is set
|
boolean |
isDynamicAttributeSetter()
Get whether this attribute is a dynamic attribute setter, which means
that a dynamicAttributeSetter is set
|
boolean |
isFilterable()
Get whether this attribute will be available in schema queries filters
for retrieving this attribute parent entity.
|
boolean |
isMandatory()
Get whether this attribute must be provided during save.
|
boolean |
isMandatoryForCreate()
Get whether this attribute must be provided during parent entity
creation.
|
boolean |
isMandatoryForUpdate()
Get whether this attribute must be provided during parent entity update.
|
boolean |
isNullable()
Get whether this attribute can be null.
|
boolean |
isNullableForCreate()
Get whether this attribute can be null at parent entity creation time.
|
boolean |
isNullableForUpdate()
Get whether this attribute can be null at parent entity creation time.
|
boolean |
isReadable()
Get whether this attribute will be available in schema queries for
retrieving this attribute parent entity.
|
boolean |
isSaveable()
Get whether this attribute will be available in schema mutations for
saving this attribute parent entity.
|
GQLAbstractAttributeMetaData |
setDescription(String description)
Set the description for the attribute.
|
GQLAbstractAttributeMetaData |
setDynamicAttributeGetter(IGQLDynamicAttributeGetter<?,?> dynamicAttributeGetter)
If this attribute is dynamic then this method sets the getter for
computing the attribute value.
|
GQLAbstractAttributeMetaData |
setDynamicAttributeSetter(IGQLDynamicAttributeSetter<?,?> dynamicAttributeSetter)
If this attribute is dynamic then this method sets the setter for storing
the attribute value.
|
GQLAbstractAttributeMetaData |
setFilterable(boolean filterable)
Set whether this attribute will be available in schema queries filters
for retrieving this attribute parent entity.
|
GQLAbstractAttributeMetaData |
setMandatory(boolean mandatory)
Set whether this attribute can be null.
|
GQLAbstractAttributeMetaData |
setMandatoryForCreate(boolean mandatoryForCreate)
Set whether this attribute must be provided during parent entity
creation.
|
GQLAbstractAttributeMetaData |
setMandatoryForUpdate(boolean mandatoryForUpdate)
Set whether this attribute must be provided during parent entity update.
|
GQLAbstractAttributeMetaData |
setName(String name)
Set the name for the attribute.
|
GQLAbstractAttributeMetaData |
setNullable(boolean nullable)
Set whether this attribute can be null.
|
GQLAbstractAttributeMetaData |
setNullableForCreate(boolean nullableForCreate)
Set whether this attribute can be null at parent entity creation time.
|
GQLAbstractAttributeMetaData |
setNullableForUpdate(boolean nullableForUpdate)
Set whether this attribute can be null at parent entity creation time.
|
GQLAbstractAttributeMetaData |
setReadable(boolean readable)
Set whether this attribute will be available in schema queries for
retrieving this attribute parent entity.
|
GQLAbstractAttributeMetaData |
setSaveable(boolean saveable)
Set whether this attribute will be available in schema mutations for
saving this attribute parent entity.
|
finalizeToString, toStringpublic GQLAbstractAttributeMetaData()
public GQLAbstractAttributeMetaData(String name)
name - the name for the attribute. This name will be used for
building GraphQL schema : queries, mutations, descriptions
etc.protected void appendToString(StringBuilder stringBuilder)
appendToString in class GQLAbstractMetaDatapublic boolean isNullable()
isNullableForCreate() AND isNullableForUpdate())public GQLAbstractAttributeMetaData setNullable(boolean nullable)
nullableForCreate AND nullableForUpdate to the same
given valuenullable - the nullable to setpublic boolean isMandatory()
isMandatoryForCreate() AND
isMandatoryForUpdate())public GQLAbstractAttributeMetaData setMandatory(boolean mandatory)
mandatoryForCreate AND mandatoryForUpdate to the same
given valuemandatory - the mandatory to setpublic boolean isDynamic()
public boolean isDynamicAttributeSetter()
public boolean isDynamicAttributeGetter()
public String getDescription()
public GQLAbstractAttributeMetaData setDescription(String description)
description - the description to setpublic String getName()
public GQLAbstractAttributeMetaData setName(String name)
name - the name to setpublic boolean isReadable()
true.public GQLAbstractAttributeMetaData setReadable(boolean readable)
true.readable - the readable to setpublic boolean isSaveable()
true.public GQLAbstractAttributeMetaData setSaveable(boolean saveable)
true.saveable - the saveable to setpublic boolean isNullableForCreate()
true.public GQLAbstractAttributeMetaData setNullableForCreate(boolean nullableForCreate)
true.nullableForCreate - the nullableForCreate to setpublic boolean isNullableForUpdate()
true.public GQLAbstractAttributeMetaData setNullableForUpdate(boolean nullableForUpdate)
true.nullableForUpdate - the nullableForUpdate to setpublic boolean isMandatoryForCreate()
isNullable() or isNullableForCreate() methods. Default
is false.public GQLAbstractAttributeMetaData setMandatoryForCreate(boolean mandatoryForCreate)
setNullable(boolean) or setNullableForCreate(boolean)
methods. Default is false.mandatoryForCreate - the mandatoryForCreate to setpublic boolean isMandatoryForUpdate()
isNullable() or isNullableForUpdate() methods. Default
is false.public GQLAbstractAttributeMetaData setMandatoryForUpdate(boolean mandatoryForUpdate)
setNullable(boolean) or setNullableForUpdate(boolean)
methods. Default is false.mandatoryForUpdate - the mandatoryForUpdate to setpublic boolean isFilterable()
true.public GQLAbstractAttributeMetaData setFilterable(boolean filterable)
filterable - the filterable to setpublic IGQLDynamicAttributeGetter<?,?> getDynamicAttributeGetter()
IGQLDynamicAttributeGetter then if this attribute is set in
schema queries for retrieving this attribute parent entity then this
getter will be called with this attribute value as parameter.)public GQLAbstractAttributeMetaData setDynamicAttributeGetter(IGQLDynamicAttributeGetter<?,?> dynamicAttributeGetter)
IGQLDynamicAttributeGetter then if this attribute is set in
schema queries for retrieving this attribute parent entity then this
getter will be called with this attribute value as parameter.)dynamicAttributeGetter - the dynamicAttributeGetter to setpublic IGQLDynamicAttributeSetter<?,?> getDynamicAttributeSetter()
IGQLDynamicAttributeSetter then if this attribute is set in
schema mutations for saving this attribute parent entity then this setter
will be called with this attribute value as parameter.)public GQLAbstractAttributeMetaData setDynamicAttributeSetter(IGQLDynamicAttributeSetter<?,?> dynamicAttributeSetter)
IGQLDynamicAttributeSetter then if this attribute is set in
schema mutations for saving this attribute parent entity then this setter
will be called with this attribute value as parameter.)dynamicAttributeSetter - the dynamicAttributeSetter to setCopyright © 2019. All rights reserved.