| Package | Description |
|---|---|
| org.nuiton.topia.persistence |
This package contains most of the needed contracts when using ToPIA.
|
| org.nuiton.topia.persistence.internal | |
| org.nuiton.topia.persistence.internal.support | |
| org.nuiton.topia.persistence.legacy | |
| org.nuiton.topia.persistence.support | |
| org.nuiton.topia.persistence.util |
| Modifier and Type | Class and Description |
|---|---|
class |
QueryMissingOrderException
If you get this exception, it means that you asked ToPIA to make an operation that needs a deterministic way to sort
the result but you didn't defined such query.
|
class |
TopiaMigrationServiceException |
class |
TopiaNonUniqueResultException
Exception raised when a query returns more than one result while it was expected to return only one (or no result).
|
class |
TopiaNoResultException
Exception raised when a query returned no result while at least one result was expected.
|
class |
TopiaNotFoundException
Exception thrown if one of the expected configuration entries is missing at runtime
Created: 23 déc.
|
class |
TopiaQueryException
Exception raised when an error occur in the context of a particular query.
|
class |
TopiaVetoException
Exception thrown when something went wrong during event firing
Created: 5 janv.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractTopiaPersistenceContext.startTransaction() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
HibernateTopiaReplicationSupport.buildQueries(Object... entityAndCondition)
Build the list of queries from the given parameter
entityAndCondition. |
<O> List<O> |
HibernateTopiaSqlSupport.findMultipleResult(TopiaSqlQuery<O> query) |
<O> O |
HibernateTopiaSqlSupport.findSingleResult(TopiaSqlQuery<O> query) |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
DBMapping.createSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
void |
DBMapping.createSequence(String sequenceKey,
TopiaSqlSupport ctxt) |
void |
DBMapping.createSequence(String sequenceKey,
TopiaSqlSupport ctxt,
boolean check) |
void |
DBMapping.createSequences(TopiaSqlSupport ctxt) |
R |
Collector.detect(TopiaEntity... entities) |
protected void |
DBMapping.doSQLWork(TopiaSqlSupport sqlSupport,
String sql) |
boolean |
DBMapping.existSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
boolean |
DBMapping.existSequence(String sequenceKey,
TopiaSqlSupport ctxt) |
boolean |
DBMapping.existSequence(String sequenceKey,
TopiaSqlSupport ctxt,
boolean check) |
protected BigInteger |
DBMapping.getBigInteger(TopiaSqlSupport sqlSupport,
String sql,
BigInteger defaultSize) |
protected abstract Class<? extends TopiaEntity> |
DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) |
BigInteger |
DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
BigInteger |
DBMapping.getCurrentValueFromSequence(String sequenceKey,
TopiaSqlSupport ctxt) |
BigInteger |
DBMapping.getCurrentValueFromSequence(String sequenceKey,
TopiaSqlSupport ctxt,
boolean check) |
protected String |
DBMapping.getDBProperty(Class<? extends TopiaEntity> entityClass,
String property) |
protected String |
DBMapping.getDBTable(Class<? extends TopiaEntity> entityClass) |
BigInteger |
DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
BigInteger |
DBMapping.getNextValueFromSequence(String sequenceKey,
TopiaSqlSupport ctxt) |
BigInteger |
DBMapping.getNextValueFromSequence(String sequenceKey,
TopiaSqlSupport 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(TopiaApplicationContext 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.
|
void |
DBMapping.updateSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
void |
DBMapping.updateSequence(String sequenceKey,
TopiaSqlSupport ctxt) |
void |
DBMapping.updateSequence(String sequenceKey,
TopiaSqlSupport sqlSupport,
boolean check) |
void |
DBMapping.updateSequences(TopiaSqlSupport ctxt) |
| Modifier and Type | Method and Description |
|---|---|
<O> List<O> |
TopiaSqlSupport.findMultipleResult(TopiaSqlQuery<O> query)
Runs the given SQL query and return all his result if there is some.
|
<O> O |
TopiaSqlSupport.findSingleResult(TopiaSqlQuery<O> query)
Runs the given SQL query and return its first result if there is some.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaH2Util.backup(File file,
boolean compress)
Backup database in gzip compressed file.
|
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).
|
static <E extends TopiaEntity> |
TopiaEntityHelper.getEntities(TopiaPersistenceContext srcCtxt,
List<E> entityList,
boolean canBeNull) |
static TopiaEntity[] |
TopiaEntityHelper.getEntities(TopiaPersistenceContext srcCtxt,
String... entityList) |
static List<? extends TopiaEntity> |
TopiaEntityHelper.getEntitiesList(TopiaPersistenceContext srcCtxt,
String... entityList) |
static <E extends TopiaEntity> |
TopiaEntityHelper.getExistingEntity(TopiaDao<E> dao,
String topiaId)
Récupère une entité qui doit exister à partir de son id.
|
void |
TopiaH2Util.restore(File file)
Read database from gzip compressed file
Only work for h2 database
|
Copyright © 2004–2014 CodeLutin. All rights reserved.