Uses of Class
org.nuiton.topia.TopiaException

Packages that use TopiaException
org.nuiton.topia TODO-FD20100507 : Need update this javadoc for ToPIA 2.4 ToPIA est un framework de persistence basé sur Hibernate. 
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.util   
 

Uses of TopiaException in org.nuiton.topia
 

Subclasses of TopiaException in org.nuiton.topia
 class TopiaNotFoundException
          TODO-FD20100507 : Need javadoc.
 

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()
          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.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.
 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.
 List TopiaContext.findByQuery(TopiaQuery query)
          Retrieve results executing a simple query.
 TopiaEntity TopiaContext.findByTopiaId(String topiaId)
          Retrieve TopiaEntity using its unique id.
 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()
           
 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(TopiaContext transaction)
          Execute a simple count on the query, i.e. the number of results get from the query.
<E extends TopiaEntity>
E
TopiaQuery.executeToEntity(TopiaContext transaction, Class<E> entityClass)
          Execute the query and get the first result entity.
<E extends TopiaEntity>
List<E>
TopiaQuery.executeToEntityList(TopiaContext transaction, Class<E> entityClass)
          Execute the query and get a List of entity.
<E extends TopiaEntity>
Map<String,E>
TopiaQuery.executeToEntityMap(TopiaContext transaction, Class<E> entityClass)
          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)
          Execute the query and get a Map of entity with key type in argument.
 int TopiaQuery.executeToInteger(TopiaContext transaction, String select)
          Execute the query and get an Integer for result.
 Object TopiaQuery.executeToObject(TopiaContext transaction, String select)
          Execute the query and get an Object for result.
 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)
           
 List TopiaContextImpl.findByQuery(TopiaQuery query)
           
 TopiaEntity TopiaContextImpl.findByTopiaId(String id)
           
<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)
           
<E extends TopiaEntity,D extends TopiaDAO<E>>
D
TopiaContextImplementor.getDAO(Class<E> entityClass, Class<D> daoClass)
          Get DAO for specified class.
<E extends TopiaEntity,D extends TopiaDAO<E>>
D
TopiaContextImpl.getDAO(Class<E> entityClass, Class<D> daoClass)
           
 org.hibernate.Session TopiaContextImplementor.getHibernate()
           
 org.hibernate.Session TopiaContextImpl.getHibernate()
           
 void TopiaContextImpl.importXML(Reader xml)
           
 boolean TopiaContextImplementor.isSchemaExist(Class<?> clazz)
          Detect if the table is created on storage for a given persistant class.
 boolean TopiaContextImpl.isSchemaExist(Class<?> clazz)
           
protected
<T extends TopiaEntity>
TopiaEntity
TopiaQuery.loadEntityProperty(T entity, String property)
          Load a property of type TopiaEntity from an other entity.
protected  void TopiaQuery.loadProperties(TopiaEntity 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()
           
 

Uses of TopiaException in org.nuiton.topia.persistence
 

Methods in org.nuiton.topia.persistence that throw TopiaException
 void TopiaEntity.accept(EntityVisitor visitor)
          Route the entity using a visitor.
 int TopiaDAOImpl.count()
           
 int TopiaDAO.count()
          Count the number of existing entities.
 int TopiaDAOImpl.countByQuery(TopiaQuery query)
           
 int TopiaDAO.countByQuery(TopiaQuery query)
          Count the number of entities based on query.
 E TopiaDAOImpl.create(E entity)
           
 E TopiaDAO.create(E e)
          Permet de sauver un object instancié sans le DAO.
 E TopiaDAOLegacy.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.
 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.
 E TopiaDAO.create(Map<String,Object> properties)
          Construit une nouvelle instance de l'objet géré par ce DAO
 E TopiaDAOLegacy.create(Object... properties)
           
 E TopiaDAOImpl.create(Object... properties)
           
 E TopiaDAO.create(Object... properties)
          Construit une nouvelle instance de l'objet géré par ce DAO
 void TopiaDAOLegacy.delete(E e)
           
 void TopiaDAOImpl.delete(E e)
           
 void TopiaDAO.delete(E e)
          Permet de supprimer une entite.
 boolean TopiaDAOImpl.existByProperties(String propertyName, Object propertyValue, Object... others)
           
 boolean TopiaDAO.existByProperties(String propertyName, Object propertyValue, Object... others)
          Check the existence of an entity with propertyName with propertyValue.
 boolean TopiaDAOImpl.existByQuery(TopiaQuery query)
           
 boolean TopiaDAO.existByQuery(TopiaQuery query)
          Check the existence of an entity using a query.
 boolean TopiaDAOImpl.existByTopiaId(String id)
           
 boolean TopiaDAO.existByTopiaId(String id)
          Check the existence of an entity with technical id.
 List<E> TopiaDAOLegacy.findAll()
           
 List<E> TopiaDAOImpl.findAll()
           
 List<E> TopiaDAO.findAll()
           
 List<E> TopiaDAOLegacy.findAllByProperties(Map<String,Object> properties)
           
 List<E> TopiaDAOImpl.findAllByProperties(Map<String,Object> properties)
           
 List<E> TopiaDAO.findAllByProperties(Map<String,Object> properties)
           
 List<E> TopiaDAOLegacy.findAllByProperties(String propertyName, Object value, Object... others)
           
 List<E> TopiaDAOImpl.findAllByProperties(String propertyName, Object value, Object... others)
           
 List<E> TopiaDAO.findAllByProperties(String propertyName, Object value, Object... others)
           
 List<E> TopiaDAOLegacy.findAllByProperty(String propertyName, Object value)
           
 List<E> TopiaDAOImpl.findAllByProperty(String propertyName, Object value)
           
 List<E> TopiaDAO.findAllByProperty(String propertyName, Object value)
           
 List<E> TopiaDAOImpl.findAllByQuery(TopiaQuery query)
           
 List<E> TopiaDAO.findAllByQuery(TopiaQuery query)
          Execute une requête basé sur l'entité du DAO.
 List<String> TopiaDAOLegacy.findAllIds()
           
 List<String> TopiaDAOImpl.findAllIds()
           
 List<String> TopiaDAO.findAllIds()
          Recuperation de tous les ids en base pour le type d'entite du dao.
 Map<String,E> TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query)
           
 Map<String,E> TopiaDAO.findAllMappedByQuery(TopiaQuery query)
          Execute une requête basé sur l'entité du DAO.
<K> Map<K,E>
TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query, String keyName, Class<K> keyClass)
           
<K> Map<K,E>
TopiaDAO.findAllMappedByQuery(TopiaQuery query, String keyName, Class<K> keyClass)
          Execute une requête basé sur l'entité du DAO.
 Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> TopiaDAOImpl.findAllUsages(E e)
           
 Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> TopiaDAO.findAllUsages(E entity)
          Find all usages of the given entity.
 List<E> TopiaDAOLegacy.findAllWithOrder(String... propertyNames)
           
 List<E> TopiaDAOImpl.findAllWithOrder(String... propertyNames)
           
 List<E> TopiaDAO.findAllWithOrder(String... propertyNames)
           
 E TopiaDAOLegacy.findByPrimaryKey(Map<String,Object> keys)
           
 E TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys)
           
 E 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 TopiaDAOLegacy.findByPrimaryKey(Object... k)
           
 E TopiaDAOImpl.findByPrimaryKey(Object... k)
           
 E 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 TopiaDAOLegacy.findByProperties(Map<String,Object> properties)
           
 E TopiaDAOImpl.findByProperties(Map<String,Object> properties)
           
 E TopiaDAO.findByProperties(Map<String,Object> properties)
           
 E TopiaDAOLegacy.findByProperties(String propertyName, Object value, Object... others)
           
 E TopiaDAOImpl.findByProperties(String propertyName, Object value, Object... others)
           
 E TopiaDAO.findByProperties(String propertyName, Object value, Object... others)
           
 E TopiaDAOLegacy.findByProperty(String propertyName, Object value)
           
 E TopiaDAOImpl.findByProperty(String propertyName, Object value)
           
 E TopiaDAO.findByProperty(String propertyName, Object value)
           
 E TopiaDAOImpl.findByQuery(TopiaQuery query)
           
 E TopiaDAO.findByQuery(TopiaQuery query)
          Execute une requête basé sur l'entité du DAO.
 E TopiaDAOLegacy.findByTopiaId(String k)
           
 E TopiaDAOImpl.findByTopiaId(String id)
           
 E TopiaDAO.findByTopiaId(String id)
          Find an entity corresponding to the id.
<U extends TopiaEntity>
List<U>
TopiaDAOImpl.findUsages(Class<U> type, E e)
           
<U extends TopiaEntity>
List<U>
TopiaDAO.findUsages(Class<U> type, E entity)
          Find usages of the given entity in the entities of the given type.
 List<TopiaEntity> TopiaEntity.getAggregate()
           
 List<TopiaEntity> TopiaEntityAbstract.getAggregate()
           
 List<TopiaEntity> TopiaEntity.getComposite()
           
 List<TopiaEntity> TopiaEntityAbstract.getComposite()
           
protected  Serializable TopiaDAOLegacy.getId(E e)
          Retourne l'id de l'entity
protected  Serializable TopiaDAOImpl.getId(E e)
          Retourne l'id de l'entity
protected  Serializable TopiaDAOLegacy.getId(Map map)
          Retourne l'id de l'entity representer comme une map
protected  Serializable TopiaDAOImpl.getId(Map map)
          Retourne l'id de l'entity representer comme une map
 List<Permission> TopiaDAOLegacy.getRequestPermission(String topiaId, int actions)
           
 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 TopiaDAOLegacy.init(TopiaContextImplementor context, Class<E> entityClass)
          When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after
 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<E> entityClass)
          When TopiaContextImpl create the TopiaDAOHibernate, it must call this method just after.
protected  E TopiaDAOLegacy.instanciateNew()
           
 E TopiaDAOImpl.newInstance()
           
 E TopiaDAO.newInstance()
          Create a new instance of managed entity.
 void TopiaEntityAbstract.setTopiaContext(TopiaContext context)
           
 long TopiaDAOLegacy.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 TopiaDAOImpl.size()
          Deprecated. since 2.3.4 ambiguous name, use TopiaDAOImpl.count() instead.
 long TopiaDAO.size()
          Deprecated. since 2.3.4 ambiguous name, use TopiaDAO.count() instead.
 E TopiaDAOLegacy.update(E e)
           
 E TopiaDAOImpl.update(E e)
           
 E TopiaDAO.update(E 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 EntityListUpdator.addToList(P parent, E bean)
           
 void ListUpdator.addToList(P parent, E e)
          Add a erntity to his parent
protected  String DBMapping.checkSequence(Class<? extends TopiaEntity> entityClass, String propertyName)
           
protected  String DBMapping.checkSequence(String sequenceKey)
           
 E Creator.create(TopiaContext tx, 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 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(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.