Uses of Class
org.nuiton.topia.TopiaException

Packages that use TopiaException 
Package Description
org.nuiton.topia
TODO-FD20100507 : Need update this javadoc for ToPIA 2.4
org.nuiton.topia.framework
Contains two interfaces, one TopiaContextImplementor for internal manipulations of TopiaContext and one TopiaService for topia services.
org.nuiton.topia.persistence
This package contains interfaces and abstract classes for entities and daos.
org.nuiton.topia.persistence.csv.in
Package for csv import of entities.
org.nuiton.topia.persistence.util  
  • Uses of TopiaException in org.nuiton.topia

    Subclasses of TopiaException in org.nuiton.topia 
    Modifier and Type Class Description
    class  TopiaNotFoundException
    TODO-FD20100507 : Need javadoc.
    Methods in org.nuiton.topia that throw TopiaException 
    Modifier and Type Method Description
    void TopiaContext.add​(TopiaEntity e)
    Permet d'ajouter dans le TopiaContext une TopiaEntity créé par un autre context.
    void TopiaContext.backup​(java.io.File file, boolean compress)
    Sauve 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 TopiaContext.beginTransaction()
    Return a new context containing his own transaction.
    void TopiaContext.clear​(boolean dropDatabase)
    Supprime toutes les tables et autres elements de la database.
    void TopiaContext.clearCache()
    Clear persistence implementation cache.
    void TopiaContext.closeContext()
    Ferme le contexte.
    void TopiaContext.commitTransaction()
    applique les modifications apporté a ce context sur la base de données.
    void TopiaContext.createSchema()
    Permet de créer le schema de la base de données.
    int TopiaContext.execute​(java.lang.String hql, java.lang.Object... args)
    Execute HQL operation on data (Update, Delete).
    void TopiaContext.executeSQL​(java.lang.String sqlScript)
    Execute a given sql code inside this transaction.
    java.util.List TopiaContext.find​(java.lang.String hql, int startIndex, int endIndex, java.lang.Object... args)
    Permet de faire une requete HQL hibernate directement sur la base en precisant la fenetre des elements a remonter avec les parametres startIndex et endIndex.
    java.util.List TopiaContext.findAll​(java.lang.String hql, java.lang.Object... args)
    Permet de faire une requete HQL hibernate directement sur la base.
    java.util.List TopiaContext.findByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    TopiaEntity TopiaContext.findByTopiaId​(java.lang.String topiaId)
    Retrieve TopiaEntity using its unique id.
    java.lang.Object TopiaContext.findUnique​(java.lang.String jpaql, java.lang.Object... paramNamesAndValues)
    Allow to do some HQL query and return an unique result.
    void TopiaContext.replicate​(TopiaContext dstCtxt, java.lang.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>
    void
    TopiaContext.replicateEntities​(TopiaContext dstCtxt, java.util.List<T> entities)
    Permet de dupliquer les entités du type donné vers un autre context.
    <T extends TopiaEntity>
    void
    TopiaContext.replicateEntity​(TopiaContext dstCtxt, T entity)
    Permet de dupliquer une entité du type donné vers un autre context.
    void TopiaContext.restore​(java.io.File file)
    l'inverse de la methode TopiaContext.backup(File,boolean).
    void TopiaContext.rollbackTransaction()
    annule les modifications apporté a ce context.
    void TopiaContext.showCreateSchema()
    Permet d'afficher les requetes SQL de creation de base.
    void TopiaContext.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 TopiaException 
    Modifier and Type Method Description
    void TopiaContextImpl.add​(TopiaEntity e)  
    void TopiaContextImpl.backup​(java.io.File file, boolean compress)
    Backup database in gzip compressed file.
    TopiaContext TopiaContextImpl.beginTransaction()  
    protected java.lang.String[] TopiaContextImpl.buildQueries​(java.lang.Object... entityAndCondition)
    Build the list of queries from the given parameter entityAndCondition.
    protected void TopiaContextImpl.checkClosed​(java.lang.String message)  
    void TopiaContextImpl.clear​(boolean dropDatabase)
    Only h2 supported for now
    void TopiaContextImpl.clearCache()
    Clear hibernate cache to free memory.
    void TopiaContextImpl.closeContext()  
    void TopiaContextImpl.commitTransaction()  
    void TopiaContextImpl.createSchema()  
    int TopiaContextImpl.execute​(java.lang.String hql, java.lang.Object... args)
    Execute HQL operation on data (Update, Delete)
    java.util.List TopiaQuery.execute​(TopiaContext transaction)
    Deprecated.
    Simple execution of the query.
    int TopiaQuery.executeCount​(TopiaContext transaction)
    Deprecated.
    Execute a simple count on the query, i.e. the number of results get from the query.
    void TopiaContextImpl.executeSQL​(java.lang.String sqlScript)  
    <E extends TopiaEntity>
    E
    TopiaQuery.executeToEntity​(TopiaContext transaction, java.lang.Class<E> entityClass)
    Deprecated.
    Execute the query and get the first result entity.
    <E extends TopiaEntity>
    java.util.List<E>
    TopiaQuery.executeToEntityList​(TopiaContext transaction, java.lang.Class<E> entityClass)
    Deprecated.
    Execute the query and get a List of entity.
    <E extends TopiaEntity>
    java.util.Map<java.lang.String,​E>
    TopiaQuery.executeToEntityMap​(TopiaContext transaction, java.lang.Class<E> entityClass)
    Deprecated.
    Execute the query and get a Map of entity with topiaId in key.
    <E extends TopiaEntity,​ K>
    java.util.Map<K,​E>
    TopiaQuery.executeToEntityMap​(TopiaContext transaction, java.lang.Class<E> entityClass, java.lang.String keyName, java.lang.Class<K> keyClass)
    Deprecated.
    Execute the query and get a Map of entity with key type in argument.
    int TopiaQuery.executeToInteger​(TopiaContext transaction, java.lang.String select)
    Deprecated.
    Execute the query and get an Integer for result.
    java.lang.Object TopiaQuery.executeToObject​(TopiaContext transaction, java.lang.String select)
    Deprecated.
    Execute the query and get an Object for result.
    java.lang.String TopiaQuery.executeToString​(TopiaContext transaction, java.lang.String select)
    Deprecated.
    Execute the query and get a String for result.
    java.util.List<?> TopiaContextImpl.find​(java.lang.String hql, int startIndex, int endIndex, java.lang.Object... args)  
    java.util.List<?> TopiaContextImpl.findAll​(java.lang.String hql, java.lang.Object... args)  
    java.util.List<?> TopiaContextImpl.findByQuery​(TopiaQuery query)  
    TopiaEntity TopiaContextImpl.findByTopiaId​(java.lang.String id)  
    java.util.List<O> TopiaSQLQuery.findMultipleResult​(TopiaContextImplementor tx)
    Obtain a multiple results fro the builded sql query.
    O TopiaSQLQuery.findSingleResult​(TopiaContextImplementor tx)
    Obtain a single result from the builded sql query.
    java.lang.Object TopiaContextImpl.findUnique​(java.lang.String hql, java.lang.Object... paramNamesAndValues)  
    <E extends TopiaEntity>
    TopiaDAO<E>
    TopiaContextImpl.getDAO​(java.lang.Class<E> entityClass)  
    <E extends TopiaEntity,​ D extends TopiaDAO<E>>
    D
    TopiaContextImpl.getDAO​(java.lang.Class<E> entityClass, java.lang.Class<D> daoClass)  
    <E extends TopiaEntity>
    TopiaDAO<E>
    TopiaContextImplementor.getDAO​(java.lang.Class<E> entityClass)
    Get DAO for specified class.
    <E extends TopiaEntity,​ D extends TopiaDAO<E>>
    D
    TopiaContextImplementor.getDAO​(java.lang.Class<E> entityClass, java.lang.Class<D> daoClass)
    Get DAO for specified class.
    org.hibernate.Session TopiaContextImpl.getHibernate()  
    org.hibernate.Session TopiaContextImplementor.getHibernate()  
    boolean TopiaContextImpl.isSchemaExist​(java.lang.Class<?> clazz)  
    boolean TopiaContextImplementor.isSchemaExist​(java.lang.Class<?> clazz)
    Detect if the table is created on storage for a given persistant class.
    protected <T extends TopiaEntity>
    TopiaEntity
    TopiaQuery.loadEntityProperty​(T entity, java.lang.String property)
    Deprecated.
    Load a property of type TopiaEntity from an other entity.
    protected void TopiaQuery.loadProperties​(TopiaEntity entity)
    Deprecated.
    Load all properties for the entity.
    protected <T extends TopiaEntity>
    java.lang.Object
    TopiaQuery.loadProperty​(T entity, java.lang.String property)
    Deprecated.
    Load a property from an entity.
    void TopiaContextImpl.replicate​(TopiaContext dstCtxt, java.lang.Object... entityAndCondition)  
    protected void TopiaContextImpl.replicate0​(TopiaContextImpl dstContextImpl, java.lang.Object... entities)  
    <T extends TopiaEntity>
    void
    TopiaContextImpl.replicateEntities​(TopiaContext dstCtxt, java.util.List<T> entities)  
    <T extends TopiaEntity>
    void
    TopiaContextImpl.replicateEntity​(TopiaContext dstCtxt, T entity)  
    void TopiaContextImpl.restore​(java.io.File file)
    Read database from gzip compressed file Only work for h2 database
    void TopiaContextImpl.rollbackTransaction()  
    void TopiaContextImpl.showCreateSchema()  
    void TopiaContextImpl.updateSchema()  
  • Uses of TopiaException in org.nuiton.topia.persistence

    Methods in org.nuiton.topia.persistence that throw TopiaException 
    Modifier and Type Method Description
    void TopiaEntity.accept​(EntityVisitor visitor)
    Route the entity using a visitor.
    void TopiaDAO.computeAndAddRecordsToPager​(java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)
    Execute the count hql query and then synch the pager to this result (says fill the PagerBean.getRecords() field and then adapt the number of pages available and the current number page).
    void TopiaDAOImpl.computeAndAddRecordsToPager​(java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)  
    long TopiaDAO.count()
    Count the number of existing entities.
    long TopiaDAOImpl.count()  
    long TopiaDAO.countByQuery​(java.lang.String hql, java.lang.Object... params)
    Count the number of entities based on a hql.
    int TopiaDAODeprecated.countByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    long TopiaDAOImpl.countByQuery​(java.lang.String hql, java.lang.Object... params)  
    int TopiaDAOImpl.countByQuery​(TopiaQuery query)  
    E TopiaDAO.create​(E e)
    Permet de sauver un object instancié sans le DAO.
    E TopiaDAO.create​(java.lang.Object... properties)
    Construit une nouvelle instance de l'objet géré par ce DAO
    E TopiaDAO.create​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Construit une nouvelle instance de l'objet géré par ce DAO
    E TopiaDAOImpl.create​(E entity)  
    E TopiaDAOImpl.create​(java.lang.Object... properties)  
    E TopiaDAOImpl.create​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Cette methode appelle fireVetoableCreate et fireOnCreated Si vous la surchargé, faites attention a appeler le super ou a appeler vous aussi ces deux methodes.
    E TopiaDAOLegacy.create​(java.lang.Object... properties)
    Deprecated.
     
    E TopiaDAOLegacy.create​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    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.
    void TopiaDAO.delete​(E e)
    Permet de supprimer une entite.
    void TopiaDAOImpl.delete​(E e)  
    void TopiaEntityContextable.delete()
    Delete entity in persistence context.
    void TopiaDAO.deleteAll​(java.lang.Iterable<E> entities)
    Permet de supprimer des entités.
    void TopiaDAOImpl.deleteAll​(java.lang.Iterable<E> entities)  
    boolean TopiaDAO.existByProperties​(java.lang.String propertyName, java.lang.Object propertyValue, java.lang.Object... others)
    Check the existence of an entity with propertyName with propertyValue.
    boolean TopiaDAOImpl.existByProperties​(java.lang.String propertyName, java.lang.Object propertyValue, java.lang.Object... others)  
    boolean TopiaDAODeprecated.existByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    boolean TopiaDAOImpl.existByQuery​(TopiaQuery query)  
    boolean TopiaDAO.existByTopiaId​(java.lang.String id)
    Check the existence of an entity with technical id.
    boolean TopiaDAOImpl.existByTopiaId​(java.lang.String id)  
    boolean TopiaDAO.existsByQuery​(java.lang.String hql, java.lang.Object... params)
    Check the existence of an entity using a hql query.
    boolean TopiaDAOImpl.existsByQuery​(java.lang.String hql, java.lang.Object... params)  
    java.util.List<E> TopiaDAO.findAll()
    Gets all entitys of the dao type in db.
    java.util.List<E> TopiaDAOImpl.findAll()  
    java.util.List<E> TopiaDAOLegacy.findAll()
    Deprecated.
     
    java.util.List<E> TopiaDAO.findAllByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)
    Gets all entities of the dao type matching the value for the given propertyName and others.
    java.util.List<E> TopiaDAO.findAllByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Gets all entities of the dao type matching all the properties.
    java.util.List<E> TopiaDAOImpl.findAllByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)  
    java.util.List<E> TopiaDAOImpl.findAllByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)  
    java.util.List<E> TopiaDAOLegacy.findAllByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)
    Deprecated.
     
    java.util.List<E> TopiaDAOLegacy.findAllByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Deprecated.
     
    java.util.List<E> TopiaDAO.findAllByProperty​(java.lang.String propertyName, java.lang.Object value)
    Gets all entities of the dao type matching the value for the given propertyName.
    java.util.List<E> TopiaDAOImpl.findAllByProperty​(java.lang.String propertyName, java.lang.Object value)  
    java.util.List<E> TopiaDAOLegacy.findAllByProperty​(java.lang.String propertyName, java.lang.Object value)
    Deprecated.
     
    <R> java.util.List<R> TopiaDAO.findAllByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)
    Gets all entities when executing the given select query for the given type which may not be a entity type (int, long, map,...).
    java.util.List<E> TopiaDAO.findAllByQuery​(java.lang.String hql, java.lang.Object... params)
    Gets all entities when executing the given select query for the dao entity type.
    java.util.List<E> TopiaDAODeprecated.findAllByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    <R> java.util.List<R> TopiaDAOImpl.findAllByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)  
    java.util.List<E> TopiaDAOImpl.findAllByQuery​(java.lang.String hql, java.lang.Object... params)  
    java.util.List<E> TopiaDAOImpl.findAllByQuery​(TopiaQuery query)  
    <R> java.util.List<R> TopiaDAO.findAllByQueryAndPager​(java.lang.Class<R> type, java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)
    Gets a page of entities of the given select hql query using the pager to obtain the window of entities to return.
    java.util.List<E> TopiaDAO.findAllByQueryAndPager​(java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)
    Gets a page of entities of the given select hql query using the pager to obtain the window of entities to return.
    <R> java.util.List<R> TopiaDAOImpl.findAllByQueryAndPager​(java.lang.Class<R> type, java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)  
    java.util.List<E> TopiaDAOImpl.findAllByQueryAndPager​(java.lang.String hql, TopiaPagerBean pager, java.lang.Object... params)  
    <R> java.util.List<R> TopiaDAO.findAllByQueryWithBound​(java.lang.Class<R> type, java.lang.String hql, int startIndex, int endIndex, java.lang.Object... params)
    Gets a page of entities when executing the given select query for the dao entity type (will only return the window of startIndex - endIndex entities).
    java.util.List<E> TopiaDAO.findAllByQueryWithBound​(java.lang.String hql, int startIndex, int endIndex, java.lang.Object... params)
    Gets a page of entities when executing the given select query for the dao entity type (will only return the window of startIndex - endIndex entities).
    <R> java.util.List<R> TopiaDAOImpl.findAllByQueryWithBound​(java.lang.Class<R> type, java.lang.String hql, int startIndex, int endIndex, java.lang.Object... params)  
    java.util.List<E> TopiaDAOImpl.findAllByQueryWithBound​(java.lang.String hql, int startIndex, int endIndex, java.lang.Object... params)  
    java.util.List<E> TopiaDAO.findAllContains​(java.lang.String propertyName, java.lang.Object property)
    Récupère toutes les entités (du type géré par ce dao) dont la collection nommée propertyName contient la property donnée.
    java.util.List<E> TopiaDAOImpl.findAllContains​(java.lang.String propertyName, java.lang.Object property)  
    java.util.List<java.lang.String> TopiaDAO.findAllIds()
    Recuperation de tous les ids en base pour le type d'entite du dao.
    java.util.List<java.lang.String> TopiaDAOImpl.findAllIds()  
    java.util.List<java.lang.String> TopiaDAOLegacy.findAllIds()
    Deprecated.
     
    java.lang.Iterable<E> TopiaDAO.findAllLazyByQuery​(int batchSize, java.lang.String hql, java.lang.Object... params)
    Gets all entities in lazy mode when executing the given select query for the dao entity type.
    <R> java.lang.Iterable<R> TopiaDAO.findAllLazyByQuery​(java.lang.Class<R> type, int batchSize, java.lang.String hql, java.lang.Object... params)
    Gets all entities in lazy mode when executing the given select query for the given type which may not be a entity type (int, long, map,...).
    <R> java.lang.Iterable<R> TopiaDAO.findAllLazyByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)
    Gets all entities in lazy mode when executing the given select query for the given type which may not be a entity type (int, long, map,...).
    java.lang.Iterable<E> TopiaDAO.findAllLazyByQuery​(java.lang.String hql, java.lang.Object... params)
    Gets all entities in lazy mode when executing the given select query for the dao entity type.
    java.lang.Iterable<E> TopiaDAOImpl.findAllLazyByQuery​(int batchSize, java.lang.String hql, java.lang.Object... params)  
    <R> java.lang.Iterable<R> TopiaDAOImpl.findAllLazyByQuery​(java.lang.Class<R> type, int batchSize, java.lang.String hql, java.lang.Object... params)  
    <R> java.lang.Iterable<R> TopiaDAOImpl.findAllLazyByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)  
    java.lang.Iterable<E> TopiaDAOImpl.findAllLazyByQuery​(java.lang.String hql, java.lang.Object... params)  
    java.util.Map<java.lang.String,​E> TopiaDAODeprecated.findAllMappedByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    <K> java.util.Map<K,​E> TopiaDAODeprecated.findAllMappedByQuery​(TopiaQuery query, java.lang.String keyName, java.lang.Class<K> keyClass)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    java.util.Map<java.lang.String,​E> TopiaDAOImpl.findAllMappedByQuery​(TopiaQuery query)  
    <K> java.util.Map<K,​E> TopiaDAOImpl.findAllMappedByQuery​(TopiaQuery query, java.lang.String keyName, java.lang.Class<K> keyClass)  
    java.util.Map<java.lang.Class<? extends TopiaEntity>,​java.util.List<? extends TopiaEntity>> TopiaDAO.findAllUsages​(E entity)
    Find all usages of the given entity.
    java.util.Map<java.lang.Class<? extends TopiaEntity>,​java.util.List<? extends TopiaEntity>> TopiaDAOImpl.findAllUsages​(E e)  
    java.util.List<E> TopiaDAO.findAllWithOrder​(java.lang.String... propertyNames)
    Gets all entites for the dao entity type order by given propertyNames.
    java.util.List<E> TopiaDAOImpl.findAllWithOrder​(java.lang.String... propertyNames)  
    java.util.List<E> TopiaDAOLegacy.findAllWithOrder​(java.lang.String... propertyNames)
    Deprecated.
     
    E TopiaDAO.findByPrimaryKey​(java.lang.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 mapping
    E TopiaDAO.findByPrimaryKey​(java.util.Map<java.lang.String,​java.lang.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.
    E TopiaDAOImpl.findByPrimaryKey​(java.lang.Object... k)  
    E TopiaDAOImpl.findByPrimaryKey​(java.util.Map<java.lang.String,​java.lang.Object> keys)  
    E TopiaDAOLegacy.findByPrimaryKey​(java.lang.Object... k)
    Deprecated.
     
    E TopiaDAOLegacy.findByPrimaryKey​(java.util.Map<java.lang.String,​java.lang.Object> keys)
    Deprecated.
     
    E TopiaDAO.findByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)  
    E TopiaDAO.findByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Find an entity matching properties.
    E TopiaDAOImpl.findByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)  
    E TopiaDAOImpl.findByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)  
    E TopiaDAOLegacy.findByProperties​(java.lang.String propertyName, java.lang.Object value, java.lang.Object... others)
    Deprecated.
     
    E TopiaDAOLegacy.findByProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
    Deprecated.
     
    E TopiaDAO.findByProperty​(java.lang.String propertyName, java.lang.Object value)
    Find an entity matching value for the given propertyName.
    E TopiaDAOImpl.findByProperty​(java.lang.String propertyName, java.lang.Object value)  
    E TopiaDAOLegacy.findByProperty​(java.lang.String propertyName, java.lang.Object value)
    Deprecated.
     
    <R> R TopiaDAO.findByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)
    Execute une requête basé sur le type donné.
    E TopiaDAO.findByQuery​(java.lang.String hql, java.lang.Object... params)
    Execute une requête basé sur l'entité du DAO.
    E TopiaDAODeprecated.findByQuery​(TopiaQuery query)
    Deprecated.
    since 2.6.12, TopiaQuery will be removed in version 3.0
    <R> R TopiaDAOImpl.findByQuery​(java.lang.Class<R> type, java.lang.String hql, java.lang.Object... params)  
    E TopiaDAOImpl.findByQuery​(java.lang.String hql, java.lang.Object... params)  
    E TopiaDAOImpl.findByQuery​(TopiaQuery query)  
    E TopiaDAO.findByTopiaId​(java.lang.String id)
    Find an entity corresponding to the id.
    E TopiaDAOImpl.findByTopiaId​(java.lang.String id)  
    E TopiaDAOLegacy.findByTopiaId​(java.lang.String k)
    Deprecated.
     
    E TopiaDAO.findContains​(java.lang.String propertyName, java.lang.Object property)
    Récupère la première entité (du type géré par ce dao) dont la collection nommée propertyName contient la property donnée.
    E TopiaDAOImpl.findContains​(java.lang.String propertyName, java.lang.Object property)  
    <R extends TopiaEntity>
    java.util.List<R>
    TopiaDAO.findUsages​(java.lang.Class<R> type, E entity)
    Find usages of the given entity in the entities of the given type.
    <U extends TopiaEntity>
    java.util.List<U>
    TopiaDAOImpl.findUsages​(java.lang.Class<U> type, E e)  
    java.util.List<TopiaEntity> TopiaEntity.getAggregate()  
    java.util.List<TopiaEntity> TopiaEntityAbstract.getAggregate()  
    java.util.List<TopiaEntity> TopiaEntity.getComposite()  
    java.util.List<TopiaEntity> TopiaEntityAbstract.getComposite()  
    protected java.io.Serializable TopiaDAOImpl.getId​(E e)
    Retourne l'id de l'entity
    protected java.io.Serializable TopiaDAOImpl.getId​(java.util.Map map)
    Retourne l'id de l'entity representer comme une map
    java.util.List<java.security.Permission> TopiaDAODeprecated.getRequestPermission​(java.lang.String topiaId, int actions)
    Deprecated.
    since 2.6.14, TopiaQuery will be removed in version 3.0
    java.util.List<java.security.Permission> TopiaDAOImpl.getRequestPermission​(java.lang.String topiaId, int actions)  
    void TopiaDAO.init​(TopiaContextImplementor context, java.lang.Class<E> entityClass)
    When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.
    void TopiaDAOImpl.init​(TopiaContextImplementor context, java.lang.Class<E> entityClass)
    When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.
    protected E TopiaDAOLegacy.instanciateNew()
    Deprecated.
     
    E TopiaDAO.newInstance()
    Create a new instance of managed entity not persisted.
    E TopiaDAOImpl.newInstance()  
    void TopiaEntityAbstract.setTopiaContext​(TopiaContext context)  
    void TopiaEntityContextable.setTopiaContext​(TopiaContext topiaContext)
    Set topia context.
    E TopiaDAO.update​(E e)
    Permet d'ajouter ou de mettre a jour un objet.
    E TopiaDAOImpl.update​(E e)  
    void TopiaEntityContextable.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 TopiaException 
    Modifier and Type Method Description
    static <T extends TopiaEntityEnum,​ E extends TopiaEntity>
    void
    TopiaCsvImports.importAllEntities​(TopiaDAO<E> dao, TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult)  
    static <T extends TopiaEntityEnum,​ E extends TopiaEntity>
    void
    TopiaCsvImports.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>
    java.lang.Iterable<E>
    TopiaCsvImports.importAllEntitiesAndReturnThem​(TopiaDAO<E> dao, TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult)  
    void ImportStrategy.importAssociation​(AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult)
    Import a association given a importer with an optional csv result.
    static <T extends TopiaEntityEnum>
    void
    TopiaCsvImports.importAssociation​(java.io.Reader reader, ImportStrategy<T> importStrategy, AssociationMeta<T> meta, CsvImportResult<T> csvResult)
    To import a association (given by his meta) from a reader and a strategy.
    static <T extends TopiaEntityEnum>
    void
    TopiaCsvImports.importAssociation​(TopiaContext tx, AssociationMeta<T> meta, java.util.Map<java.lang.String,​TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer)  
    static <T extends TopiaEntityEnum>
    void
    TopiaCsvImports.importAssociation​(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer)  
    static <T extends TopiaEntityEnum>
    void
    TopiaCsvImports.importNMAssociation​(TopiaContext tx, AssociationMeta<T> meta, java.util.Map<java.lang.String,​TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer)  
    static <T extends TopiaEntityEnum>
    void
    TopiaCsvImports.importNMAssociation​(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer)  
    static <T extends TopiaEntityEnum,​ E extends TopiaEntity>
    void
    TopiaCsvImports.importNotExistingEntities​(TopiaDAO<E> dao, TableMeta<T> meta, java.util.Map<java.lang.String,​TopiaEntity> universe, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult)  
    <E extends TopiaEntity>
    void
    ImportStrategy.importTable​(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult)
    Import a table given a importer with an optional csv result.
    static <T extends TopiaEntityEnum,​ E extends TopiaEntity>
    void
    TopiaCsvImports.importTable​(java.io.Reader reader, ImportStrategy<T> importStrategy, TableMeta<T> meta, CsvImportResult<T> csvResult)
    To import a table (given by his meta) from a reader and a strategy.
    static <T extends TopiaEntityEnum,​ E extends TopiaEntity>
    java.lang.Iterable<E>
    TopiaCsvImports.importTableAndReturn​(java.io.Reader reader, ImportStrategy<T> importStrategy, TableMeta<T> meta, CsvImportResult<T> csvResult)
    To import a table (given by his meta) from a reader and a strategy.
    <E extends TopiaEntity>
    java.lang.Iterable<E>
    ImportStrategy.importTableAndReturnThem​(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult)
    Import a table given a importer with 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 TopiaException 
    Modifier and Type Method Description
    void EntityListUpdator.addToList​(P parent, E bean)  
    void ListUpdator.addToList​(P parent, E e)
    Add a erntity to his parent
    protected java.lang.String DBMapping.checkSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName)  
    protected java.lang.String DBMapping.checkSequence​(java.lang.String sequenceKey)  
    E Creator.create​(TopiaContext tx, P parent, E from)
    Perform the creation of an entity.
    static void TopiaEntityHelper.createDBFromSQL​(java.io.File dbDirectory, TopiaContext topiaContext, java.net.URI resource)
    Create a new database from a sql dump locating in a gzip file.
    void DBMapping.createSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)  
    void DBMapping.createSequence​(java.lang.String sequenceKey, TopiaContext ctxt)  
    void DBMapping.createSequence​(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)  
    void DBMapping.createSequences​(TopiaContext ctxt)  
    R Collector.detect​(TopiaEntity... entities)  
    static java.util.Map<java.lang.Class<? extends TopiaEntity>,​java.util.List<TopiaEntity>> TopiaEntityHelper.detectEntities​(TopiaEntityEnum[] contracts, java.util.Set<java.lang.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 TopiaEntityIdsMap TopiaEntityHelper.detectEntityIds​(TopiaEntityEnum[] contracts, java.util.Set<java.lang.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 java.util.SortedMap<TopiaEntity,​java.util.List<TopiaEntityRef>> TopiaEntityHelper.detectReferences​(TopiaEntityEnum[] contracts, java.lang.String[] expressions, java.util.Collection<? extends TopiaEntity> entities)
    Collecte toutes les references d'un ensemble d'entites donnees par leur topiaId sur un ensemble d'entites donne.
    static java.util.SortedMap<TopiaEntity,​java.util.List<TopiaEntityRef>> TopiaEntityHelper.detectReferences​(TopiaEntityEnum[] contracts, java.lang.String[] expressions, TopiaEntity entities)
    Collecte toutes les references d'un ensemble d'entites donnees par leur topiaId sur un ensemble d'entites donne.
    static java.util.Set<java.lang.Class<? extends TopiaEntity>> TopiaEntityHelper.detectTypes​(TopiaEntityEnum[] contracts, TopiaEntity... entities)
    Collecte l'ensemble des types d'entites (via un parcours en profondeur).
    protected void DBMapping.doSQLWork​(TopiaContext ctxt, java.lang.String sql)  
    boolean DBMapping.existSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)  
    boolean DBMapping.existSequence​(java.lang.String sequenceKey, TopiaContext ctxt)  
    boolean DBMapping.existSequence​(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)  
    protected java.math.BigInteger DBMapping.getBigInteger​(TopiaContext ctxt, java.lang.String sql, java.math.BigInteger defaultSize)  
    protected abstract java.lang.Class<? extends TopiaEntity> DBMapping.getContractClass​(java.lang.Class<? extends TopiaEntity> entityClass)  
    java.math.BigInteger DBMapping.getCurrentValueFromSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)  
    java.math.BigInteger DBMapping.getCurrentValueFromSequence​(java.lang.String sequenceKey, TopiaContext ctxt)  
    java.math.BigInteger DBMapping.getCurrentValueFromSequence​(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)  
    protected java.lang.String DBMapping.getDBProperty​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String property)  
    protected java.lang.String DBMapping.getDBTable​(java.lang.Class<? extends TopiaEntity> entityClass)  
    static <E extends TopiaEntity>
    java.util.List<E>
    TopiaEntityHelper.getEntities​(TopiaContextImplementor srcCtxt, java.util.List<E> entityList, boolean canBeNull)  
    static TopiaEntity[] TopiaEntityHelper.getEntities​(TopiaContext srcCtxt, java.lang.String... entityList)  
    static java.util.List<? extends TopiaEntity> TopiaEntityHelper.getEntitiesList​(TopiaContext srcCtxt, java.lang.String... entityList)  
    static <E extends TopiaEntity>
    E
    TopiaEntityHelper.getExistingEntity​(TopiaDAO<E> dao, java.lang.String topiaId)
    Récupère une entité qui doit exister à partir de son id.
    java.math.BigInteger DBMapping.getNextValueFromSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)  
    java.math.BigInteger DBMapping.getNextValueFromSequence​(java.lang.String sequenceKey, TopiaContext ctxt)  
    java.math.BigInteger DBMapping.getNextValueFromSequence​(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)  
    protected java.lang.String DBMapping.getSequenceSQL​(java.lang.String pattern, java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName)  
    protected java.lang.String DBMapping.getSequenceSQL​(java.lang.String pattern, java.lang.String sequenceKey)  
    void DBMapping.init​(TopiaContext ctxt, boolean doCreate, boolean doUpdate)  
    void EntityListUpdator.removeFromList​(P parent, E bean)  
    void ListUpdator.removeFromList​(P parent, E e)
    Remove from a prent entity a given child.
    static void TopiaEntityHelper.saveDB​(java.io.File gzipFile, TopiaContext topiaContext)
    Save the given database to a gzip file.
    void DBMapping.updateSequence​(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)  
    void DBMapping.updateSequence​(java.lang.String sequenceKey, TopiaContext ctxt)  
    void DBMapping.updateSequence​(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)  
    void DBMapping.updateSequences​(TopiaContext ctxt)