| 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
Exception thrown if one of the entry from the configuration is missing at runtime
Created: 23 déc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaContext.add(TopiaEntity e)
|
void |
TopiaContext.backup(File file,
boolean compress)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
TopiaContext |
TopiaContext.beginTransaction()
Deprecated.
we need another method that returns a
TopiaTransaction only. This method doesn't exist yet |
protected String[] |
HibernateTopiaReplicationSupport.buildQueries(Object... entityAndCondition)
Build the list of queries from the given parameter
entityAndCondition. |
protected void |
AbstractTopiaPersistenceContext.checkClosed() |
void |
TopiaContext.clear(boolean dropDatabase)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
TopiaContext.clearCache()
Deprecated.
use
TopiaHibernateSupport#getHibernateSession().clear() |
void |
AbstractTopiaApplicationContext.closeContext() |
void |
TopiaContext.closeContext()
Deprecated.
use method from
TopiaTransaction |
void |
TopiaContext.commitTransaction()
Deprecated.
use method from
TopiaTransaction |
void |
TopiaContext.createSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
int |
TopiaContext.execute(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
void |
TopiaContext.executeSQL(String sqlScript)
Deprecated.
use method from
TopiaSqlSupport |
<E> List<E> |
TopiaContext.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E> List<E> |
TopiaContext.findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E extends TopiaEntity> |
TopiaContext.findByTopiaId(String topiaId)
Deprecated.
|
<E> E |
TopiaContext.findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
void |
TopiaContext.replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
TopiaContext.replicateEntities(TopiaContext destinationContext,
List<T> entities)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
TopiaContext.replicateEntity(TopiaContext destinationContext,
T entity)
Deprecated.
use methods from
TopiaReplicationSupport |
void |
TopiaContext.restore(File file)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
TopiaContext.rollbackTransaction()
Deprecated.
use method from
TopiaTransaction |
void |
TopiaContext.showCreateSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
protected void |
AbstractTopiaPersistenceContext.startTransaction() |
void |
TopiaContext.updateSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTopiaContext.add(TopiaEntity e) |
void |
AbstractTopiaContext.backup(File file,
boolean compress)
Backup database in gzip compressed file.
|
TopiaContext |
AbstractTopiaContext.beginTransaction() |
protected String[] |
AbstractTopiaContext.buildQueries(Object... entityAndCondition)
Build the list of queries from the given parameter
entityAndCondition. |
protected void |
AbstractTopiaContext.checkClosed(String message) |
void |
AbstractTopiaContext.clear(boolean dropDatabase)
Only h2 supported for now
|
void |
AbstractTopiaContext.clearCache()
Clear hibernate cache to free memory.
|
void |
AbstractTopiaContext.closeContext() |
void |
AbstractTopiaContext.commitTransaction() |
void |
AbstractTopiaContext.createSchema() |
void |
AbstractTopiaContext.dropSchema() |
int |
AbstractTopiaContext.execute(String jpaql,
Object... propertyNamesAndValues)
Execute HQL operation on data (Update, Delete)
|
void |
AbstractTopiaContext.executeSQL(String sqlScript) |
<E> List<E> |
AbstractTopiaContext.find(String jpaql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues) |
<E> List<E> |
AbstractTopiaContext.findAll(String jpaql,
Object... propertyNamesAndValues) |
<E extends TopiaEntity> |
AbstractTopiaContext.findByTopiaId(String id) |
List<O> |
TopiaSQLQuery.findMultipleResult(TopiaContext tx)
Obtain a multiple results fro the builded sql query.
|
List<O> |
TopiaSQLQuery.findMultipleResult(TopiaContextImplementor tx)
Deprecated.
since 3.0, use now
TopiaSQLQuery.findMultipleResult(TopiaContext). |
O |
TopiaSQLQuery.findSingleResult(TopiaContext tx)
Obtain a single result from the builded sql query.
|
O |
TopiaSQLQuery.findSingleResult(TopiaContextImplementor tx)
Deprecated.
since 3.0, use now
TopiaSQLQuery.findSingleResult(TopiaContext). |
<E> E |
AbstractTopiaContext.findUnique(String jpaql,
Object... propertyNamesAndValues) |
<E extends TopiaEntity> |
TopiaContextImplementor.getDao(Class<E> entityClass)
Deprecated.
use method from
TopiaPersistenceContext |
<E extends TopiaEntity> |
AbstractTopiaContext.getDao(Class<E> entityClass) |
<E extends TopiaEntity,D extends TopiaDAO<E>> |
TopiaContextImplementor.getDao(Class<E> entityClass,
Class<D> daoClass)
Deprecated.
use method from
TopiaPersistenceContext |
<E extends TopiaEntity,D extends TopiaDAO<E>> |
AbstractTopiaContext.getDao(Class<E> entityClass,
Class<D> daoClass) |
org.hibernate.Session |
TopiaContextImplementor.getHibernate()
Deprecated.
use method from
TopiaHibernateSupport |
org.hibernate.Session |
AbstractTopiaContext.getHibernate() |
org.hibernate.Session |
AbstractTopiaContext.getHibernateSession() |
boolean |
TopiaContextImplementor.isSchemaExist(Class<?> clazz)
Deprecated.
use method from
TopiaPersistenceContext |
boolean |
AbstractTopiaContext.isSchemaExist(Class<?> clazz) |
void |
AbstractTopiaContext.replicate(TopiaContext dstCtxt,
Object... entityAndCondition) |
protected void |
AbstractTopiaContext.replicate0(AbstractTopiaContext dstContextImpl,
Object... entities) |
<T extends TopiaEntity> |
AbstractTopiaContext.replicateEntities(TopiaContext dstCtxt,
List<T> entities) |
<T extends TopiaEntity> |
AbstractTopiaContext.replicateEntity(TopiaContext dstCtxt,
T entity) |
void |
AbstractTopiaContext.restore(File file)
Read database from gzip compressed file
Only work for h2 database
|
void |
AbstractTopiaContext.rollbackTransaction() |
void |
AbstractTopiaContext.showCreateSchema() |
void |
AbstractTopiaContext.update(TopiaEntity entity) |
void |
AbstractTopiaContext.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)
Deprecated.
|
void |
TopiaDAO.computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
long |
TopiaDAOImpl.count()
Deprecated.
|
long |
TopiaDAOImpl.countByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
long |
TopiaDAO.countByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your call to inside the DAO and use
AbstractTopiaDao.count(String, java.util.Map) |
E |
TopiaDAOImpl.create(E entity)
Deprecated.
|
E |
TopiaDAOImpl.create(Map<String,Object> properties)
Deprecated.
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(Object... propertyNamesAndValues)
Deprecated.
|
E |
TopiaDAO.create(Object... propertyNamesAndValues)
Deprecated.
|
void |
TopiaDAOImpl.delete(E e)
Deprecated.
|
void |
TopiaDAOImpl.deleteAll(Iterable<E> entities)
Deprecated.
|
boolean |
TopiaDAOImpl.existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues)
Deprecated.
|
boolean |
TopiaDAO.existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.exists(String, java.util.Map) |
boolean |
TopiaDAOImpl.existByTopiaId(String id)
Deprecated.
|
boolean |
TopiaDAO.existByTopiaId(String id)
Deprecated.
use new API and inline
LegacyTopiaDao.existByTopiaId(String) |
boolean |
TopiaDAOImpl.existsByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
boolean |
TopiaDAO.existsByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.exists(String, java.util.Map) |
<E> List<E> |
TopiaDAO.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E1> List<E1> |
TopiaDAOImpl.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
<E1> List<E1> |
LegacyTopiaDao.find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAOImpl.findAll()
Deprecated.
|
<E> List<E> |
TopiaDAO.findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E1> List<E1> |
TopiaDAOImpl.findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<E1> List<E1> |
LegacyTopiaDao.findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAOImpl.findAllByProperties(Map<String,Object> properties)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperties(Map<String,Object> properties)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(java.util.Map) |
List<E> |
TopiaDAOImpl.findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(String, Object, Object...) |
List<E> |
TopiaDAOImpl.findAllByProperty(String propertyName,
Object value)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperty(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(String, Object, Object...) |
<R> List<R> |
TopiaDAOImpl.findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<R> List<R> |
TopiaDAO.findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class) |
List<E> |
TopiaDAOImpl.findAllByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAO.findAllByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map) |
<R> List<R> |
TopiaDAOImpl.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
<R> List<R> |
TopiaDAO.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class, org.nuiton.topia.persistence.pager.TopiaPagerBean) |
List<E> |
TopiaDAOImpl.findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAO.findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, org.nuiton.topia.persistence.pager.TopiaPagerBean) |
<R> List<R> |
TopiaDAOImpl.findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
<R> List<R> |
TopiaDAO.findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class, int, int) |
List<E> |
TopiaDAOImpl.findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
TopiaDAO.findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, int, int) |
List<E> |
TopiaDAOImpl.findAllContains(String propertyName,
Object value)
Deprecated.
|
List<E> |
TopiaDAO.findAllContains(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllContains(String, Object) |
List<String> |
TopiaDAOImpl.findAllIds()
Deprecated.
|
<R> Iterable<R> |
TopiaDAOImpl.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
<R> Iterable<R> |
TopiaDAOImpl.findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
Iterable<E> |
TopiaDAOImpl.findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
Iterable<E> |
TopiaDAO.findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map) |
Iterable<E> |
TopiaDAOImpl.findAllLazyByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
Iterable<E> |
TopiaDAO.findAllLazyByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> |
TopiaDAOImpl.findAllUsages(E e)
Deprecated.
|
List<E> |
TopiaDAOImpl.findAllWithOrder(String... propertyNames)
Deprecated.
|
List<E> |
TopiaDAO.findAllWithOrder(String... propertyNames)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllWithOrder(String...) |
E |
TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys)
Deprecated.
|
E |
TopiaDAO.findByPrimaryKey(Map<String,Object> keys)
Deprecated.
use new API and inline
LegacyTopiaDao.findByPrimaryKey(java.util.Map) |
E |
TopiaDAOImpl.findByPrimaryKey(Object... k)
Deprecated.
|
E |
TopiaDAO.findByPrimaryKey(Object... propertyNamesAndValues)
Deprecated.
use new API and inline
LegacyTopiaDao.findByPrimaryKey(Object...) |
E |
TopiaDAOImpl.findByProperties(Map<String,Object> properties)
Deprecated.
|
E |
TopiaDAO.findByProperties(Map<String,Object> properties)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(java.util.Map) |
E |
TopiaDAOImpl.findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
|
E |
TopiaDAO.findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(String, Object, Object...) |
E |
TopiaDAOImpl.findByProperty(String propertyName,
Object value)
Deprecated.
|
E |
TopiaDAO.findByProperty(String propertyName,
Object value)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(String, Object, Object...) |
<R> R |
TopiaDAOImpl.findByQuery(Class<R> type,
String hql,
Object... params)
Deprecated.
|
<R> R |
TopiaDAO.findByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use a suitable protected method
|
E |
TopiaDAOImpl.findByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
E |
TopiaDAO.findByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use a suitable protected method
|
E |
TopiaDAOImpl.findByTopiaId(String id)
Deprecated.
|
E |
TopiaDAO.findByTopiaId(String id)
Deprecated.
ambiguous signature use new API and inline
TopiaDao.forTopiaIdEquals(String) |
E |
TopiaDAOImpl.findContains(String propertyName,
Object value)
Deprecated.
|
E |
TopiaDAO.findContains(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findContains(String, Object) |
<E> E |
TopiaDAO.findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E1> E1 |
TopiaDAOImpl.findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<E1> E1 |
LegacyTopiaDao.findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<U extends TopiaEntity> |
TopiaDAOImpl.findUsages(Class<U> type,
E e)
Deprecated.
|
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()
Deprecated.
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)
Deprecated.
Retourne l'id de l'entity
|
protected Serializable |
TopiaDAOImpl.getId(Map map)
Deprecated.
Retourne l'id de l'entity representer comme une map
|
List<Permission> |
TopiaDAOImpl.getRequestPermission(String topiaId,
int actions)
Deprecated.
|
List<Permission> |
TopiaDAO.getRequestPermission(String topiaId,
int actions)
Deprecated.
topia-service-security will be removed in 3.0
|
protected org.hibernate.Session |
TopiaDAOImpl.getSession()
Deprecated.
Renvoie la Session contenue dans le contexte
|
void |
TopiaDAOImpl.init(TopiaContext context,
Class<E> entityClass,
TopiaFiresSupport topiaFiresSupport)
Deprecated.
When AbstractTopiaContext create the TopiaDAOHibernate, it must call this
method just after.
|
E |
TopiaDAOImpl.newInstance()
Deprecated.
|
E |
TopiaDAOImpl.update(E e)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importAllEntities(TopiaDAO<E> dao,
TableMeta<T> meta,
org.nuiton.csv.Import<E> importer,
CsvImportResult<T> csvResult) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvImports.importAllEntities(TopiaDAO<E> dao,
TableMeta<T> meta,
org.nuiton.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.csv.Import<E> importer,
CsvImportResult<T> csvResult) |
void |
ImportStrategy.importAssociation(AssociationMeta<T> meta,
org.nuiton.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.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.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importNMAssociation(TopiaContext tx,
AssociationMeta<T> meta,
org.nuiton.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.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.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.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.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.