|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.framework.TopiaUtil
public class TopiaUtil
| Constructor Summary | |
|---|---|
TopiaUtil()
|
|
| Method Summary | |
|---|---|
static java.util.Properties |
getProperties(java.util.Properties parent,
java.lang.String pathOrUrl)
Permet de récupérer le fichier de propriété ayant le nom passé en argument. |
static java.util.Properties |
getProperties(java.lang.String pathOrUrl)
Permet de récupérer le fichier de propriété ayant le nom passé en argument. |
static java.lang.String |
getTopiaIdPattern(java.lang.Class<? extends TopiaEntity> klass)
Compute the pattern to be used to capture a topia id for a given entity class. |
static java.util.regex.Pattern |
getTopiaPattern(java.lang.String format,
java.lang.Class<? extends TopiaEntity>... classes)
Compute a regex pattern given a format string. |
static boolean |
isSchemaExist(org.hibernate.cfg.Configuration configuration,
java.lang.String entityName)
Test si une entite donnee correspondant a une configuration existe en base. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopiaUtil()
| Method Detail |
|---|
public static java.util.Properties getProperties(java.lang.String pathOrUrl)
throws TopiaNotFoundException
pathOrUrl - le nom du fichier de propriété à charger, s'il est null
ou vide retourne un objet Properties vide.
TopiaNotFoundException - Si pathOrUrl n'est pas null ou vide et que
le fichier devant contenir les propriétés n'est pas retrouvé.
public static java.util.Properties getProperties(java.util.Properties parent,
java.lang.String pathOrUrl)
throws TopiaNotFoundException
parent - l'objet properties utilisé comme parent de l'objet retournépathOrUrl - le nom du fichier de propriété à charger, s'il est null
ou vide retourne un objet Properties vide.
TopiaNotFoundException - Si pathOrUrl n'est pas null ou vide et que
le fichier devant contenir les propriétés n'est pas retrouvé.
public static java.util.regex.Pattern getTopiaPattern(java.lang.String format,
java.lang.Class<? extends TopiaEntity>... classes)
String.format(String, Object[]) will be apply to format, with
for parameters the list of klass transformed in topia pattern via method
getTopiaIdPattern(Class) ready to be capture (enclosed by ()).
format - the formatclasses - the list of class to use
public static java.lang.String getTopiaIdPattern(java.lang.Class<? extends TopiaEntity> klass)
klass - the entity class
public static boolean isSchemaExist(org.hibernate.cfg.Configuration configuration,
java.lang.String entityName)
configuration - la configuration hibernateentityName - le nom de l'entite a tester
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||