Uses of Class
org.nuiton.topia.TopiaException
Packages that use TopiaException
Package
Description
TODO-FD20100507 : Need update this javadoc for ToPIA 2.4
Contains two interfaces, one
TopiaContextImplementor for internal
manipulations of TopiaContext and one TopiaService for topia
services.This package contains interfaces and abstract classes for entities and daos.
Package for csv import of entities.
-
Uses of TopiaException in org.nuiton.topia
Subclasses of TopiaException in org.nuiton.topiaMethods in org.nuiton.topia that throw TopiaExceptionModifier and TypeMethodDescriptionvoidTopiaContext.add(TopiaEntity e) Permet d'ajouter dans le TopiaContext une TopiaEntity créé par un autre context.voidSauve la base de données dans un format natif a la base, la representation n'est pas portable d'une base a l'autre.TopiaContext.beginTransaction()Return a new context containing his own transaction.voidTopiaContext.clear(boolean dropDatabase) Supprime toutes les tables et autres elements de la database.voidTopiaContext.clearCache()Clear persistence implementation cache.voidTopiaContext.closeContext()Ferme le contexte.voidTopiaContext.commitTransaction()applique les modifications apporté a ce context sur la base de données.voidTopiaContext.createSchema()Permet de créer le schema de la base de données.intExecute HQL operation on data (Update, Delete).voidTopiaContext.executeSQL(String sqlScript) Execute a given sql code inside this transaction.Permet de faire une requete HQL hibernate directement sur la base en precisant la fenetre des elements a remonter avec les parametresstartIndexetendIndex.Permet de faire une requete HQL hibernate directement sur la base.TopiaContext.findByQuery(TopiaQuery query) Deprecated.TopiaContext.findByTopiaId(String topiaId) RetrieveTopiaEntityusing its uniqueid.TopiaContext.findUnique(String jpaql, Object... paramNamesAndValues) Allow to do some HQL query and return an unique result.voidTopiaContext.replicate(TopiaContext dstCtxt, Object... entityAndCondition) Permet de dupliquer de ce context vers un context d'une autre base des données sans modification des entites.<T extends TopiaEntity>
voidTopiaContext.replicateEntities(TopiaContext dstCtxt, List<T> entities) Permet de dupliquer les entités du type donné vers un autre context.<T extends TopiaEntity>
voidTopiaContext.replicateEntity(TopiaContext dstCtxt, T entity) Permet de dupliquer une entité du type donné vers un autre context.voidl'inverse de la methodeTopiaContext.backup(File,boolean).voidTopiaContext.rollbackTransaction()annule les modifications apporté a ce context.voidTopiaContext.showCreateSchema()Permet d'afficher les requetes SQL de creation de base.voidTopiaContext.updateSchema()Permet de mettre à jour le schema de la base de données. -
Uses of TopiaException in org.nuiton.topia.framework
Methods in org.nuiton.topia.framework that throw TopiaExceptionModifier and TypeMethodDescriptionvoidTopiaContextImpl.add(TopiaEntity e) voidBackup database in gzip compressed file.TopiaContextImpl.beginTransaction()protected String[]TopiaContextImpl.buildQueries(Object... entityAndCondition) Build the list of queries from the given parameterentityAndCondition.protected voidTopiaContextImpl.checkClosed(String message) voidTopiaContextImpl.clear(boolean dropDatabase) Only h2 supported for nowvoidTopiaContextImpl.clearCache()Clear hibernate cache to free memory.voidTopiaContextImpl.closeContext()voidTopiaContextImpl.commitTransaction()voidTopiaContextImpl.createSchema()intExecute HQL operation on data (Update, Delete)TopiaQuery.execute(TopiaContext transaction) Deprecated.Simple execution of the query.intTopiaQuery.executeCount(TopiaContext transaction) Deprecated.Execute a simple count on the query, i.e. the number of results get from the query.voidTopiaContextImpl.executeSQL(String sqlScript) <E extends TopiaEntity>
ETopiaQuery.executeToEntity(TopiaContext transaction, Class<E> entityClass) Deprecated.Execute the query and get the first result entity.<E extends TopiaEntity>
List<E>TopiaQuery.executeToEntityList(TopiaContext transaction, Class<E> entityClass) Deprecated.Execute the query and get a List of entity.<E extends TopiaEntity>
Map<String,E> TopiaQuery.executeToEntityMap(TopiaContext transaction, Class<E> entityClass) Deprecated.Execute the query and get a Map of entity with topiaId in key.<E extends TopiaEntity,K>
Map<K,E> TopiaQuery.executeToEntityMap(TopiaContext transaction, Class<E> entityClass, String keyName, Class<K> keyClass) Deprecated.Execute the query and get a Map of entity with key type in argument.intTopiaQuery.executeToInteger(TopiaContext transaction, String select) Deprecated.Execute the query and get an Integer for result.TopiaQuery.executeToObject(TopiaContext transaction, String select) Deprecated.Execute the query and get an Object for result.TopiaQuery.executeToString(TopiaContext transaction, String select) Deprecated.Execute the query and get a String for result.List<?>List<?>List<?>TopiaContextImpl.findByQuery(TopiaQuery query) TopiaContextImpl.findByTopiaId(String id) TopiaSQLQuery.findMultipleResult(TopiaContextImplementor tx) Obtain a multiple results fro the builded sql query.TopiaSQLQuery.findSingleResult(TopiaContextImplementor tx) Obtain a single result from the builded sql query.TopiaContextImpl.findUnique(String hql, Object... paramNamesAndValues) <E extends TopiaEntity>
TopiaDAO<E><E extends TopiaEntity,D extends TopiaDAO<E>>
D<E extends TopiaEntity>
TopiaDAO<E>Get DAO for specified class.<E extends TopiaEntity,D extends TopiaDAO<E>>
DGet DAO for specified class.org.hibernate.SessionTopiaContextImpl.getHibernate()org.hibernate.SessionTopiaContextImplementor.getHibernate()booleanTopiaContextImpl.isSchemaExist(Class<?> clazz) booleanTopiaContextImplementor.isSchemaExist(Class<?> clazz) Detect if the table is created on storage for a given persistant class.protected <T extends TopiaEntity>
TopiaEntityTopiaQuery.loadEntityProperty(T entity, String property) Deprecated.Load a property of type TopiaEntity from an other entity.protected voidTopiaQuery.loadProperties(TopiaEntity entity) Deprecated.Load all properties for the entity.protected <T extends TopiaEntity>
ObjectTopiaQuery.loadProperty(T entity, String property) Deprecated.Load a property from an entity.voidTopiaContextImpl.replicate(TopiaContext dstCtxt, Object... entityAndCondition) protected voidTopiaContextImpl.replicate0(TopiaContextImpl dstContextImpl, Object... entities) <T extends TopiaEntity>
voidTopiaContextImpl.replicateEntities(TopiaContext dstCtxt, List<T> entities) <T extends TopiaEntity>
voidTopiaContextImpl.replicateEntity(TopiaContext dstCtxt, T entity) voidRead database from gzip compressed file Only work for h2 databasevoidTopiaContextImpl.rollbackTransaction()voidTopiaContextImpl.showCreateSchema()voidTopiaContextImpl.updateSchema() -
Uses of TopiaException in org.nuiton.topia.persistence
Methods in org.nuiton.topia.persistence that throw TopiaExceptionModifier and TypeMethodDescriptionvoidTopiaEntity.accept(EntityVisitor visitor) Route the entity using avisitor.voidTopiaDAO.computeAndAddRecordsToPager(String hql, TopiaPagerBean pager, Object... params) Execute the counthqlquery and then synch the pager to this result (says fill thePagerBean.getRecords()field and then adapt the number of pages available and the current number page).voidTopiaDAOImpl.computeAndAddRecordsToPager(String hql, TopiaPagerBean pager, Object... params) longTopiaDAO.count()Count the number of existing entities.longTopiaDAOImpl.count()longTopiaDAO.countByQuery(String hql, Object... params) Count the number of entities based on ahql.intTopiaDAODeprecated.countByQuery(TopiaQuery query) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0longTopiaDAOImpl.countByQuery(String hql, Object... params) intTopiaDAOImpl.countByQuery(TopiaQuery query) Permet de sauver un object instancié sans le DAO.Construit une nouvelle instance de l'objet géré par ce DAOConstruit une nouvelle instance de l'objet géré par ce DAOCette methode appelle fireVetoableCreate et fireOnCreated Si vous la surchargé, faites attention a appeler le super ou a appeler vous aussi ces deux methodes.Deprecated.Deprecated.Cette methode appelle fireVetoableCreate et fireOnCreated Si vous la surchargé, faites attention a appeler le super ou a appeler vous aussi ces deux methodes.voidPermet de supprimer une entite.voidvoidTopiaEntityContextable.delete()Delete entity in persistence context.voidPermet de supprimer des entités.voidbooleanTopiaDAO.existByProperties(String propertyName, Object propertyValue, Object... others) Check the existence of an entity withpropertyNamewithpropertyValue.booleanTopiaDAOImpl.existByProperties(String propertyName, Object propertyValue, Object... others) booleanTopiaDAODeprecated.existByQuery(TopiaQuery query) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0booleanTopiaDAOImpl.existByQuery(TopiaQuery query) booleanTopiaDAO.existByTopiaId(String id) Check the existence of an entity with technicalid.booleanTopiaDAOImpl.existByTopiaId(String id) booleanTopiaDAO.existsByQuery(String hql, Object... params) Check the existence of an entity using ahqlquery.booleanTopiaDAOImpl.existsByQuery(String hql, Object... params) TopiaDAO.findAll()Gets all entitys of the dao type in db.TopiaDAOImpl.findAll()TopiaDAOLegacy.findAll()Deprecated.TopiaDAO.findAllByProperties(String propertyName, Object value, Object... others) Gets all entities of the dao type matching thevaluefor the givenpropertyNameandothers.TopiaDAO.findAllByProperties(Map<String, Object> properties) Gets all entities of the dao type matching all theproperties.TopiaDAOImpl.findAllByProperties(String propertyName, Object value, Object... others) TopiaDAOImpl.findAllByProperties(Map<String, Object> properties) TopiaDAOLegacy.findAllByProperties(String propertyName, Object value, Object... others) Deprecated.TopiaDAOLegacy.findAllByProperties(Map<String, Object> properties) Deprecated.TopiaDAO.findAllByProperty(String propertyName, Object value) Gets all entities of the dao type matching thevaluefor the givenpropertyName.TopiaDAOImpl.findAllByProperty(String propertyName, Object value) TopiaDAOLegacy.findAllByProperty(String propertyName, Object value) Deprecated.<R> List<R>TopiaDAO.findAllByQuery(Class<R> type, String hql, Object... params) Gets all entities when executing the given select query for the giventypewhich may not be a entity type (int, long, map,...).TopiaDAO.findAllByQuery(String hql, Object... params) Gets all entities when executing the given select query for the dao entity type.TopiaDAODeprecated.findAllByQuery(TopiaQuery query) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0<R> List<R>TopiaDAOImpl.findAllByQuery(Class<R> type, String hql, Object... params) TopiaDAOImpl.findAllByQuery(String hql, Object... params) TopiaDAOImpl.findAllByQuery(TopiaQuery query) <R> List<R>TopiaDAO.findAllByQueryAndPager(Class<R> type, String hql, TopiaPagerBean pager, Object... params) Gets a page of entities of the given selecthqlquery using thepagerto obtain the window of entities to return.TopiaDAO.findAllByQueryAndPager(String hql, TopiaPagerBean pager, Object... params) Gets a page of entities of the given selecthqlquery using thepagerto obtain the window of entities to return.<R> List<R>TopiaDAOImpl.findAllByQueryAndPager(Class<R> type, String hql, TopiaPagerBean pager, Object... params) TopiaDAOImpl.findAllByQueryAndPager(String hql, TopiaPagerBean pager, Object... params) <R> List<R>TopiaDAO.findAllByQueryWithBound(Class<R> type, String hql, int startIndex, int endIndex, Object... params) Gets a page of entities when executing the given select query for the dao entity type (will only return the window ofstartIndex - endIndexentities).TopiaDAO.findAllByQueryWithBound(String hql, int startIndex, int endIndex, Object... params) Gets a page of entities when executing the given select query for the dao entity type (will only return the window ofstartIndex - endIndexentities).<R> List<R>TopiaDAOImpl.findAllByQueryWithBound(Class<R> type, String hql, int startIndex, int endIndex, Object... params) TopiaDAOImpl.findAllByQueryWithBound(String hql, int startIndex, int endIndex, Object... params) TopiaDAO.findAllContains(String propertyName, Object property) Récupère toutes les entités (du type géré par ce dao) dont la collection nomméepropertyNamecontient lapropertydonnée.TopiaDAOImpl.findAllContains(String propertyName, Object property) TopiaDAO.findAllIds()Recuperation de tous les ids en base pour le type d'entite du dao.TopiaDAOImpl.findAllIds()TopiaDAOLegacy.findAllIds()Deprecated.TopiaDAO.findAllLazyByQuery(int batchSize, String hql, Object... params) Gets all entities in lazy mode when executing the given select query for the dao entity type.<R> Iterable<R>TopiaDAO.findAllLazyByQuery(Class<R> type, int batchSize, String hql, Object... params) Gets all entities in lazy mode when executing the given select query for the giventypewhich may not be a entity type (int, long, map,...).<R> Iterable<R>TopiaDAO.findAllLazyByQuery(Class<R> type, String hql, Object... params) Gets all entities in lazy mode when executing the given select query for the giventypewhich may not be a entity type (int, long, map,...).TopiaDAO.findAllLazyByQuery(String hql, Object... params) Gets all entities in lazy mode when executing the given select query for the dao entity type.TopiaDAOImpl.findAllLazyByQuery(int batchSize, String hql, Object... params) <R> Iterable<R>TopiaDAOImpl.findAllLazyByQuery(Class<R> type, int batchSize, String hql, Object... params) <R> Iterable<R>TopiaDAOImpl.findAllLazyByQuery(Class<R> type, String hql, Object... params) TopiaDAOImpl.findAllLazyByQuery(String hql, Object... params) TopiaDAODeprecated.findAllMappedByQuery(TopiaQuery query) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0TopiaDAODeprecated.findAllMappedByQuery(TopiaQuery query, String keyName, Class<K> keyClass) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query) TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query, String keyName, Class<K> keyClass) Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> TopiaDAO.findAllUsages(E entity) Find all usages of the givenentity.Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> TopiaDAOImpl.findAllUsages(E e) TopiaDAO.findAllWithOrder(String... propertyNames) Gets all entites for the dao entity type order by givenpropertyNames.TopiaDAOImpl.findAllWithOrder(String... propertyNames) TopiaDAOLegacy.findAllWithOrder(String... propertyNames) Deprecated.TopiaDAO.findByPrimaryKey(Object... k) Recherche la classe en utilisant la cle naturelle, si la cle naturelle est composé de plusieurs champs alors les arguments passés doivent être dans l'ordre de declaration dans le fichier de mappingTopiaDAO.findByPrimaryKey(Map<String, Object> keys) Recherche la classe en utilisant la cle naturelle, chaque champs de la cle naturelle est une entre de la map passe en argument.TopiaDAOImpl.findByPrimaryKey(Object... k) TopiaDAOImpl.findByPrimaryKey(Map<String, Object> keys) TopiaDAOLegacy.findByPrimaryKey(Object... k) Deprecated.TopiaDAOLegacy.findByPrimaryKey(Map<String, Object> keys) Deprecated.TopiaDAO.findByProperties(String propertyName, Object value, Object... others) TopiaDAO.findByProperties(Map<String, Object> properties) Find an entity matchingproperties.TopiaDAOImpl.findByProperties(String propertyName, Object value, Object... others) TopiaDAOImpl.findByProperties(Map<String, Object> properties) TopiaDAOLegacy.findByProperties(String propertyName, Object value, Object... others) Deprecated.TopiaDAOLegacy.findByProperties(Map<String, Object> properties) Deprecated.TopiaDAO.findByProperty(String propertyName, Object value) Find an entity matchingvaluefor the givenpropertyName.TopiaDAOImpl.findByProperty(String propertyName, Object value) TopiaDAOLegacy.findByProperty(String propertyName, Object value) Deprecated.<R> RTopiaDAO.findByQuery(Class<R> type, String hql, Object... params) Execute une requête basé sur letypedonné.TopiaDAO.findByQuery(String hql, Object... params) Execute une requête basé sur l'entité du DAO.TopiaDAODeprecated.findByQuery(TopiaQuery query) Deprecated.since 2.6.12,TopiaQuerywill be removed in version 3.0<R> RTopiaDAOImpl.findByQuery(Class<R> type, String hql, Object... params) TopiaDAOImpl.findByQuery(String hql, Object... params) TopiaDAOImpl.findByQuery(TopiaQuery query) TopiaDAO.findByTopiaId(String id) Find an entity corresponding to theid.TopiaDAOImpl.findByTopiaId(String id) TopiaDAOLegacy.findByTopiaId(String k) Deprecated.TopiaDAO.findContains(String propertyName, Object property) Récupère la première entité (du type géré par ce dao) dont la collection nomméepropertyNamecontient lapropertydonnée.TopiaDAOImpl.findContains(String propertyName, Object property) <R extends TopiaEntity>
List<R>TopiaDAO.findUsages(Class<R> type, E entity) Find usages of the givenentityin the entities of the giventype.<U extends TopiaEntity>
List<U>TopiaDAOImpl.findUsages(Class<U> type, E e) TopiaEntity.getAggregate()TopiaEntityAbstract.getAggregate()TopiaEntity.getComposite()TopiaEntityAbstract.getComposite()protected SerializableRetourne l'id de l'entityprotected SerializableRetourne l'id de l'entity representer comme une mapTopiaDAODeprecated.getRequestPermission(String topiaId, int actions) Deprecated.since 2.6.14,TopiaQuerywill be removed in version 3.0TopiaDAOImpl.getRequestPermission(String topiaId, int actions) voidTopiaDAO.init(TopiaContextImplementor context, Class<E> entityClass) When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.voidTopiaDAOImpl.init(TopiaContextImplementor context, Class<E> entityClass) When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.protected ETopiaDAOLegacy.instanciateNew()Deprecated.TopiaDAO.newInstance()Create a new instance of managed entity not persisted.TopiaDAOImpl.newInstance()voidTopiaEntityAbstract.setTopiaContext(TopiaContext context) voidTopiaEntityContextable.setTopiaContext(TopiaContext topiaContext) Set topia context.Permet d'ajouter ou de mettre a jour un objet.voidTopiaEntityContextable.update()Update entity in persistence context. -
Uses of TopiaException in org.nuiton.topia.persistence.csv.in
Methods in org.nuiton.topia.persistence.csv.in that throw TopiaExceptionModifier and TypeMethodDescriptionstatic <T extends TopiaEntityEnum,E extends TopiaEntity>
voidTopiaCsvImports.importAllEntities(TopiaDAO<E> dao, TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) static <T extends TopiaEntityEnum,E extends TopiaEntity>
voidTopiaCsvImports.importAllEntities(TopiaDAO<E> dao, TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum,E extends TopiaEntity>
Iterable<E>TopiaCsvImports.importAllEntitiesAndReturnThem(TopiaDAO<E> dao, TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) voidImportStrategy.importAssociation(AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult) Import a association given aimporterwith an optional csv result.static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importAssociation(Reader reader, ImportStrategy<T> importStrategy, AssociationMeta<T> meta, CsvImportResult<T> csvResult) To import a association (given by hismeta) from a reader and a strategy.static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importAssociation(TopiaContext tx, AssociationMeta<T> meta, Map<String, TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importAssociation(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importNMAssociation(TopiaContext tx, AssociationMeta<T> meta, Map<String, TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importNMAssociation(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum,E extends TopiaEntity>
voidTopiaCsvImports.importNotExistingEntities(TopiaDAO<E> dao, TableMeta<T> meta, Map<String, TopiaEntity> universe, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) <E extends TopiaEntity>
voidImportStrategy.importTable(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) Import a table given aimporterwith an optional csv result.static <T extends TopiaEntityEnum,E extends TopiaEntity>
voidTopiaCsvImports.importTable(Reader reader, ImportStrategy<T> importStrategy, TableMeta<T> meta, CsvImportResult<T> csvResult) To import a table (given by hismeta) from a reader and a strategy.static <T extends TopiaEntityEnum,E extends TopiaEntity>
Iterable<E>TopiaCsvImports.importTableAndReturn(Reader reader, ImportStrategy<T> importStrategy, TableMeta<T> meta, CsvImportResult<T> csvResult) To import a table (given by hismeta) from a reader and a strategy.<E extends TopiaEntity>
Iterable<E>ImportStrategy.importTableAndReturnThem(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) Import a table given aimporterwith an optional csv result, and return them. -
Uses of TopiaException in org.nuiton.topia.persistence.util
Methods in org.nuiton.topia.persistence.util that throw TopiaExceptionModifier and TypeMethodDescriptionvoidvoidAdd a erntity to his parentprotected StringDBMapping.checkSequence(Class<? extends TopiaEntity> entityClass, String propertyName) protected StringDBMapping.checkSequence(String sequenceKey) Creator.create(TopiaContext tx, P parent, E from) Perform the creation of an entity.static voidTopiaEntityHelper.createDBFromSQL(File dbDirectory, TopiaContext topiaContext, URI resource) Create a new database from a sql dump locating in a gzip file.voidDBMapping.createSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) voidDBMapping.createSequence(String sequenceKey, TopiaContext ctxt) voidDBMapping.createSequence(String sequenceKey, TopiaContext ctxt, boolean check) voidDBMapping.createSequences(TopiaContext ctxt) Collector.detect(TopiaEntity... entities) static Map<Class<? extends TopiaEntity>,List<TopiaEntity>> TopiaEntityHelper.detectEntities(TopiaEntityEnum[] contracts, Set<Class<? extends TopiaEntity>> types, TopiaEntity... entities) Collecte l'ensemble des entites (via un parcours en profondeur) avec un filtrage sur les types d'entites a retourner.static TopiaEntityIdsMapTopiaEntityHelper.detectEntityIds(TopiaEntityEnum[] contracts, Set<Class<? extends TopiaEntity>> types, TopiaEntity... entities) Collecte l'ensemble des ids d'entites (via un parcours en profondeur) avec un filtrage sur les types d'entites a retourner.static SortedMap<TopiaEntity,List<TopiaEntityRef>> TopiaEntityHelper.detectReferences(TopiaEntityEnum[] contracts, String[] expressions, Collection<? extends TopiaEntity> entities) Collecte toutes les references d'un ensemble d'entites donnees par leur topiaId sur un ensemble d'entites donne.static SortedMap<TopiaEntity,List<TopiaEntityRef>> TopiaEntityHelper.detectReferences(TopiaEntityEnum[] contracts, String[] expressions, TopiaEntity entities) Collecte toutes les references d'un ensemble d'entites donnees par leur topiaId sur un ensemble d'entites donne.static Set<Class<? extends TopiaEntity>>TopiaEntityHelper.detectTypes(TopiaEntityEnum[] contracts, TopiaEntity... entities) Collecte l'ensemble des types d'entites (via un parcours en profondeur).protected voidDBMapping.doSQLWork(TopiaContext ctxt, String sql) booleanDBMapping.existSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) booleanDBMapping.existSequence(String sequenceKey, TopiaContext ctxt) booleanDBMapping.existSequence(String sequenceKey, TopiaContext ctxt, boolean check) protected BigIntegerDBMapping.getBigInteger(TopiaContext ctxt, String sql, BigInteger defaultSize) protected abstract Class<? extends TopiaEntity>DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt) DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check) protected StringDBMapping.getDBProperty(Class<? extends TopiaEntity> entityClass, String property) protected StringDBMapping.getDBTable(Class<? extends TopiaEntity> entityClass) static <E extends TopiaEntity>
List<E>TopiaEntityHelper.getEntities(TopiaContextImplementor srcCtxt, List<E> entityList, boolean canBeNull) static TopiaEntity[]TopiaEntityHelper.getEntities(TopiaContext srcCtxt, String... entityList) static List<? extends TopiaEntity>TopiaEntityHelper.getEntitiesList(TopiaContext srcCtxt, String... entityList) static <E extends TopiaEntity>
ETopiaEntityHelper.getExistingEntity(TopiaDAO<E> dao, String topiaId) Récupère une entité qui doit exister à partir de son id.DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt) DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check) protected StringDBMapping.getSequenceSQL(String pattern, Class<? extends TopiaEntity> entityClass, String propertyName) protected StringDBMapping.getSequenceSQL(String pattern, String sequenceKey) voidDBMapping.init(TopiaContext ctxt, boolean doCreate, boolean doUpdate) voidEntityListUpdator.removeFromList(P parent, E bean) voidListUpdator.removeFromList(P parent, E e) Remove from a prent entity a given child.static voidTopiaEntityHelper.saveDB(File gzipFile, TopiaContext topiaContext) Save the given database to a gzip file.voidDBMapping.updateSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) voidDBMapping.updateSequence(String sequenceKey, TopiaContext ctxt) voidDBMapping.updateSequence(String sequenceKey, TopiaContext ctxt, boolean check) voidDBMapping.updateSequences(TopiaContext ctxt)
TopiaQuerywill be removed in version 3.0