Uses of Class
org.nuiton.topia.TopiaException

Packages that use TopiaException
org.nuiton.topia   
org.nuiton.topia.framework   
org.nuiton.topia.persistence   
org.nuiton.topia.persistence.util   
 

Uses of TopiaException in org.nuiton.topia
 

Subclasses of TopiaException in org.nuiton.topia
 class TopiaNotFoundException
           
 

Methods in org.nuiton.topia that throw TopiaException
 void TopiaContext.add(TopiaEntity e)
          Permet d'ajouter dans le TopiaContext une TopiaEntity créé par un autre context.
 void TopiaContext.backup(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()
           
 void TopiaContext.clear(boolean dropDatabase)
          Supprime toutes les tables et autres elements de la database.
 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(String hql, Object... args)
          Execute HQL operation on data (Update, Delete)
 void TopiaContext.exportXML(Writer xml, Object... entityAndCondition)
          Permet d'exporter certaines données en XML

Note: Si le parametre entityAndCondition est vide, alors on duplique toutes les entités de la base.

 List TopiaContext.find(String hql, int startIndex, int endIndex, 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.
 List TopiaContext.find(String hql, Object... args)
          Permet de faire une requete HQL hibernate directement sur la base
 TopiaEntity TopiaContext.findByTopiaId(String topiaId)
          Permet de rechercher un entite directement par son TopiaId
 void TopiaContext.importXML(Reader xml)
          Permet d'importer des données en XML
 void TopiaContext.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>
void
TopiaContext.replicateEntities(TopiaContext dstCtxt, 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(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
 void TopiaContextImpl.add(TopiaEntity e)
           
 void TopiaContextImpl.backup(File file, boolean compress)
          Backup database in gzip compressed file Only work for h2 database
 TopiaContext TopiaContextImpl.beginTransaction()
           
protected  String[] TopiaContextImpl.buildQueries(Object... entityAndCondition)
          Build the list of queries from the given parameter entityAndCondition>/code>.
protected  void TopiaContextImpl.checkClosed(String message)
           
 void TopiaContextImpl.clear(boolean dropDatabase)
          Only h2 supported for now
 void TopiaContextImpl.closeContext()
           
 void TopiaContextImpl.commitTransaction()
           
 void TopiaContextImpl.createSchema()
           
 List TopiaQuery.execute()
          DAO must be defined to use this method.
 int TopiaContextImpl.execute(String hql, Object... args)
          Execute HQL operation on data (Update, Delete)
 List TopiaQuery.execute(TopiaContext transaction)
          Simple execution of the query.
 int TopiaQuery.executeCount()
          DAO must be defined to use this method.
 int TopiaQuery.executeCount(TopiaContext transaction)
          Execute a simple count on the query, i.e. the number of results get from the query.
 E TopiaQuery.executeToEntity()
          DAO must be defined to use this method.
 E TopiaQuery.executeToEntity(TopiaContext transaction)
          Execute the query and get the first result entity.
 List<E> TopiaQuery.executeToEntityList()
          DAO must be defined to use this method.
 List<E> TopiaQuery.executeToEntityList(TopiaContext transaction)
          Execute the query and get a List of entity.
 Map<String,E> TopiaQuery.executeToEntityMap()
          DAO must be defined to use this method.
<K> Map<K,E>
TopiaQuery.executeToEntityMap(String keyName, Class<K> keyClass)
          DAO must be defined to use this method.
 Map<String,E> TopiaQuery.executeToEntityMap(TopiaContext transaction)
          Execute the query and get a Map of entity with topiaId in key.
<K> Map<K,E>
TopiaQuery.executeToEntityMap(TopiaContext transaction, String keyName, Class<K> keyClass)
          Execute the query and get a Map of entity with key type in argument.
 int TopiaQuery.executeToInteger(String select)
          DAO must be defined to use this method.
 int TopiaQuery.executeToInteger(TopiaContext transaction, String select)
          Execute the query and get an Integer for result.
 Object TopiaQuery.executeToObject(String select)
          DAO must be defined to use this method.
 Object TopiaQuery.executeToObject(TopiaContext transaction, String select)
          Execute the query and get an Object for result.
 String TopiaQuery.executeToString(String select)
          DAO must be defined to use this method.
 String TopiaQuery.executeToString(TopiaContext transaction, String select)
          Execute the query and get a String for result.
 void TopiaContextImpl.exportXML(Writer xml, Object... entityAndcondition)
           
 List<?> TopiaContextImpl.find(String hql, int startIndex, int endIndex, Object... args)
           
 List TopiaContextImpl.find(String hql, Object... args)
           
 TopiaEntity TopiaContextImpl.findByTopiaId(String topiaId)
           
<E extends TopiaEntity>
TopiaDAO<E>
TopiaContextImplementor.getDAO(Class<E> entityClass)
          Get DAO for specified class.
<E extends TopiaEntity>
TopiaDAO<E>
TopiaContextImpl.getDAO(Class<E> entityClass)
           
 org.hibernate.Session TopiaContextImplementor.getHibernate()
           
 org.hibernate.Session TopiaContextImpl.getHibernate()
           
 void TopiaContextImpl.importXML(Reader xml)
           
 boolean TopiaContextImplementor.isSchemaExist(Class<? extends TopiaEntity> clazz)
          Detect if the table is created on storage for a given persistant class.
 boolean TopiaContextImpl.isSchemaExist(Class<? extends TopiaEntity> clazz)
           
protected
<T extends TopiaEntity>
TopiaEntity
TopiaQuery.loadEntityProperty(T entity, String property)
          Load a property of type TopiaEntity from an other entity.
protected
<T extends TopiaEntity>
void
TopiaQuery.loadProperties(T entity)
          Load all properties for the entity.
protected
<T extends TopiaEntity>
Object
TopiaQuery.loadProperty(T entity, String property)
          Load a property from an entity.
 void TopiaContextImpl.replicate(TopiaContext dstCtxt, Object... entityAndCondition)
           
protected  void TopiaContextImpl.replicate0(TopiaContextImpl dstContextImpl, Object... entities)
           
<T extends TopiaEntity>
void
TopiaContextImpl.replicateEntities(TopiaContext dstCtxt, List<T> entities)
           
<T extends TopiaEntity>
void
TopiaContextImpl.replicateEntity(TopiaContext dstCtxt, T entity)
           
 void TopiaContextImpl.restore(File file)
          Read database from gzip compressed file Only work for h2 database
 void TopiaContextImpl.rollbackTransaction()
           
 void TopiaContextImpl.showCreateSchema()
           
 void TopiaContextImpl.updateSchema()
           
protected  boolean TopiaQuery.validateDAO()
           
 

Uses of TopiaException in org.nuiton.topia.persistence
 

Methods in org.nuiton.topia.persistence that throw TopiaException
 void TopiaEntity.accept(EntityVisitor visitor)
          Parcourt de l'entité via un visiteur.
 void TopiaDAOImpl.commitTransaction()
          Callback method when context was commit.
 void TopiaDAO.commitTransaction()
          Appelé lorsque le context a eu un commit de fait.
 E TopiaDAOImpl.create(Map<String,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.
 Entity TopiaDAO.create(Map<String,Object> properties)
          Construit une nouvelle instance de l'objet géré par ce DAO
 E TopiaDAOImpl.create(Object... properties)
           
 Entity TopiaDAO.create(Object... properties)
          Construit une nouvelle instance de l'objet géré par ce DAO
 void TopiaEntityAbstract.delete()
           
 void TopiaEntity.delete()
           
 void TopiaDAOImpl.delete(E e)
           
 void TopiaDAO.delete(Entity e)
           
 List<E> TopiaDAOImpl.findAll()
           
 List<Entity> TopiaDAO.findAll()
           
 List<E> TopiaDAOImpl.findAllByProperties(Map<String,Object> properties)
           
 List<Entity> TopiaDAO.findAllByProperties(Map<String,Object> properties)
           
 List<E> TopiaDAOImpl.findAllByProperties(String propertyName, Object value, Object... others)
           
 List<Entity> TopiaDAO.findAllByProperties(String propertyName, Object value, Object... others)
           
 List<E> TopiaDAOImpl.findAllByProperty(String propertyName, Object value)
           
 List<Entity> TopiaDAO.findAllByProperty(String propertyName, Object value)
           
 List<E> TopiaDAOImpl.findAllContainsProperties(Map<String,Collection> properties)
          Find all entities with a specific rule : When the entity have a Collection type property, you want to find all entites where some values are contained in the collection type property.
 List<Entity> TopiaDAO.findAllContainsProperties(Map<String,Collection> properties)
          Cherche et renvoie la première entité trouvée dont les propriétés en clé de Map contiennent toutes les valeurs de la Collection.
 List<E> TopiaDAOImpl.findAllContainsProperties(String propertyName, Collection values, Object... others)
           
 List<Entity> TopiaDAO.findAllContainsProperties(String propertyName, Collection values, Object... others)
          Cherche et renvoie toutes les entités trouvées dont la propriété propertyName contient values, ainsi de suite avec others.
 List<String> TopiaDAOImpl.findAllIds()
           
 List<String> TopiaDAO.findAllIds()
          Recuperation de tous les ids en base pour le type d'entite du dao.
 List<E> TopiaDAOImpl.findAllWithOrder(String... propertyNames)
           
 List<Entity> TopiaDAO.findAllWithOrder(String... propertyNames)
           
 E TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys)
           
 Entity TopiaDAO.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.
 E TopiaDAOImpl.findByPrimaryKey(Object... k)
           
 Entity 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 mapping
 E TopiaDAOImpl.findByProperties(Map<String,Object> properties)
           
 Entity TopiaDAO.findByProperties(Map<String,Object> properties)
           
 E TopiaDAOImpl.findByProperties(String propertyName, Object value, Object... others)
           
 Entity TopiaDAO.findByProperties(String propertyName, Object value, Object... others)
           
 E TopiaDAOImpl.findByProperty(String propertyName, Object value)
           
 Entity TopiaDAO.findByProperty(String propertyName, Object value)
           
 E TopiaDAOImpl.findByTopiaId(String k)
           
 Entity TopiaDAO.findByTopiaId(String k)
           
 E TopiaDAOImpl.findContainsProperties(Map<String,Collection> properties)
           
 Entity TopiaDAO.findContainsProperties(Map<String,Collection> properties)
          Cherche et renvoie la première entité trouvée dont les propriétés en clé de Map contiennent toutes les valeurs de la Collection.
 E TopiaDAOImpl.findContainsProperties(String propertyName, Collection values, Object... others)
           
 Entity TopiaDAO.findContainsProperties(String propertyName, Collection values, Object... others)
          Cherche et renvoie la première entité trouvée dont la propriété propertyName contient values, ainsi de suite avec others.
 List<TopiaEntity> TopiaEntityAbstract.getAggregate()
           
 List<TopiaEntity> TopiaEntity.getAggregate()
           
 List<TopiaEntity> TopiaEntityAbstract.getComposite()
           
 List<TopiaEntity> TopiaEntity.getComposite()
           
protected  Serializable TopiaDAOImpl.getId(E e)
          Retourne l'id de l'entity
protected  Serializable TopiaDAOImpl.getId(Map map)
          Retourne l'id de l'entity representer comme une map
 List<Permission> TopiaDAOImpl.getRequestPermission(String topiaId, int actions)
           
 List<Permission> TopiaDAO.getRequestPermission(String topiaId, int actions)
          Retourne les permissions a verifier pour l'acces a l'entite pour le service Taas.
 void TopiaDAOImpl.init(TopiaContextImplementor context, Class<E> entityClass)
          When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after
 void TopiaDAO.init(TopiaContextImplementor context, Class<Entity> entityClass)
          When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.
protected  E TopiaDAOImpl.instanciateNew()
           
 void TopiaEntityAbstract.postCreate()
           
 void TopiaEntity.postCreate()
          called just after object creation and initialisation each entity impl can overide it to do something after creation
 void TopiaDAOImpl.rollbackTransaction()
          Callback method when context was rollback.
 void TopiaDAO.rollbackTransaction()
          Appelé lorsque le context a eu un rollback de fait.
 void TopiaEntityAbstract.setTopiaContext(TopiaContext context)
           
 long TopiaDAOImpl.size()
          Count number of existing entities using TopiaQuery.executeCount(org.nuiton.topia.TopiaContext) FIXME-FD20091224 change type to int like in 2.2.2 version
 long TopiaDAO.size()
          Compte le nombre d'entites en base
 void TopiaEntityAbstract.update()
           
 void TopiaEntity.update()
           
 E TopiaDAOImpl.update(E e)
           
 Entity TopiaDAO.update(Entity e)
          Permet d'ajouter ou de mettre a jour un objet.
 

Uses of TopiaException in org.nuiton.topia.persistence.util
 

Methods in org.nuiton.topia.persistence.util that throw TopiaException
 void ListUpdator.addToList(P parent, E e)
          Add a erntity to his parent
 void EntityListUpdator.addToList(P parent, E bean)
           
protected  String DBMapping.checkSequence(Class<? extends TopiaEntity> entityClass, String propertyName)
           
protected  String DBMapping.checkSequence(String sequenceKey)
           
 E Creator.create(P parent, E from)
          Perform the creation of an entity.
static void TopiaEntityHelper.createDBFromSQL(File dbDirectory, TopiaContext topiaContext, URI resource)
          Create a new database from a sql dump locating in a gzip file.
 void DBMapping.createSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt)
           
 void DBMapping.createSequence(String sequenceKey, TopiaContext ctxt)
           
 void DBMapping.createSequence(String sequenceKey, TopiaContext ctxt, boolean check)
           
 void DBMapping.createSequences(TopiaContext ctxt)
           
 R 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 Map<Class<? extends TopiaEntity>,List<String>> TopiaEntityHelper.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  void DBMapping.doSQLWork(TopiaContext ctxt, String sql)
           
 boolean DBMapping.existSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt)
           
 boolean DBMapping.existSequence(String sequenceKey, TopiaContext ctxt)
           
 boolean DBMapping.existSequence(String sequenceKey, TopiaContext ctxt, boolean check)
           
protected  BigInteger DBMapping.getBigInteger(TopiaContext ctxt, String sql, BigInteger defaultSize)
           
protected abstract  Class<? extends TopiaEntity> DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass)
           
 BigInteger DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt)
           
 BigInteger DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt)
           
 BigInteger DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check)
           
protected  String DBMapping.getDBProperty(Class<? extends TopiaEntity> entityClass, String property)
           
protected  String DBMapping.getDBTable(Class<? extends TopiaEntity> entityClass)
           
static
<E extends TopiaEntity>
E
TopiaEntityHelper.getExistingEntity(TopiaDAO<E> dao, String topiaId)
          Récupère une entité qui doit exister à partir de son id.
 BigInteger DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt)
           
 BigInteger DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt)
           
 BigInteger DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check)
           
protected  String DBMapping.getSequenceSQL(String pattern, Class<? extends TopiaEntity> entityClass, String propertyName)
           
protected  String DBMapping.getSequenceSQL(String pattern, String sequenceKey)
           
 void DBMapping.init(TopiaContext ctxt, boolean doCreate, boolean doUpdate)
           
 void ListUpdator.removeFromList(P parent, E e)
          Remove from a prent entity a given child.
 void EntityListUpdator.removeFromList(P parent, E bean)
           
static void TopiaEntityHelper.saveDB(File gzipFile, TopiaContext topiaContext)
          Save the given database to a gzip file.
 void DBMapping.updateSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt)
           
 void DBMapping.updateSequence(String sequenceKey, TopiaContext ctxt)
           
 void DBMapping.updateSequence(String sequenceKey, TopiaContext ctxt, boolean check)
           
 void DBMapping.updateSequences(TopiaContext ctxt)
           
 



Copyright © 2004-2010 CodeLutin. All Rights Reserved.