Package org.nuiton.topia.templates
Class TopiaGeneratorUtil
java.lang.Object
org.nuiton.eugene.GeneratorUtil
org.nuiton.eugene.java.JavaGeneratorUtil
org.nuiton.topia.templates.TopiaGeneratorUtil
Deprecated.
Classe regroupant divers méthodes utiles pour la génération des entités
Created: 13 déc. 2005
- Author:
- Arnaud Thimel (Code Lutin), Tony Chemit - tchemit@codelutin.com, Florian Desbois- fdebois@codelutin.com, Éric Chatellier - chatellier@codelutin.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Stratégie d'heritage par defaut.static final StringDeprecated.Le package par défaut si aucun n'est spécifiéstatic final StringDeprecated.dependency to add extra operations for entity dao.static final Comparator<org.nuiton.eugene.models.object.ObjectModelClass>Deprecated.static final StringDeprecated.Type de persistence par défaut (si aucun précisé)static final StringDeprecated.Type de persistence Hibernatestatic final StringDeprecated.since 3.0, use nowhere in ToPIA.static final StringDeprecated.Propriété des générateurs indiquant le package par défautprotected static final TopiaHibernateTagValuesDeprecated.protected static final TopiaCoreTagValuesDeprecated.Static singleton instance used to read defaultValue TODO AThimel 19/06/14 Remove this when remove deprecated methods using itFields inherited from class org.nuiton.eugene.java.JavaGeneratorUtil
DEPENDENCIES_CONSTANTS, OPERATION_GETTER_BOOLEAN_PREFIX, OPERATION_GETTER_DEFAULT_PREFIXFields inherited from class org.nuiton.eugene.GeneratorUtil
SERIAL_VERSION_UID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncleanImports(String packageName, Set<String> fqns) Deprecated.Clean a set of fqns, transform it into aListand sort it.static StringgetAbstractDaoFqn(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetAbstractDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetApplicationContextAbstractName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetApplicationContextConcreteName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetApplicationContextInterfaceName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetApplicationContextPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static List<org.nuiton.eugene.models.object.ObjectModelClass>getClassesByStereotype(String stereotype, org.nuiton.eugene.models.object.ObjectModel model, boolean sort) Deprecated.Obtain the list of classes for a given stereotype with the possibility to sort the result.static StringgetClassForPrimitiveType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static StringgetConcreteDaoFqn(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetConcreteDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetContractDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static Class<?>getDAOImplementation(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.since 3.0-alpha-8, replaced byTopiaCoreTagValues.getDaoSuperClassTagValue(ObjectModelClassifier, ObjectModelPackage, ObjectModel)static StringgetDaoPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetDaoSupplierInterfaceName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetDaoSupplierName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetDbName(org.nuiton.eugene.models.object.ObjectModelElement element) Deprecated.Renvoie le nom BD de l'élement passé en paramètre.static StringgetDefaultPackage(org.nuiton.eugene.AbstractGenerator<?> generator) Deprecated.Renvoie le package par défaut pour le générateur donnéstatic StringDeprecated.static StringgetDOType(org.nuiton.eugene.models.object.ObjectModelElement elem, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static <Type extends org.nuiton.eugene.models.object.ObjectModelElement>
Collection<Type>getElementsWithStereotype(Collection<Type> elements, String... stereotypes) Deprecated.since 3.0, not used anywhere in ToPIAstatic StringgetEntityAbstractName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static List<org.nuiton.eugene.models.object.ObjectModelClass>getEntityClasses(org.nuiton.eugene.models.object.ObjectModel model, boolean sort) Deprecated.Obtain the list of entities classes with the possibility to sort the result.static StringgetEntityConcreteName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetEntityEnumName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetEntityPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model, org.nuiton.eugene.models.object.ObjectModelClassifier input) Deprecated.static StringgetGeneratedDaoFqn(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetGeneratedDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.getImports(org.nuiton.eugene.models.object.ObjectModelClass aClass, String... incomingFqns) Deprecated.Obtain the list of fqn of object involed in the given class.protected static voidgetImports(org.nuiton.eugene.models.object.ObjectModelClass aClass, Set<String> fqns) Deprecated.Obtain the list of fqn of object involed in the given class.getImports(org.nuiton.eugene.models.object.ObjectModelInterface anInterface, String... incomingFqns) Deprecated.since 3.0, not used anywhere in ToPIAprotected static voidgetImports(org.nuiton.eugene.models.object.ObjectModelInterface anInterface, Set<String> fqns) Deprecated.Obtain the list of fqn of object involed in the given interface.protected static voidgetImports(org.nuiton.eugene.models.object.ObjectModelOperation operation, Set<String> fqns) Deprecated.Obtain the fqn's list of all involed type in a givne operation.static StringgetInheritanceStrategy(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Obtain the value of theTopiaHibernateTagValues.Store.inheritanceStrategytag value on the given classifier.static StringgetLegacyDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated.static StringgetManyToManyTableName(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.Renvoie le nom unique de table pour une relation ManyToMany en fonction de l'attributattrstatic Set<org.nuiton.eugene.models.object.ObjectModelAttribute>getNaturalIdAttributes(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.Cherche et renvoie la liste des attributs constituant la clef metier d'une classe.static StringgetNMultiplicityHibernateType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.Renvoie le type d'interface à utiliser en fonction de l'attributstatic Set<org.nuiton.eugene.models.object.ObjectModelAttribute>getNotNullAttributes(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.Cherche et renvoie la liste des attributs qui ne doivent pas etre null dans une classe.static StringgetParentDaoFqn(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetParentDaoName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetPersistenceContextAbstractName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetPersistenceContextConcreteName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetPersistenceContextInterfaceName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetPersistenceContextPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static StringgetPersistenceType(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Renvoie le type de persistence pour le classifier donné.static StringgetPrimaryKeyAttributesListDeclaration(org.nuiton.eugene.models.object.ObjectModelClass clazz, boolean includeName) Deprecated.since 3.0, not used anywhere in ToPIAstatic StringgetReverseDbName(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.Obtain the reverse db name of an attribute.static booleanhasNothingOrAbstractMethods(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.since 3.0, used nowhere in ToPIAstatic booleanhasStereotypes(org.nuiton.eugene.models.object.ObjectModelElement element, String... stereotypes) Deprecated.since 3.0, not used anywhere in ToPIAstatic booleanhasUnidirectionalRelationOnAbstractType(org.nuiton.eugene.models.object.ObjectModelAttribute attr, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.Cette méthode permet de détecter si - l'attribut représente une relation 1-n - cette relation est unidirectionnelle - le type de l'attribut représente un entité - cette entité a des sous-classes dans le modèle Ce cas correspond à une incompatibilité d'Hibernate qui nous oblige a adopter un comportement particulier.static booleanisAssociationClassDoublon(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.since 3.0, not used anywhere in ToPIAstatic booleanisAttributeNotNull(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Deprecated.Detecte si un attribut est marqué comme non null.static booleanisBooleanType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static booleanisCollectionNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations) Deprecated.static booleanisDateType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static booleanisEntity(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.Check if the given attribute type is an entity.static booleanisEntity(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Check if the given classifier has theTopiaCoreTagValues.Store.entityand is not an enumerationstatic booleanisImportNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations, String importName) Deprecated.static booleanisNumericType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static booleanisPrimitiveType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static booleanisSetNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations) Deprecated.static booleanisTextType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.static Map<org.nuiton.eugene.models.object.ObjectModelClass,Set<org.nuiton.eugene.models.object.ObjectModelClass>> searchDirectUsages(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.static voidsearchDirectUsages(org.nuiton.eugene.models.object.ObjectModelClass klass, Map<String, org.nuiton.eugene.models.object.ObjectModelClass> allEntitiesByFQN, Map<org.nuiton.eugene.models.object.ObjectModelClass, Set<org.nuiton.eugene.models.object.ObjectModelClass>> usages) Deprecated.static booleanshouldBeAbstract(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.since 3.0, used nowhere in ToPIAMethods inherited from class org.nuiton.eugene.java.JavaGeneratorUtil
capitalizeJavaBeanPropertyName, cloneOperations, containsGenerics, getAttributeImplementationType, getAttributeImplementationType, getAttributeInterfaceType, getAttributeInterfaceType, getAttributeInterfaceType, getClassAttributesListDeclaration, getCollectionInstanceType, getCollectionType, getOperationParametersListDeclaration, isOrdered, joinGeneric, splitFqnList, splitGenericMethods inherited from class org.nuiton.eugene.GeneratorUtil
computeSerialVersionUID, convertConstantNameToVariableName, convertVariableNameToConstantName, findTagValue, generateSerialVersionUID, getAssocAttrName, getCastValue, getClassifiers, getClassNameFromQualifiedName, getFilenameFromQualifiedName, getFormatingExpression, getHashCodeExpression, getInitValue, getInitValue, getOperationParametersListName, getParentPackageName, getParsingExpression, getPrimitiveWrapType, getSimpleName, getSimpleName, getTypesList, hasDocumentation, hasStereotype, isBooleanPrimitive, isBooleanPrimitive, isComposition, isFirstAttribute, isNMultiplicity, isNMultiplicity, isOneMultiplicity, isPrimitiveAttributeType, isPrimitiveType, notEmpty, removeAnyGenericDefinition, removeGenericDefinition, splitGenericDefinition, toLowerCaseFirstLetter
-
Field Details
-
TOPIA_TAG_VALUES
Deprecated.Static singleton instance used to read defaultValue TODO AThimel 19/06/14 Remove this when remove deprecated methods using it -
TOPIA_HIBERNATE_TAG_VALUES
Deprecated. -
DEPENDENCIES_DAO
Deprecated.dependency to add extra operations for entity dao.- Since:
- 2.3.4
- See Also:
-
PERSISTENCE_TYPE_HIBERNATE
Deprecated.Type de persistence Hibernate- See Also:
-
PERSISTENCE_TYPE_LDAP
Deprecated.since 3.0, use nowhere in ToPIA.Type de persistence LDAP- See Also:
-
PERSISTENCE_TYPE_DEFAULT
Deprecated.Type de persistence par défaut (si aucun précisé)- See Also:
-
PROPERTY_DEFAULT_PACKAGE
Deprecated.Propriété des générateurs indiquant le package par défaut- See Also:
-
DEFAULT_PACKAGE
Deprecated.Le package par défaut si aucun n'est spécifié- See Also:
-
DEFAULT_INHERITANCE_STRATEGY
Deprecated.Stratégie d'heritage par defaut.- See Also:
-
OBJECT_MODEL_CLASS_COMPARATOR
public static final Comparator<org.nuiton.eugene.models.object.ObjectModelClass> OBJECT_MODEL_CLASS_COMPARATORDeprecated.
-
-
Constructor Details
-
TopiaGeneratorUtil
public TopiaGeneratorUtil()Deprecated.
-
-
Method Details
-
getDefaultPackage
Deprecated.Renvoie le package par défaut pour le générateur donné- Parameters:
generator- le générateur donné- Returns:
- le package par défaut du générator donné
-
getApplicationContextPackage
public static String getApplicationContextPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getPersistenceContextPackage
public static String getPersistenceContextPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getDaoPackage
public static String getDaoPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getParentDaoName
Deprecated. -
getParentDaoFqn
public static String getParentDaoFqn(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getApplicationContextInterfaceName
public static String getApplicationContextInterfaceName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getApplicationContextAbstractName
public static String getApplicationContextAbstractName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getApplicationContextConcreteName
public static String getApplicationContextConcreteName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getPersistenceContextAbstractName
public static String getPersistenceContextAbstractName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getPersistenceContextConcreteName
public static String getPersistenceContextConcreteName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getPersistenceContextInterfaceName
public static String getPersistenceContextInterfaceName(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getDaoSupplierInterfaceName
Deprecated. -
getDaoSupplierName
Deprecated. -
getEntityEnumName
Deprecated. -
getEntityAbstractName
Deprecated. -
getEntityConcreteName
Deprecated. -
getAbstractDaoName
Deprecated. -
getGeneratedDaoName
Deprecated. -
getConcreteDaoName
Deprecated. -
getContractDaoName
Deprecated. -
getAbstractDaoFqn
Deprecated. -
getGeneratedDaoFqn
Deprecated. -
getConcreteDaoFqn
Deprecated. -
getEntityPackage
public static String getEntityPackage(org.nuiton.eugene.java.ObjectModelTransformerToJava transformer, org.nuiton.eugene.models.object.ObjectModel model, org.nuiton.eugene.models.object.ObjectModelClassifier input) Deprecated. -
getPersistenceType
public static String getPersistenceType(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Renvoie le type de persistence pour le classifier donné. Si aucun n'est trouvé, le type par défaut est utilisé- Parameters:
classifier- l'élément à tester- Returns:
- le type de persitence pour l'élément donné.
- Since:
- 2.5
-
getReverseDbName
Deprecated.Obtain the reverse db name of an attribute. If attribute has a specific reverse attribute, use his db name, otherwise suffix the db name of the attribute by_id.- Parameters:
attr- the attribute to seek- Returns:
- the value of the reverse name
- Since:
- 2.5
-
getDbName
Deprecated.Renvoie le nom BD de l'élement passé en paramètre. Elle se base sur le tag associé si il existe, sinon sur le nom de l'élément- Parameters:
element- l'élément à tester- Returns:
- le nom de table
-
getNaturalIdAttributes
public static Set<org.nuiton.eugene.models.object.ObjectModelAttribute> getNaturalIdAttributes(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.Cherche et renvoie la liste des attributs constituant la clef metier d'une classe.- Parameters:
clazz- la classe à tester- Returns:
- la liste des attributs de la clef métier
-
getNotNullAttributes
public static Set<org.nuiton.eugene.models.object.ObjectModelAttribute> getNotNullAttributes(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.Cherche et renvoie la liste des attributs qui ne doivent pas etre null dans une classe.- Parameters:
clazz- la classe à tester- Returns:
- la liste des attributs qui ne doivent pas etre null
-
isAttributeNotNull
public static boolean isAttributeNotNull(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Deprecated.Detecte si un attribut est marqué comme non null. Les naturalId sont not null par défaut- Parameters:
attribute- l'attribut à tester- Returns:
truesi l'attribut doit être non null, par défaut pour les naturalId,falsesinon..- Since:
- 2.6.9
-
getDOType
public static String getDOType(org.nuiton.eugene.models.object.ObjectModelElement elem, org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
getDOType
Deprecated. -
isNumericType
public static boolean isNumericType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
isTextType
public static boolean isTextType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
isDateType
public static boolean isDateType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
isBooleanType
public static boolean isBooleanType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
isPrimitiveType
public static boolean isPrimitiveType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
getClassForPrimitiveType
public static String getClassForPrimitiveType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated. -
hasUnidirectionalRelationOnAbstractType
public static boolean hasUnidirectionalRelationOnAbstractType(org.nuiton.eugene.models.object.ObjectModelAttribute attr, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.Cette méthode permet de détecter si - l'attribut représente une relation 1-n - cette relation est unidirectionnelle - le type de l'attribut représente un entité - cette entité a des sous-classes dans le modèle Ce cas correspond à une incompatibilité d'Hibernate qui nous oblige a adopter un comportement particulier.
- Parameters:
attr- l'attribut a testermodel- le model- Returns:
- true si et seulement si il s'agit bien de ce type de relation
-
getManyToManyTableName
public static String getManyToManyTableName(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.Renvoie le nom unique de table pour une relation ManyToMany en fonction de l'attributattr- Parameters:
attr- l'attribut servant de base au calcul du nom- Returns:
- le nom de la table
-
getNMultiplicityHibernateType
public static String getNMultiplicityHibernateType(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.Renvoie le type d'interface à utiliser en fonction de l'attribut- Parameters:
attr- l'attribut a traiter- Returns:
- String
-
getEntityClasses
public static List<org.nuiton.eugene.models.object.ObjectModelClass> getEntityClasses(org.nuiton.eugene.models.object.ObjectModel model, boolean sort) Deprecated.Obtain the list of entities classes with the possibility to sort the result.- Parameters:
model- the current model to scansort- flag to allow sort the result- Returns:
- the list of filtred classes by their stereotype
-
getClassesByStereotype
public static List<org.nuiton.eugene.models.object.ObjectModelClass> getClassesByStereotype(String stereotype, org.nuiton.eugene.models.object.ObjectModel model, boolean sort) Deprecated.Obtain the list of classes for a given stereotype with the possibility to sort the result.- Parameters:
stereotype- filter stereotypemodel- the current model to scansort- flag to allow sort the result- Returns:
- the list of filtred classes by their stereotype
-
getImports
public static List<String> getImports(org.nuiton.eugene.models.object.ObjectModelClass aClass, String... incomingFqns) Deprecated.Obtain the list of fqn of object involed in the given class.- Parameters:
aClass- the clazz to inspectincomingFqns- incoming fqns- Returns:
- the list of fqn of attributes
-
getImports
protected static void getImports(org.nuiton.eugene.models.object.ObjectModelClass aClass, Set<String> fqns) Deprecated.Obtain the list of fqn of object involed in the given class.- Parameters:
aClass- the class to inspectfqns- where to store found fqns
-
getImports
protected static void getImports(org.nuiton.eugene.models.object.ObjectModelInterface anInterface, Set<String> fqns) Deprecated.Obtain the list of fqn of object involed in the given interface.- Parameters:
anInterface- the interface to inspectfqns- where to store found fqns
-
getImports
protected static void getImports(org.nuiton.eugene.models.object.ObjectModelOperation operation, Set<String> fqns) Deprecated.Obtain the fqn's list of all involed type in a givne operation.- Parameters:
operation- operation to inspectfqns- where to store found fqns
-
cleanImports
Deprecated.Clean a set of fqns, transform it into aListand sort it.- Parameters:
packageName- the current package namefqns- the dirty set of fqns- Returns:
- the sorted cleaned list of fqns.
-
searchDirectUsages
public static Map<org.nuiton.eugene.models.object.ObjectModelClass,Set<org.nuiton.eugene.models.object.ObjectModelClass>> searchDirectUsages(org.nuiton.eugene.models.object.ObjectModel model) Deprecated. -
searchDirectUsages
public static void searchDirectUsages(org.nuiton.eugene.models.object.ObjectModelClass klass, Map<String, org.nuiton.eugene.models.object.ObjectModelClass> allEntitiesByFQN, Map<org.nuiton.eugene.models.object.ObjectModelClass, Set<org.nuiton.eugene.models.object.ObjectModelClass>> usages) Deprecated. -
isImportNeeded
public static boolean isImportNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations, String importName) Deprecated. -
isCollectionNeeded
public static boolean isCollectionNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations) Deprecated. -
isSetNeeded
public static boolean isSetNeeded(Collection<org.nuiton.eugene.models.object.ObjectModelOperation> operations) Deprecated. -
isEntity
public static boolean isEntity(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModel model) Deprecated.Check if the given attribute type is an entity.- Parameters:
attribute- attribute to testmodel- model containing the attribute- Returns:
trueif type of attribute is an entity,falseotherwise- Since:
- 2.7
- See Also:
-
isEntity
public static boolean isEntity(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Check if the given classifier has theTopiaCoreTagValues.Store.entityand is not an enumeration- Parameters:
classifier- classifier to test- Returns:
trueif stereotype was found and classifier is not enumeration,falseotherwise- Since:
- 2.5
- See Also:
-
getInheritanceStrategy
public static String getInheritanceStrategy(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Deprecated.Obtain the value of theTopiaHibernateTagValues.Store.inheritanceStrategytag value on the given classifier.- Parameters:
classifier- classifier to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
-
getLegacyDaoName
@Deprecated public static String getLegacyDaoName(org.nuiton.eugene.models.object.ObjectModelClass input) Deprecated. -
getElementsWithStereotype
@Deprecated public static <Type extends org.nuiton.eugene.models.object.ObjectModelElement> Collection<Type> getElementsWithStereotype(Collection<Type> elements, String... stereotypes) Deprecated.since 3.0, not used anywhere in ToPIA- Type Parameters:
Type- FIXME- Parameters:
elements- FIXMEstereotypes- FIXME- Returns:
- FIXME
-
hasStereotypes
@Deprecated public static boolean hasStereotypes(org.nuiton.eugene.models.object.ObjectModelElement element, String... stereotypes) Deprecated.since 3.0, not used anywhere in ToPIA- Parameters:
element- FIXMEstereotypes- FIXME- Returns:
- FIXME
-
getPrimaryKeyAttributesListDeclaration
@Deprecated public static String getPrimaryKeyAttributesListDeclaration(org.nuiton.eugene.models.object.ObjectModelClass clazz, boolean includeName) Deprecated.since 3.0, not used anywhere in ToPIA- Parameters:
clazz- FIXMEincludeName- FIXME- Returns:
- FIXME
-
isAssociationClassDoublon
@Deprecated public static boolean isAssociationClassDoublon(org.nuiton.eugene.models.object.ObjectModelAttribute attr) Deprecated.since 3.0, not used anywhere in ToPIA- Parameters:
attr- FIXME- Returns:
- FIXME
-
getImports
@Deprecated public static List<String> getImports(org.nuiton.eugene.models.object.ObjectModelInterface anInterface, String... incomingFqns) Deprecated.since 3.0, not used anywhere in ToPIAObtain the list of fqn of object involed in the given interface.- Parameters:
anInterface- the interface to inspectincomingFqns- incoming fqns- Returns:
- the list of fqn of attributes
-
hasNothingOrAbstractMethods
@Deprecated public static boolean hasNothingOrAbstractMethods(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.since 3.0, used nowhere in ToPIAIndique si la classe specifiee n'a aucune ou que des methodes abstraites- Parameters:
clazz- l'instance de ObjectModelClass- Returns:
- true si la classe n'a que des operations abstraite ou aucune operation
-
shouldBeAbstract
@Deprecated public static boolean shouldBeAbstract(org.nuiton.eugene.models.object.ObjectModelClass clazz) Deprecated.since 3.0, used nowhere in ToPIAIndique si la classe specifiee devrait etre abstraite- Parameters:
clazz- l'instance de ObjectModelClass- Returns:
- true dans ce cas, false sinon
-
getDAOImplementation
@Deprecated public static Class<?> getDAOImplementation(org.nuiton.eugene.models.object.ObjectModel model) Deprecated.since 3.0-alpha-8, replaced byTopiaCoreTagValues.getDaoSuperClassTagValue(ObjectModelClassifier, ObjectModelPackage, ObjectModel)Obtain the class to use as abstract dao. It will look after a tag valueTopiaCoreTagValues.Store.daoSuperClassin model and if not found will use the default value which isAbstractTopiaDao.- Parameters:
model- the model which could contains- Returns:
- the type of the abstract dao to use
- Since:
- 2.5
-
TopiaTemplateHelper.