| 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 |
| Modifier and Type | Class and Description |
|---|---|
class |
TopiaNotFoundException
TODO-FD20100507 : Need javadoc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaContext.add(TopiaEntity e)
Add into this TopiaContext an entity created by another TopiaContext
|
void |
TopiaContext.backup(File file,
boolean compress)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
TopiaContext |
TopiaContext.beginTransaction()
Returns a new context containing its own transaction.
|
void |
TopiaContext.clear(boolean dropDatabase)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
TopiaContext.clearCache()
Clear persistence implementation cache.
|
void |
TopiaContext.closeContext()
Closes the context.
|
void |
TopiaContext.commitTransaction()
Applies all the modifications made to this context on the persistence
device.
|
void |
TopiaContext.createSchema()
Triggers database schema creation
|
void |
TopiaContext.dropSchema()
Triggers database schema drop
|
void |
TopiaContext.evict(TopiaEntity e)
Detaches the given entity from the session
|
int |
TopiaContext.execute(String hql,
Object... propertyNamesAndValues)
Execute HQL operation on data (Update, Delete).
|
void |
TopiaContext.executeSQL(String sqlScript)
Execute a given sql code inside this transaction.
|
<E> List<E> |
TopiaContext.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Allow to do some JPA-QL query using the given bounds.
|
<E> List<E> |
TopiaContext.findAll(String hql,
Object... propertyNamesAndValues)
Allow to do some HQL query
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntity
|
<E extends TopiaEntity> |
TopiaContext.findByTopiaId(String topiaId)
Retrieve
TopiaEntity using its unique id. |
<E> E |
TopiaContext.findUnique(String hql,
Object... propertyNamesAndValues)
Allow to do some HQL query and return an unique result.
|
void |
TopiaContext.replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
TopiaContext.replicateEntities(TopiaContext destinationContext,
List<T> entities)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
TopiaContext.replicateEntity(TopiaContext destinationContext,
T entity)
Replicate a given entity from this context to the given context.
|
void |
TopiaContext.restore(File file)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
TopiaContext.rollbackTransaction()
Cancels all the modifications made to this context, coming back to the
state on the last beginTransaction.
|
void |
TopiaContext.showCreateSchema()
Displays the SQL queries that would be used for a schema creation
|
void |
TopiaContext.updateSchema()
Triggers database schema update
|
| Modifier and Type | Method and Description |
|---|---|
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.clearCache()
Clear hibernate cache to free memory.
|
void |
TopiaContextImpl.closeContext() |
void |
TopiaContextImpl.commitTransaction() |
void |
TopiaContextImpl.createSchema() |
void |
TopiaContextImpl.dropSchema() |
void |
TopiaContextImpl.evict(TopiaEntity e) |
int |
TopiaContextImpl.execute(String hql,
Object... propertyNamesAndValues)
Execute HQL operation on data (Update, Delete)
|
void |
TopiaContextImpl.executeSQL(String sqlScript) |
<E> List<E> |
TopiaContextImpl.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues) |
<E> List<E> |
TopiaContextImpl.findAll(String hql,
Object... propertyNamesAndValues) |
<E extends 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.
|
<E> E |
TopiaContextImpl.findUnique(String hql,
Object... propertyNamesAndValues) |
<E extends TopiaEntity> |
TopiaContextImpl.getDAO(Class<E> entityClass) |
<E extends TopiaEntity> |
TopiaContextImplementor.getDAO(Class<E> entityClass)
Get DAO for specified class.
|
<E extends TopiaEntity,D extends TopiaDAO<E>> |
TopiaContextImpl.getDAO(Class<E> entityClass,
Class<D> daoClass) |
<E extends TopiaEntity,D extends TopiaDAO<E>> |
TopiaContextImplementor.getDAO(Class<E> entityClass,
Class<D> daoClass)
Get DAO for specified class.
|
org.hibernate.Session |
TopiaContextImpl.getHibernate() |
org.hibernate.Session |
TopiaContextImplementor.getHibernate() |
boolean |
TopiaContextImpl.isSchemaExist(Class<?> clazz) |
boolean |
TopiaContextImplementor.isSchemaExist(Class<?> clazz)
Detect if the table is created on storage for a given persistant class.
|
void |
TopiaContextImpl.replicate(TopiaContext dstCtxt,
Object... entityAndCondition) |
protected void |
TopiaContextImpl.replicate0(TopiaContextImpl dstContextImpl,
Object... entities) |
<T extends TopiaEntity> |
TopiaContextImpl.replicateEntities(TopiaContext dstCtxt,
List<T> entities) |
<T extends TopiaEntity> |
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() |
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaEntity.accept(EntityVisitor visitor)
Route the entity using a
visitor. |
void |
TopiaDAOImpl.computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues) |
void |
TopiaDAO.computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Execute the count
hql query and then synch the pager to this
result (says fill the
PagerBean.records field and then adapt
the number of pages available and the current number page). |
long |
TopiaDAOImpl.count() |
long |
TopiaDAO.count()
Count the number of existing entities.
|
long |
TopiaDAOImpl.countByQuery(String hql,
Object... propertyNamesAndValues) |
long |
TopiaDAO.countByQuery(String hql,
Object... propertyNamesAndValues)
Count the number of entities based on a the given HQL query.
|
E |
TopiaDAOImpl.create(E entity) |
E |
TopiaDAO.create(E e)
Creates an entity not created without the 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 |
TopiaDAO.create(Map<String,Object> properties)
Creates a new instance of the entity managed by the DAO
|
E |
TopiaDAOImpl.create(Object... propertyNamesAndValues) |
E |
TopiaDAO.create(Object... propertyNamesAndValues)
Creates a new instance of the entity managed by the DAO
|
void |
TopiaDAOImpl.delete(E e) |
void |
TopiaDAO.delete(E e)
Removes the given entity from the storage
|
void |
TopiaDAOImpl.deleteAll(Iterable<E> entities) |
void |
TopiaDAO.deleteAll(Iterable<E> entities)
Permet de supprimer des entités.
|
boolean |
TopiaDAOImpl.existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues) |
boolean |
TopiaDAO.existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues)
Check the existence of an entity with
propertyName with propertyValue. |
boolean |
TopiaDAOImpl.existByTopiaId(String id) |
boolean |
TopiaDAO.existByTopiaId(String id)
Check the existence of an entity with technical
id. |
boolean |
TopiaDAOImpl.existsByQuery(String hql,
Object... propertyNamesAndValues) |
boolean |
TopiaDAO.existsByQuery(String hql,
Object... propertyNamesAndValues)
Check the existence of an entity using the given HQL query.
|
List<E> |
TopiaDAOImpl.findAll() |
List<E> |
TopiaDAO.findAll()
Finds all the entities managed by this DAO.
|
List<E> |
TopiaDAOImpl.findAllByProperties(Map<String,Object> properties) |
List<E> |
TopiaDAO.findAllByProperties(Map<String,Object> properties)
Finds all entities E matching all the
properties values. |
List<E> |
TopiaDAOImpl.findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues) |
List<E> |
TopiaDAO.findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Finds all entities E matching the given
propertyName, value
AND all other properties |
List<E> |
TopiaDAOImpl.findAllByProperty(String propertyName,
Object value) |
List<E> |
TopiaDAO.findAllByProperty(String propertyName,
Object value)
Finds all entities E which value for the given
propertyName is
value |
<R> List<R> |
TopiaDAOImpl.findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues) |
<R> List<R> |
TopiaDAO.findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Gets all entities when executing the given select query for the given
type which may not be a entity type (int, long, map,...). |
List<E> |
TopiaDAOImpl.findAllByQuery(String hql,
Object... propertyNamesAndValues) |
List<E> |
TopiaDAO.findAllByQuery(String hql,
Object... propertyNamesAndValues)
Finds all entities E when executing the given HQL query.
|
<R> List<R> |
TopiaDAOImpl.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues) |
<R> List<R> |
TopiaDAO.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Finds a page of entities R of the given select
hql query using the
pager to obtain the window of entities to return. |
List<E> |
TopiaDAOImpl.findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues) |
List<E> |
TopiaDAO.findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Gets a page of entities E of the given select
hql query using the
pager to obtain the window of entities to return. |
<R> List<R> |
TopiaDAOImpl.findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues) |
<R> List<R> |
TopiaDAO.findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Finds a page of entities R when executing the given select query for the dao
entity type (will only return the window of
startIndex -
endIndex entities). |
List<E> |
TopiaDAOImpl.findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues) |
List<E> |
TopiaDAO.findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Finds a page of entities E when executing the given select query for the dao
entity type (will only return the window of
startIndex -
endIndex entities). |
List<E> |
TopiaDAOImpl.findAllContains(String propertyName,
Object value) |
List<E> |
TopiaDAO.findAllContains(String propertyName,
Object value)
Find all the entities E which given collection (propertyName) contains the
given value
|
List<String> |
TopiaDAOImpl.findAllIds() |
List<String> |
TopiaDAO.findAllIds()
Find all the ids for the E entity type
|
<R> Iterable<R> |
TopiaDAOImpl.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues) |
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues)
Finds all entities R in lazy mode when executing the given select query
for the given
type which may not be a entity type (int, long, map,...). |
<R> Iterable<R> |
TopiaDAOImpl.findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues) |
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Finds all entities R in lazy mode when executing the given select query
for the given
type which may not be a entity type (int, long, map,...). |
Iterable<E> |
TopiaDAOImpl.findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues) |
Iterable<E> |
TopiaDAO.findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues)
Finds all entities E in lazy mode when executing the given select query
for the dao entity type.
|
Iterable<E> |
TopiaDAOImpl.findAllLazyByQuery(String hql,
Object... propertyNamesAndValues) |
Iterable<E> |
TopiaDAO.findAllLazyByQuery(String hql,
Object... propertyNamesAndValues)
Finds all entities E in lazy mode when executing the given select query
for the dao entity type.
|
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> |
TopiaDAOImpl.findAllWithOrder(String... propertyNames) |
List<E> |
TopiaDAO.findAllWithOrder(String... propertyNames)
Finds all entites E managed by this DAO.
|
E |
TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys) |
E |
TopiaDAO.findByPrimaryKey(Map<String,Object> keys)
Find an entity using the natural ids.
|
E |
TopiaDAOImpl.findByPrimaryKey(Object... k) |
E |
TopiaDAO.findByPrimaryKey(Object... propertyNamesAndValues)
Find an entity using the natural ids.
|
E |
TopiaDAOImpl.findByProperties(Map<String,Object> properties) |
E |
TopiaDAO.findByProperties(Map<String,Object> properties)
Find an entity matching
properties. |
E |
TopiaDAOImpl.findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues) |
E |
TopiaDAO.findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Find an entity matching a succession of propertyName + value arguments.
|
E |
TopiaDAOImpl.findByProperty(String propertyName,
Object value) |
E |
TopiaDAO.findByProperty(String propertyName,
Object value)
Find an entity matching
value for the given propertyName. |
<R> R |
TopiaDAOImpl.findByQuery(Class<R> type,
String hql,
Object... params) |
<R> R |
TopiaDAO.findByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Executes and returns the result (entity R) of the given HQL query string.
|
E |
TopiaDAOImpl.findByQuery(String hql,
Object... propertyNamesAndValues) |
E |
TopiaDAO.findByQuery(String hql,
Object... propertyNamesAndValues)
Executes and returns the result (entity E) of the given HQL query string.
|
E |
TopiaDAOImpl.findByTopiaId(String id) |
E |
TopiaDAO.findByTopiaId(String id)
Find an entity corresponding to the
id. |
E |
TopiaDAOImpl.findContains(String propertyName,
Object value) |
E |
TopiaDAO.findContains(String propertyName,
Object value)
Find the first entity which given collection (propertyName) contains the
given value
|
<R extends TopiaEntity> |
TopiaDAO.findUsages(Class<R> type,
E entity)
Find usages of the given
entity in the entities of the given
type. |
<U extends TopiaEntity> |
TopiaDAOImpl.findUsages(Class<U> type,
E e) |
List<TopiaEntity> |
TopiaEntityAbstract.getAggregate() |
List<TopiaEntity> |
TopiaEntity.getAggregate()
Deprecated.
from 3.0, method will be moved to entity's generated DAO (cf http://nuiton.org/issues/2776)
|
protected org.hibernate.metadata.ClassMetadata |
TopiaDAOImpl.getClassMetadata()
package locale method because this is hibernate specific method and
we don't want expose it.
|
List<TopiaEntity> |
TopiaEntityAbstract.getComposite() |
List<TopiaEntity> |
TopiaEntity.getComposite()
Deprecated.
from 3.0, method will be moved to entity's generated DAO (cf http://nuiton.org/issues/2776)
|
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)
Deprecated.
TopiaQuery will be removed in version 3.0 |
protected org.hibernate.Session |
TopiaDAOImpl.getSession()
Renvoie la Session contenue dans le contexte
|
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)
Method to invoke right after instance creation.
|
E |
TopiaDAOImpl.newInstance() |
E |
TopiaDAO.newInstance()
Create a new instance of managed entity not persisted.
|
void |
TopiaEntityContextable.setTopiaContext(TopiaContext topiaContext)
Set topia context.
|
E |
TopiaDAOImpl.update(E e) |
E |
TopiaDAO.update(E e)
Update an entity.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importAllEntities(TopiaDAO<E> dao,
TableMeta<T> meta,
org.nuiton.util.csv.Import<E> importer,
CsvImportResult<T> csvResult) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importAllEntities(TopiaDAO<E> dao,
TableMeta<T> meta,
org.nuiton.util.csv.Import<E> importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importAllEntitiesAndReturnThem(TopiaDAO<E> dao,
TableMeta<T> meta,
org.nuiton.util.csv.Import<E> importer,
CsvImportResult<T> csvResult) |
void |
ImportStrategy.importAssociation(AssociationMeta<T> meta,
org.nuiton.util.csv.ImportToMap importer,
CsvImportResult<T> csvResult)
Import a association given a
importer with an optional csv result. |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importAssociation(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> |
TopiaCsvImports.importAssociation(TopiaContext tx,
AssociationMeta<T> meta,
org.nuiton.util.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importAssociation(TopiaContext tx,
AssociationMeta<T> meta,
Map<String,TopiaEntity> universe,
org.nuiton.util.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importNMAssociation(TopiaContext tx,
AssociationMeta<T> meta,
org.nuiton.util.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importNMAssociation(TopiaContext tx,
AssociationMeta<T> meta,
Map<String,TopiaEntity> universe,
org.nuiton.util.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importNotExistingEntities(TopiaDAO<E> dao,
TableMeta<T> meta,
Map<String,TopiaEntity> universe,
org.nuiton.util.csv.Import<E> importer,
CsvImportResult<T> csvResult) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importTable(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> |
ImportStrategy.importTable(TableMeta<T> meta,
org.nuiton.util.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> |
TopiaCsvImports.importTableAndReturn(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> |
ImportStrategy.importTableAndReturnThem(TableMeta<T> meta,
org.nuiton.util.csv.Import<E> importer,
CsvImportResult<T> csvResult)
Import a table given a
importer with an optional csv result,
and return them. |
| 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) |
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 <E extends TopiaEntity> |
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 <E extends TopiaEntity> |
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–2013 CodeLutin. All rights reserved.