Package | Description |
---|---|
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.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)
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.clearCache()
Clear persistence implementation cache.
|
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.
|
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.findAll(String hql,
Object... args)
Permet de faire une requete HQL hibernate directement sur la base.
|
List |
TopiaContext.findByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
TopiaEntity |
TopiaContext.findByTopiaId(String topiaId)
Retrieve
TopiaEntity using its unique id . |
Object |
TopiaContext.findUnique(String jpaql,
Object... paramNamesAndValues)
Allow to do some HQL query and return an unique result.
|
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> |
TopiaContext.replicateEntities(TopiaContext dstCtxt,
List<T> entities)
Permet de dupliquer les entités du type donné vers un autre context.
|
<T extends TopiaEntity> |
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.
|
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() |
int |
TopiaContextImpl.execute(String hql,
Object... args)
Execute HQL operation on data (Update, Delete)
|
List |
TopiaQuery.execute(TopiaContext transaction)
Deprecated.
Simple execution of the query.
|
int |
TopiaQuery.executeCount(TopiaContext transaction)
Deprecated.
Execute a simple count on the query, i.e. the number of results get from
the query.
|
void |
TopiaContextImpl.executeSQL(String sqlScript) |
<E extends TopiaEntity> |
TopiaQuery.executeToEntity(TopiaContext transaction,
Class<E> entityClass)
Deprecated.
Execute the query and get the first result entity.
|
<E extends TopiaEntity> |
TopiaQuery.executeToEntityList(TopiaContext transaction,
Class<E> entityClass)
Deprecated.
Execute the query and get a List of entity.
|
<E extends TopiaEntity> |
TopiaQuery.executeToEntityMap(TopiaContext transaction,
Class<E> entityClass)
Deprecated.
Execute the query and get a Map of entity with topiaId in key.
|
<E extends TopiaEntity,K> |
TopiaQuery.executeToEntityMap(TopiaContext transaction,
Class<E> entityClass,
String keyName,
Class<K> keyClass)
Deprecated.
Execute the query and get a Map of entity with key type in argument.
|
int |
TopiaQuery.executeToInteger(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get an Integer for result.
|
Object |
TopiaQuery.executeToObject(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get an Object for result.
|
String |
TopiaQuery.executeToString(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get a String for result.
|
List<?> |
TopiaContextImpl.find(String hql,
int startIndex,
int endIndex,
Object... args) |
List<?> |
TopiaContextImpl.findAll(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.
|
Object |
TopiaContextImpl.findUnique(String hql,
Object... paramNamesAndValues) |
<E extends TopiaEntity> |
TopiaContextImplementor.getDAO(Class<E> entityClass)
Get DAO for specified class.
|
<E extends TopiaEntity> |
TopiaContextImpl.getDAO(Class<E> entityClass) |
<E extends TopiaEntity,D extends TopiaDAO<E>> |
TopiaContextImplementor.getDAO(Class<E> entityClass,
Class<D> daoClass)
Get DAO for specified class.
|
<E extends TopiaEntity,D extends TopiaDAO<E>> |
TopiaContextImpl.getDAO(Class<E> entityClass,
Class<D> daoClass) |
org.hibernate.Session |
TopiaContextImplementor.getHibernate() |
org.hibernate.Session |
TopiaContextImpl.getHibernate() |
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> |
TopiaQuery.loadEntityProperty(T entity,
String property)
Deprecated.
Load a property of type TopiaEntity from an other entity.
|
protected void |
TopiaQuery.loadProperties(TopiaEntity entity)
Deprecated.
Load all properties for the entity.
|
protected <T extends TopiaEntity> |
TopiaQuery.loadProperty(T entity,
String property)
Deprecated.
Load a property from an entity.
|
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... params) |
void |
TopiaDAO.computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... params)
Execute the count
hql query and then synch the pager to this
result (says fill the
PagerBean.getRecords() 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... params) |
long |
TopiaDAO.countByQuery(String hql,
Object... params)
Count the number of entities based on a
hql . |
int |
TopiaDAOImpl.countByQuery(TopiaQuery query) |
int |
TopiaDAODeprecated.countByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
E |
TopiaDAOImpl.create(E entity) |
E |
TopiaDAO.create(E e)
Permet de sauver un object instancié sans le 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)
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 |
TopiaDAO.create(Map<String,Object> properties)
Construit une nouvelle instance de l'objet géré par ce DAO
|
E |
TopiaDAOImpl.create(Object... properties) |
E |
TopiaDAOLegacy.create(Object... properties)
Deprecated.
|
E |
TopiaDAO.create(Object... properties)
Construit une nouvelle instance de l'objet géré par ce DAO
|
void |
TopiaEntityContextable.delete()
Delete entity in persistence context.
|
void |
TopiaDAOImpl.delete(E e) |
void |
TopiaDAO.delete(E e)
Permet de supprimer une entite.
|
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... 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 |
TopiaDAODeprecated.existByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
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... params) |
boolean |
TopiaDAO.existsByQuery(String hql,
Object... params)
Check the existence of an entity using a
hql query. |
List<E> |
TopiaDAOImpl.findAll() |
List<E> |
TopiaDAOLegacy.findAll()
Deprecated.
|
List<E> |
TopiaDAO.findAll()
Gets all entitys of the dao type in db.
|
List<E> |
TopiaDAOImpl.findAllByProperties(Map<String,Object> properties) |
List<E> |
TopiaDAOLegacy.findAllByProperties(Map<String,Object> properties)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperties(Map<String,Object> properties)
Gets all entities of the dao type matching all the
properties . |
List<E> |
TopiaDAOImpl.findAllByProperties(String propertyName,
Object value,
Object... others) |
List<E> |
TopiaDAOLegacy.findAllByProperties(String propertyName,
Object value,
Object... others)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperties(String propertyName,
Object value,
Object... others)
Gets all entities of the dao type matching the
value for the
given propertyName and others . |
List<E> |
TopiaDAOImpl.findAllByProperty(String propertyName,
Object value) |
List<E> |
TopiaDAOLegacy.findAllByProperty(String propertyName,
Object value)
Deprecated.
|
List<E> |
TopiaDAO.findAllByProperty(String propertyName,
Object value)
Gets all entities of the dao type matching the
value for the
given propertyName . |
<R> List<R> |
TopiaDAOImpl.findAllByQuery(Class<R> type,
String hql,
Object... params) |
<R> List<R> |
TopiaDAO.findAllByQuery(Class<R> type,
String hql,
Object... params)
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... params) |
List<E> |
TopiaDAO.findAllByQuery(String hql,
Object... params)
Gets all entities when executing the given select query for the dao
entity type.
|
List<E> |
TopiaDAOImpl.findAllByQuery(TopiaQuery query) |
List<E> |
TopiaDAODeprecated.findAllByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
<R> List<R> |
TopiaDAOImpl.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... params) |
<R> List<R> |
TopiaDAO.findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... params)
Gets a page of entities 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... params) |
List<E> |
TopiaDAO.findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... params)
Gets a page of entities 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... params) |
<R> List<R> |
TopiaDAO.findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... params)
Gets a page of entities 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... params) |
List<E> |
TopiaDAO.findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... params)
Gets a page of entities 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 property) |
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<String> |
TopiaDAOImpl.findAllIds() |
List<String> |
TopiaDAOLegacy.findAllIds()
Deprecated.
|
List<String> |
TopiaDAO.findAllIds()
Recuperation de tous les ids en base pour le type d'entite du dao.
|
<R> Iterable<R> |
TopiaDAOImpl.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... params) |
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... params)
Gets all entities 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... params) |
<R> Iterable<R> |
TopiaDAO.findAllLazyByQuery(Class<R> type,
String hql,
Object... params)
Gets all entities 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... params) |
Iterable<E> |
TopiaDAO.findAllLazyByQuery(int batchSize,
String hql,
Object... params)
Gets all entities in lazy mode when executing the given select query
for the dao entity type.
|
Iterable<E> |
TopiaDAOImpl.findAllLazyByQuery(String hql,
Object... params) |
Iterable<E> |
TopiaDAO.findAllLazyByQuery(String hql,
Object... params)
Gets all entities in lazy mode when executing the given select query
for the dao entity type.
|
Map<String,E> |
TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query) |
Map<String,E> |
TopiaDAODeprecated.findAllMappedByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
<K> Map<K,E> |
TopiaDAOImpl.findAllMappedByQuery(TopiaQuery query,
String keyName,
Class<K> keyClass) |
<K> Map<K,E> |
TopiaDAODeprecated.findAllMappedByQuery(TopiaQuery query,
String keyName,
Class<K> keyClass)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
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> |
TopiaDAOLegacy.findAllWithOrder(String... propertyNames)
Deprecated.
|
List<E> |
TopiaDAO.findAllWithOrder(String... propertyNames)
Gets all entites for the dao entity type order by given
propertyNames . |
E |
TopiaDAOImpl.findByPrimaryKey(Map<String,Object> keys) |
E |
TopiaDAOLegacy.findByPrimaryKey(Map<String,Object> keys)
Deprecated.
|
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(Object... k) |
E |
TopiaDAOLegacy.findByPrimaryKey(Object... k)
Deprecated.
|
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.findByProperties(Map<String,Object> properties) |
E |
TopiaDAOLegacy.findByProperties(Map<String,Object> properties)
Deprecated.
|
E |
TopiaDAO.findByProperties(Map<String,Object> properties)
Find an entity matching
properties . |
E |
TopiaDAOImpl.findByProperties(String propertyName,
Object value,
Object... others) |
E |
TopiaDAOLegacy.findByProperties(String propertyName,
Object value,
Object... others)
Deprecated.
|
E |
TopiaDAO.findByProperties(String propertyName,
Object value,
Object... others) |
E |
TopiaDAOImpl.findByProperty(String propertyName,
Object value) |
E |
TopiaDAOLegacy.findByProperty(String propertyName,
Object value)
Deprecated.
|
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... params)
Execute une requête basé sur le
type donné. |
E |
TopiaDAOImpl.findByQuery(String hql,
Object... params) |
E |
TopiaDAO.findByQuery(String hql,
Object... params)
Execute une requête basé sur l'entité du DAO.
|
E |
TopiaDAOImpl.findByQuery(TopiaQuery query) |
E |
TopiaDAODeprecated.findByQuery(TopiaQuery query)
Deprecated.
since 2.6.12,
TopiaQuery will be removed in version 3.0 |
E |
TopiaDAOImpl.findByTopiaId(String id) |
E |
TopiaDAOLegacy.findByTopiaId(String k)
Deprecated.
|
E |
TopiaDAO.findByTopiaId(String id)
Find an entity corresponding to the
id . |
E |
TopiaDAOImpl.findContains(String propertyName,
Object property) |
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. |
<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> |
TopiaEntity.getAggregate() |
List<TopiaEntity> |
TopiaEntityAbstract.getAggregate() |
List<TopiaEntity> |
TopiaEntity.getComposite() |
List<TopiaEntity> |
TopiaEntityAbstract.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> |
TopiaDAOImpl.getRequestPermission(String topiaId,
int actions) |
List<Permission> |
TopiaDAODeprecated.getRequestPermission(String topiaId,
int actions)
Deprecated.
since 2.6.14,
TopiaQuery will be removed in version 3.0 |
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()
Deprecated.
|
E |
TopiaDAOImpl.newInstance() |
E |
TopiaDAO.newInstance()
Create a new instance of managed entity not persisted.
|
void |
TopiaEntityContextable.setTopiaContext(TopiaContext topiaContext)
Set topia context.
|
void |
TopiaEntityAbstract.setTopiaContext(TopiaContext context) |
void |
TopiaEntityContextable.update()
Update entity in persistence context.
|
E |
TopiaDAOImpl.update(E e) |
E |
TopiaDAO.update(E e)
Permet d'ajouter ou de mettre a jour un objet.
|
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–2022 Code Lutin. All rights reserved.