|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TopiaException | |
|---|---|
| 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.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.executeSQL(String sqlScript)
Execute a given sql code inside this transaction. |
|
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. |
|
|
TopiaContext.replicateEntities(TopiaContext dstCtxt,
List<T> entities)
Permet de dupliquer les entités du type donné vers un autre context. |
|
|
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. |
|
TopiaContext |
TopiaContextImpl.beginTransaction()
|
|
protected String[] |
TopiaContextImpl.buildQueries(Object... entityAndCondition)
Build the list of queries from the given parameter entityAndCondition. |
|
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. |
|
void |
TopiaContextImpl.executeSQL(String sqlScript)
|
|
|
TopiaQuery.executeToEntity(TopiaContext transaction,
Class<E> entityClass)
Execute the query and get the first result entity. |
|
|
TopiaQuery.executeToEntityList(TopiaContext transaction,
Class<E> entityClass)
Execute the query and get a List of entity. |
|
|
TopiaQuery.executeToEntityMap(TopiaContext transaction,
Class<E> entityClass)
Execute the query and get a Map of entity with topiaId in key. |
|
|
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)
|
|
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. |
|
|
TopiaContextImpl.getDAO(Class<E> entityClass)
|
|
|
TopiaContextImplementor.getDAO(Class<E> entityClass)
Get DAO for specified class. |
|
|
TopiaContextImpl.getDAO(Class<E> entityClass,
Class<D> daoClass)
|
|
|
TopiaContextImplementor.getDAO(Class<E> entityClass,
Class<D> daoClass)
Get DAO for specified class. |
|
org.hibernate.Session |
TopiaContextImpl.getHibernate()
|
|
org.hibernate.Session |
TopiaContextImplementor.getHibernate()
|
|
void |
TopiaContextImpl.importXML(Reader xml)
|
|
boolean |
TopiaContextImpl.isSchemaExist(Class<?> clazz)
|
|
boolean |
TopiaContextImplementor.isSchemaExist(Class<?> clazz)
Detect if the table is created on storage for a given persistant class. |
|
protected
|
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
|
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)
|
|
|
TopiaContextImpl.replicateEntities(TopiaContext dstCtxt,
List<T> entities)
|
|
|
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. |
|
long |
TopiaDAO.count()
Count the number of existing entities. |
|
long |
TopiaDAOImpl.count()
|
|
int |
TopiaDAO.countByQuery(TopiaQuery query)
Count the number of entities based on query. |
|
int |
TopiaDAOImpl.countByQuery(TopiaQuery query)
|
|
E |
TopiaDAO.create(E e)
Permet de sauver un object instancié sans le DAO. |
|
E |
TopiaDAOImpl.create(E entity)
|
|
E |
TopiaDAO.create(Map<String,Object> properties)
Construit une nouvelle instance de l'objet géré par ce DAO |
|
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 |
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 |
TopiaDAO.create(Object... properties)
Construit une nouvelle instance de l'objet géré par ce DAO |
|
E |
TopiaDAOImpl.create(Object... properties)
|
|
E |
TopiaDAOLegacy.create(Object... properties)
|
|
void |
TopiaEntityContextable.delete()
Delete entity in persistence context. |
|
void |
TopiaDAO.delete(E e)
Permet de supprimer une entite. |
|
void |
TopiaDAOImpl.delete(E e)
|
|
boolean |
TopiaDAO.existByProperties(String propertyName,
Object propertyValue,
Object... others)
Check the existence of an entity with propertyName with propertyValue. |
|
boolean |
TopiaDAOImpl.existByProperties(String propertyName,
Object propertyValue,
Object... others)
|
|
boolean |
TopiaDAO.existByQuery(TopiaQuery query)
Check the existence of an entity using a query. |
|
boolean |
TopiaDAOImpl.existByQuery(TopiaQuery query)
|
|
boolean |
TopiaDAO.existByTopiaId(String id)
Check the existence of an entity with technical id. |
|
boolean |
TopiaDAOImpl.existByTopiaId(String id)
|
|
List<E> |
TopiaDAO.findAll()
|
|
List<E> |
TopiaDAOImpl.findAll()
|
|
List<E> |
TopiaDAOLegacy.findAll()
|
|
List<E> |
TopiaDAO.findAllByProperties(Map<String,Object> properties)
|
|
List<E> |
TopiaDAOImpl.findAllByProperties(Map<String,Object> properties)
|
|
List<E> |
TopiaDAOLegacy.findAllByProperties(Map<String,Object> properties)
|
|
List<E> |
TopiaDAO.findAllByProperties(String propertyName,
Object value,
Object... others)
|
|
List<E> |
TopiaDAOImpl.findAllByProperties(String propertyName,
Object value,
Object... others)
|
|
List<E> |
TopiaDAOLegacy.findAllByProperties(String propertyName,
Object value,
Object... others)
|
|
List<E> |
TopiaDAO.findAllByProperty(String propertyName,
Object value)
|
|
List<E> |
TopiaDAOImpl.findAllByProperty(String propertyName,
Object value)
|
|
List<E> |
TopiaDAOLegacy.findAllByProperty(String propertyName,
Object value)
|
|
List<E> |
TopiaDAO.findAllByQuery(TopiaQuery query)
Execute une requête basé sur l'entité du DAO. |
|
List<E> |
TopiaDAOImpl.findAllByQuery(TopiaQuery query)
|
|
List<E> |
TopiaDAO.findAllContains(String propertyName,
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. |
|
List<E> |
TopiaDAOImpl.findAllContains(String propertyName,
Object property)
|
|
List<String> |
TopiaDAO.findAllIds()
Recuperation de tous les ids en base pour le type d'entite du dao. |
|
List<String> |
TopiaDAOImpl.findAllIds()
|
|
List<String> |
TopiaDAOLegacy.findAllIds()
|
|
Map<String,E> |
TopiaDAO.findAllMappedByQuery(TopiaQuery query)
Execute une requête basé sur l'entité du DAO. |
|
Map<String,E> |
TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query)
|
|
|
TopiaDAO.findAllMappedByQuery(TopiaQuery query,
String keyName,
Class<K> keyClass)
Execute une requête basé sur l'entité du DAO. |
|
|
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 given entity. |
|
Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> |
TopiaDAOImpl.findAllUsages(E e)
|
|
List<E> |
TopiaDAO.findAllWithOrder(String... propertyNames)
|
|
List<E> |
TopiaDAOImpl.findAllWithOrder(String... propertyNames)
|
|
List<E> |
TopiaDAOLegacy.findAllWithOrder(String... propertyNames)
|
|
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 |
TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys)
|
|
E |
TopiaDAOLegacy.findByPrimaryKey(Map<String,Object> keys)
|
|
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 |
TopiaDAOImpl.findByPrimaryKey(Object... k)
|
|
E |
TopiaDAOLegacy.findByPrimaryKey(Object... k)
|
|
E |
TopiaDAO.findByProperties(Map<String,Object> properties)
|
|
E |
TopiaDAOImpl.findByProperties(Map<String,Object> properties)
|
|
E |
TopiaDAOLegacy.findByProperties(Map<String,Object> properties)
|
|
E |
TopiaDAO.findByProperties(String propertyName,
Object value,
Object... others)
|
|
E |
TopiaDAOImpl.findByProperties(String propertyName,
Object value,
Object... others)
|
|
E |
TopiaDAOLegacy.findByProperties(String propertyName,
Object value,
Object... others)
|
|
E |
TopiaDAO.findByProperty(String propertyName,
Object value)
|
|
E |
TopiaDAOImpl.findByProperty(String propertyName,
Object value)
|
|
E |
TopiaDAOLegacy.findByProperty(String propertyName,
Object value)
|
|
E |
TopiaDAO.findByQuery(TopiaQuery query)
Execute une requête basé sur l'entité du DAO. |
|
E |
TopiaDAOImpl.findByQuery(TopiaQuery query)
|
|
E |
TopiaDAO.findByTopiaId(String id)
Find an entity corresponding to the id. |
|
E |
TopiaDAOImpl.findByTopiaId(String id)
|
|
E |
TopiaDAOLegacy.findByTopiaId(String k)
|
|
E |
TopiaDAO.findContains(String propertyName,
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(String propertyName,
Object property)
|
|
|
TopiaDAO.findUsages(Class<U> type,
E entity)
Find usages of the given entity in the entities of the given
type. |
|
|
TopiaDAOImpl.findUsages(Class<U> type,
E e)
|
|
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> |
TopiaDAO.getRequestPermission(String topiaId,
int actions)
Retourne les permissions a verifier pour l'acces a l'entite pour le service Taas. |
|
List<Permission> |
TopiaDAOImpl.getRequestPermission(String topiaId,
int actions)
|
|
void |
TopiaDAO.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. |
|
protected E |
TopiaDAOLegacy.instanciateNew()
|
|
E |
TopiaDAO.newInstance()
Create a new instance of managed entity. |
|
E |
TopiaDAOImpl.newInstance()
|
|
void |
TopiaEntityContextable.setTopiaContext(TopiaContext topiaContext)
Set topia context. |
|
void |
TopiaEntityAbstract.setTopiaContext(TopiaContext context)
|
|
void |
TopiaEntityContextable.update()
Update entity in persistence context. |
|
E |
TopiaDAO.update(E e)
Permet d'ajouter ou de mettre a jour un objet. |
|
E |
TopiaDAOImpl.update(E e)
|
|
| 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(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 TopiaEntityIdsMap |
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
|
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
|
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)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||