public class GQLMetaModel extends Object
| Constructor and Description |
|---|
GQLMetaModel() |
| Modifier and Type | Method and Description |
|---|---|
GQLMetaModel |
buildFromEntityClasses(Collection<Class<?>> entityClasses,
Collection<Class<?>> availableEmbeddedEntityClasses,
Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes,
Collection<IGQLAbstractCustomMethod<?>> customMethods)
With this method, all meta datas will be automatically generated and
registered from given entity classes, attributes and methods.
|
GQLMetaModel |
buildFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas,
Collection<GQLEntityMetaData> entityMetaDatas,
Collection<GQLAbstractMethodMetaData> methodMetaDatas)
With this method dynamic attributes should already be registered in
entities and custom methods should already have their MetaData
automatically generated and registered.
|
GQLMetaModel |
buildFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas,
Collection<GQLEntityMetaData> entityMetaDatas,
Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes,
Collection<IGQLAbstractCustomMethod<?>> customMethods)
With this method, dynamic attributes and custom method meta data will be
automatically generated and registered.
You can also provide entities with dynamic attributes already registered and custom methods meta data already created. |
Collection<Class<?>> |
getAvailableEmbeddedEntityClasses() |
Collection<IGQLAbstractDynamicAttribute<?>> |
getDynamicAttributes() |
Collection<Class<?>> |
getEntityClasses() |
Collection<GQLEntityMetaData> |
getEntityMetaDatas() |
Collection<GQLEnumMetaData> |
getEnumMetaDatas() |
Collection<GQLAbstractMethodMetaData> |
getMethodMetaDatas() |
Collection<IGQLAbstractCustomMethod<?>> |
getMethods() |
public GQLMetaModel buildFromEntityClasses(Collection<Class<?>> entityClasses, Collection<Class<?>> availableEmbeddedEntityClasses, Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes, Collection<IGQLAbstractCustomMethod<?>> customMethods)
entityClasses - the collection of entity classesavailableEmbeddedEntityClasses - the collection of all available embedded entity classes. If
empty then all encountered data classes can be added to GQL
schema. It is the only way to provide allowed extending
classes for embedded entities. You can leave this null or
empty if you don't need this advanced behavior.dynamicAttributes - the collection of IGQLAbstractDynamicAttribute to be
automatically registered (meta data will be created
automatically)customMethods - the collection of GQLAbstractCustomMethod to be
automatically registered (meta data will be created
automatically)public GQLMetaModel buildFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas, Collection<GQLEntityMetaData> entityMetaDatas, Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes, Collection<IGQLAbstractCustomMethod<?>> customMethods)
enumMetaDatas - the collection of all registered GQLEnumMetaDataentityMetaDatas - the collection of all registered GQLEntityMetaDatadynamicAttributes - the collection of IGQLAbstractDynamicAttribute to be
automatically registered (meta data will be created
automatically)customMethods - the collection of GQLAbstractCustomMethod to be
automatically registered (meta data will be created
automatically)public GQLMetaModel buildFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas, Collection<GQLEntityMetaData> entityMetaDatas, Collection<GQLAbstractMethodMetaData> methodMetaDatas)
enumMetaDatas - the collection of all registered GQLEnumMetaDataentityMetaDatas - the collection of all registered GQLEntityMetaDatamethodMetaDatas - the collection of all registered
GQLAbstractMethodMetaDatapublic Collection<Class<?>> getEntityClasses()
public Collection<Class<?>> getAvailableEmbeddedEntityClasses()
public Collection<IGQLAbstractDynamicAttribute<?>> getDynamicAttributes()
public Collection<IGQLAbstractCustomMethod<?>> getMethods()
public Collection<GQLEnumMetaData> getEnumMetaDatas()
public Collection<GQLEntityMetaData> getEntityMetaDatas()
public Collection<GQLAbstractMethodMetaData> getMethodMetaDatas()
Copyright © 2019. All rights reserved.