public class TopiaTagValues
extends org.nuiton.eugene.models.tagvalue.TagValueDefinitionProvider
|
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_ACCESS
Tag pour specfier le type d'acces a un champ.
|
static String |
TAG_ANNOTATION
Tag pour ajouter une annotation à un champ.
|
static String |
TAG_APPLICATION_CONTEXT_SUPER_CLASS
Tag to specify a super class to use instead of
AbstractTopiaApplicationContext. |
static String |
TAG_CONTEXTABLE
Tag pour que les entités etendent
TopiaEntityContextable et
se fasse injecter le TopiaDaoSupplier par rapport aux autres
entités qui ne l'ont pas. |
static String |
TAG_DAO_IMPLEMENTATION
To specify the abstract dao to use.
|
static String |
TAG_DAO_SUPER_CLASS
Tag to specify a super class to use instead of
AbstractTopiaDao. |
static String |
TAG_DB_NAME
Tag pour le nom du champ / entité en BD.
|
static String |
TAG_ENTITY_SUPER_CLASS
Tag to specify a super class to use instead of
AbstractTopiaEntity. |
static String |
TAG_FETCH
Tag pour spécifier la caractère fetch d'une association multiple.
|
static String |
TAG_GENERATE_OPERATOR_FOR_DAO_HELPER
Tag pour specfier si on doit générer la methode getOperator dans les daohelpers.
|
static String |
TAG_GENERATE_TOPIA_ID_IN_DTO
Deprecated.
since 3.0, will be removed at the same time that
EntityDTOTransformer. |
static String |
TAG_HIBERNATE_ATTRIBUTE_TYPE
Tag to change the type of an attribute in a hibernate mapping.
|
static String |
TAG_INDEX_FOREIGN_KEYS
Stéréotype pour les attributs avec multiplicité nécessitant la création d'un index.
|
static String |
TAG_INHERITANCE_STRATEGY
Tag pour configurer la stategie d'heritage choisie.
|
static String |
TAG_INVERSE
Tag pour permettre de choisir qui contrôle la relation N-N
bidirectionnelle.
|
static String |
TAG_LAZY
Tag pour spécifier la caractère lazy d'une association multiple.
|
static String |
TAG_LENGTH
Tag pour la taille du champ en BD.
|
static String |
TAG_NATURAL_ID
Tag pour ajouter un attribut dans une clef métier.
|
static String |
TAG_NATURAL_ID_MUTABLE
Tag pour specifier si une clef metier est mutable.
|
static String |
TAG_NOT_GENERATE_TO_STRING
Tag pour specifier de ne pas generer la methode toString.
|
static String |
TAG_NOT_NULL
Tag pour spécifier la caractère not-null d'un attribut.
|
static String |
TAG_ORDER_BY
Tag pour spécifier la caractère order-by d'une association multiple.
|
static String |
TAG_PERSISTENCE_CONTEXT_SUPER_CLASS
Tag to specify a super class to use instead of
AbstractTopiaPersistenceContext. |
static String |
TAG_PERSISTENCE_TYPE
Tag pour le type de persistence.
|
static String |
TAG_PROXY_INTERFACE
Tag pour configurer l'interface du proxy sur autre chose que l'implementation par defaut.
|
static String |
TAG_SCHEMA_NAME
Tag pour le nom du schema en BD.
|
static String |
TAG_SORT_ATTRIBUTE
Tag pour specifier de trier les attributs par nom lors de la generation.
|
static String |
TAG_SQL_TYPE
Tag pour spécifier le type sql d'une propriété dans le mapping hibernate.
|
static String |
TAG_TYPE
Deprecated.
since 3.0, use now
TAG_HIBERNATE_ATTRIBUTE_TYPE which
permits to deal the same thing but at also model and classifier scope. |
static String |
TAG_USE_ENUMERATION_NAME
Tag à placer sur un l'attribut d'une entité.
|
| Constructor and Description |
|---|
TopiaTagValues() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAccessTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_ACCESS tag value on the given attribute. |
static String |
getAnnotationTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_ANNOTATION tag value on the given attribute. |
static String |
getApplicationContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the
TAG_APPLICATION_CONTEXT_SUPER_CLASS tag value on the model. |
static boolean |
getContextableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_CONTEXTABLE tag value on the given classifier or model. |
static String |
getDaoImplementationTagValue(org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the
TAG_DAO_IMPLEMENTATION tag value on the given model. |
static String |
getDaoSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the
TAG_DAO_SUPER_CLASS tag value on the given classifier or on the model. |
static String |
getDbNameTagValue(org.nuiton.eugene.models.object.ObjectModelElement element)
Obtain the value of the
TAG_DB_NAME tag value on the given classifier. |
static String |
getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_SCHEMA_NAME tag value on the given attribute. |
static String |
getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_SCHEMA_NAME tag value on the given classifier. |
static String |
getEntitySuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the
TAG_ENTITY_SUPER_CLASS tag value on the given classifier or on the model. |
static String |
getFetchTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_FETCH tag value on the given attribute. |
static boolean |
getGenerateOperatorForDAOHelperTagValue(org.nuiton.eugene.models.object.ObjectModel model)
Cherche si le tagvalue
TAG_GENERATE_OPERATOR_FOR_DAO_HELPER a été activé dans le model. |
static String |
getHibernateAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute,
org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_HIBERNATE_ATTRIBUTE_TYPE tag value on the given attribute, classifier or model. |
static String |
getIndexForeignKeysTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute,
org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the tag value
TAG_INDEX_FOREIGN_KEYS on the model or on the
given attribute. |
static String |
getInheritanceStrategyTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
Obtain the value of the
TAG_INHERITANCE_STRATEGY tag value on the given classifier. |
static String |
getInverseTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_INVERSE tag value on the given attribute. |
static String |
getLazyTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_LAZY tag value on the given attribute. |
static String |
getLengthTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_LENGTH tag value on the given attribute. |
static boolean |
getNaturalIdMutableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
Obtain the value of the
TAG_NATURAL_ID_MUTABLE tag value on the given classifier. |
static boolean |
getNaturalIdTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_NATURAL_ID tag value on the given attribute. |
static boolean |
getNotGenerateToStringTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier clazz,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_NOT_GENERATE_TO_STRING tag value on the given class. |
static Boolean |
getNotNullTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_NOT_NULL tag value on the given attribute. |
static String |
getOrderByTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_ORDER_BY tag value on the given attribute. |
static String |
getPersistenceContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
Obtains the value of the
TAG_PERSISTENCE_CONTEXT_SUPER_CLASS tag value on the model. |
static String |
getPersistenceTypeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
Obtain the value of the
TAG_PERSISTENCE_TYPE tag value on the given classifier. |
static String |
getProxyInterfaceTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_PROXY_INTERFACE tag value on the given classifier. |
static boolean |
getSortAttributeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Obtain the value of the
TAG_SORT_ATTRIBUTE tag value on the given classifier. |
static String |
getSqlTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Obtain the value of the
TAG_SQL_TYPE tag value on the given attribute. |
static String |
getTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
Deprecated.
|
static boolean |
hasUseEnumerationNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attr,
org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model) |
static boolean |
shouldGenerateDTOTopiaIdTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
Search if the TagValue
TAG_GENERATE_TOPIA_ID_IN_DTO has been activated in the model. |
addAllDefinition, addAllDeprecated, addDefinition, addDeprecated, addMatcher, getDefaultValue, getDefinition, getDefinition, getDefinitionForMatcher, init, initDefinition, initMatcher, isDeprecated, isVerbose, scanClass, setVerbose, validatepublic static final String TAG_PERSISTENCE_TYPE
public static final String TAG_CONTEXTABLE
TopiaEntityContextable et
se fasse injecter le TopiaDaoSupplier par rapport aux autres
entités qui ne l'ont pas.public static final String TAG_DB_NAME
public static final String TAG_SCHEMA_NAME
public static final String TAG_LENGTH
getLengthTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_ANNOTATION
getAnnotationTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_ACCESS
getAccessTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_NATURAL_ID
getNaturalIdTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_NATURAL_ID_MUTABLE
getNaturalIdMutableTagValue(ObjectModelClassifier),
Constant Field Valuespublic static final String TAG_INVERSE
getInverseTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_LAZY
getLazyTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_FETCH
getFetchTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_ORDER_BY
getOrderByTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_NOT_NULL
getNotNullTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_USE_ENUMERATION_NAME
name de l'énumération et non l'ordinal pour stocker la valeur en
basepublic static final String TAG_PROXY_INTERFACE
getPersistenceTypeTagValue(ObjectModelClassifier),
Constant Field Valuespublic static final String TAG_INHERITANCE_STRATEGY
getPersistenceTypeTagValue(ObjectModelClassifier),
Constant Field Valuespublic static final String TAG_NOT_GENERATE_TO_STRING
getNotGenerateToStringTagValue(ObjectModelClassifier, ObjectModel),
Constant Field Valuespublic static final String TAG_SORT_ATTRIBUTE
getSortAttributeTagValue(ObjectModelClassifier, ObjectModel),
Constant Field Valuespublic static final String TAG_GENERATE_OPERATOR_FOR_DAO_HELPER
getGenerateOperatorForDAOHelperTagValue(ObjectModel),
Constant Field Values@Deprecated public static final String TAG_TYPE
TAG_HIBERNATE_ATTRIBUTE_TYPE which
permits to deal the same thing but at also model and classifier scope.getTypeTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_SQL_TYPE
getSqlTypeTagValue(ObjectModelAttribute),
Constant Field Valuespublic static final String TAG_DAO_IMPLEMENTATION
org.nuiton.topia.persistence.TopiaDAOImpl.
Other value possible is org.nuiton.topia.persistence.TopiaDAOLegacygetDaoImplementationTagValue(ObjectModel),
Constant Field Valuespublic static final String TAG_INDEX_FOREIGN_KEYS
getIndexForeignKeysTagValue(ObjectModelAttribute, ObjectModel),
Constant Field Values@Deprecated public static final String TAG_GENERATE_TOPIA_ID_IN_DTO
EntityDTOTransformer.EntityDTOTransformer.public static final String TAG_PERSISTENCE_CONTEXT_SUPER_CLASS
AbstractTopiaPersistenceContext.
Note: the class must implements
AbstractTopiaPersistenceContext.public static final String TAG_APPLICATION_CONTEXT_SUPER_CLASS
AbstractTopiaApplicationContext.
Note: the class must implement
AbstractTopiaApplicationContext.public static final String TAG_DAO_SUPER_CLASS
AbstractTopiaDao.
Note: the class must implements TopiaDao.public static final String TAG_ENTITY_SUPER_CLASS
AbstractTopiaEntity.
Note: the class must implements TopiaEntity.public static final String TAG_HIBERNATE_ATTRIBUTE_TYPE
String into hibernate mapping type text, add this:
model.tagValue.hibernateAttributeType.String=textBefore 3.0, you could do the same thing using:
model.tagValue.String=textThe new way permits us to validate the usage of the tagValue, old way can't.
public static String getPersistenceTypeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
TAG_PERSISTENCE_TYPE tag value on the given classifier.classifier - classifier to seeknull if not found nor empty.TAG_PERSISTENCE_TYPEpublic static String getInheritanceStrategyTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
TAG_INHERITANCE_STRATEGY tag value on the given classifier.classifier - classifier to seeknull if not found nor empty.TAG_INHERITANCE_STRATEGYpublic static String getDbNameTagValue(org.nuiton.eugene.models.object.ObjectModelElement element)
TAG_DB_NAME tag value on the given classifier.element - classifier to seeknull if not found nor empty.TAG_DB_NAMEpublic static String getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model)
TAG_SCHEMA_NAME tag value on the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.TAG_SCHEMA_NAMEpublic static String getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModel model)
TAG_SCHEMA_NAME tag value on the given attribute.attribute - attribute to seekmodel - model to seeknull if not found nor empty.TAG_SCHEMA_NAMEpublic static String getLengthTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_LENGTH tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_LENGTHpublic static String getAnnotationTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_ANNOTATION tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_ANNOTATIONpublic static String getAccessTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_ACCESS tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_ACCESSpublic static boolean getNaturalIdTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_NATURAL_ID tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_NATURAL_IDpublic static boolean getNaturalIdMutableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
TAG_NATURAL_ID_MUTABLE tag value on the given classifier.classifier - classifier to seeknull if not found nor empty.TAG_NATURAL_ID_MUTABLEpublic static boolean getContextableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
TAG_CONTEXTABLE tag value on the given classifier or model.classifier - classifier to seekmodel - model to seekfalse if not found nor empty.TAG_CONTEXTABLEpublic static String getInverseTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_INVERSE tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_INVERSEpublic static String getLazyTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_LAZY tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_LAZYpublic static String getFetchTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_FETCH tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_FETCHpublic static String getOrderByTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_ORDER_BY tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_ORDER_BYpublic static Boolean getNotNullTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_NOT_NULL tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_NOT_NULLpublic static String getProxyInterfaceTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model)
TAG_PROXY_INTERFACE tag value on the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.TAG_PROXY_INTERFACEpublic static boolean getNotGenerateToStringTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier clazz,
org.nuiton.eugene.models.object.ObjectModel model)
TAG_NOT_GENERATE_TO_STRING tag value on the given class.clazz - class to seekmodel - model to seeknull if not found nor empty.TAG_NOT_GENERATE_TO_STRINGpublic static boolean getSortAttributeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
TAG_SORT_ATTRIBUTE tag value on the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.TAG_SORT_ATTRIBUTEpublic static String getHibernateAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model)
TAG_HIBERNATE_ATTRIBUTE_TYPE tag value on the given attribute, classifier or model.attribute - attribute to seeknull if not found nor empty.TAG_HIBERNATE_ATTRIBUTE_TYPEpublic static String getSqlTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
TAG_SQL_TYPE tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_TYPEpublic static String getDaoImplementationTagValue(org.nuiton.eugene.models.object.ObjectModel model)
TAG_DAO_IMPLEMENTATION tag value on the given model.model - model to seeknull if not found nor empty.TAG_DAO_IMPLEMENTATIONpublic static String getIndexForeignKeysTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModel model)
TAG_INDEX_FOREIGN_KEYS on the model or on the
given attribute.attribute - attribute to testmodel - model to testnull if not found nor empty.TAG_INDEX_FOREIGN_KEYSpublic static boolean hasUseEnumerationNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attr,
org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
public static boolean shouldGenerateDTOTopiaIdTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier,
org.nuiton.eugene.models.object.ObjectModel model)
TAG_GENERATE_TOPIA_ID_IN_DTO has been activated in the model.classifier - classifier to seekmodel - model to seeknull if not found nor empty.TAG_GENERATE_TOPIA_ID_IN_DTOpublic static String getPersistenceContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
TAG_PERSISTENCE_CONTEXT_SUPER_CLASS tag value on the model.model - model to seeknull if not found nor empty.TAG_PERSISTENCE_CONTEXT_SUPER_CLASSpublic static String getApplicationContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
TAG_APPLICATION_CONTEXT_SUPER_CLASS tag value on the model.model - model to seeknull if not found nor empty.TAG_APPLICATION_CONTEXT_SUPER_CLASSpublic static String getDaoSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model)
TAG_DAO_SUPER_CLASS tag value on the given classifier or on the model.model - model to seeknull if not found nor empty.TAG_DAO_SUPER_CLASSpublic static String getEntitySuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model)
TAG_ENTITY_SUPER_CLASS tag value on the given classifier or on the model.model - model to seeknull if not found nor empty.TAG_ENTITY_SUPER_CLASSpublic static boolean getGenerateOperatorForDAOHelperTagValue(org.nuiton.eugene.models.object.ObjectModel model)
TAG_GENERATE_OPERATOR_FOR_DAO_HELPER a été activé dans le model.model - le modele utilisétrue si le tag value trouvé dans le modèle, false
sinon.@Deprecated public static String getTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
getHibernateAttributeType(ObjectModelAttribute, ObjectModelClassifier, ObjectModel)TAG_TYPE tag value on the given attribute.attribute - attribute to seeknull if not found nor empty.TAG_TYPECopyright © 2004–2014 CodeLutin. All rights reserved.