public class GQLMetaModel extends Object
public static GQLMetaModel createFromEntityClasses(Collection<Class<?>> entityClasses, Collection<Class<?>> availableEmbeddedEntityClasses, Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes, Collection<Object> controllers)
GQLMetaModel. With this method, all meta datas will be
automatically generated and registered from given entity classes,
attributes and methods. Entities, enums, dynamic attributes and custom
method meta data will be automatically generated and registered.entityClasses - the collection of entity classesavailableEmbeddedEntityClasses - the collection of all available embedded entity classes. 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 registeredcontrollers - the collection of controllers holding custom methods to be
added to schemapublic static GQLMetaModel createFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas, Collection<GQLEntityMetaData> entityMetaDatas, Collection<IGQLAbstractDynamicAttribute<?>> dynamicAttributes, Collection<Object> controllers)
GQLMetaModel. With this method, entities and enums
MetaData have been created manually but dynamic attributes and custom
method meta data will be automatically generated and registered.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)controllers - the collection of controllers holding custom methods to be
added to schemapublic static GQLMetaModel createFromMetaDatas(Collection<GQLEnumMetaData> enumMetaDatas, Collection<GQLEntityMetaData> entityMetaDatas, Collection<GQLAbstractMethodMetaData> methodMetaDatas)
GQLMetaModel. With this method, dynamic attributes should
already be registered in entities and custom methods should already have
their MetaData automatically generated and registered. For an automatic
registration of dynamic attributes and custom method use the other
constructor.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<Object> getControllers()
public Collection<GQLEnumMetaData> getEnumMetaDatas()
public Collection<GQLEntityMetaData> getEntityMetaDatas()
public Collection<GQLAbstractMethodMetaData> getMethodMetaDatas()
Copyright © 2019. All rights reserved.