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.event |
Events used for topia services.
|
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 |
Base package for csv import and export of entities.
|
org.nuiton.topia.persistence.csv.in |
Package for csv import of entities.
|
org.nuiton.topia.persistence.csv.out |
Package for csv export of entities.
|
org.nuiton.topia.persistence.metadata |
Package to define metadatas over
TopiaEntity . |
org.nuiton.topia.persistence.util |
Modifier and Type | Method and Description |
---|---|
<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.
|
Modifier and Type | Method and Description |
---|---|
TopiaEntity |
TopiaContext.findByTopiaId(String topiaId)
Retrieve
TopiaEntity using its unique id . |
Modifier and Type | Method and Description |
---|---|
void |
TopiaContext.add(TopiaEntity e)
Permet d'ajouter dans le TopiaContext une TopiaEntity créé par un autre
context.
|
Modifier and Type | Method and Description |
---|---|
void |
TopiaContext.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaContext.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
void |
TopiaContext.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaContext.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
Modifier and Type | Class and Description |
---|---|
class |
TopiaEntitiesEvent<E extends TopiaEntity>
TODO-fdesbois-20100507 : Need javadoc.
|
Modifier and Type | Method and Description |
---|---|
<E extends TopiaEntity> |
TopiaEntitiesVetoable.load(TopiaEntitiesEvent<E> event) |
Modifier and Type | Method and Description |
---|---|
TopiaEntity |
TopiaEntityEvent.getEntity() |
Modifier and Type | Method and Description |
---|---|
Set<TopiaEntity> |
TopiaTransactionEvent.getEntities() |
Modifier and Type | Method and Description |
---|---|
boolean |
TopiaTransactionEvent.isCreate(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isDelete(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isLoad(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isModification(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isRead(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isUpdate(TopiaEntity entity) |
Constructor and Description |
---|
TopiaEntityEvent(Object source,
TopiaEntity entity,
Object[] state) |
TopiaEntityEvent(Object source,
TopiaEntity entity,
Object[] state,
Object[] oldState) |
TopiaEntityEvent(Object source,
TopiaEntity entity,
Object[] state,
Object[] oldState,
int[] dirtyProperties) |
Constructor and Description |
---|
TopiaTransactionEvent(TopiaContext source,
Map<TopiaEntity,EntityState> entities) |
Modifier and Type | Field and Description |
---|---|
protected Map<Class<? extends TopiaEntity>,TopiaDAO<? extends TopiaEntity>> |
TopiaContextImpl.daoCache
cache des DAO deja chargé pour ce context
|
protected Map<Class<? extends TopiaEntity>,TopiaDAO<? extends TopiaEntity>> |
TopiaContextImpl.daoCache
cache des DAO deja chargé pour ce context
|
protected Map<TopiaEntity,EntityState> |
TopiaFiresSupport.transactionEntities
used to collect entity modification during transaction
|
Modifier and Type | Method and Description |
---|---|
<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.
|
<E extends TopiaEntity> |
TopiaFiresSupport.fireEntitiesLoad(TopiaContextImplementor context,
List<E> entities)
Notify entities listeners for load operation
|
<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) |
protected <T extends TopiaEntity> |
TopiaQuery.loadEntityProperty(T entity,
String property)
Deprecated.
Load a property of type TopiaEntity from an other entity.
|
protected <T extends TopiaEntity> |
TopiaQuery.loadProperty(T entity,
String property)
Deprecated.
Load a property from an entity.
|
<T extends TopiaEntity> |
TopiaContextImpl.replicateEntities(TopiaContext dstCtxt,
List<T> entities) |
<T extends TopiaEntity> |
TopiaContextImpl.replicateEntity(TopiaContext dstCtxt,
T entity) |
Modifier and Type | Method and Description |
---|---|
TopiaEntity |
TopiaContextImpl.findByTopiaId(String id) |
protected <T extends TopiaEntity> |
TopiaQuery.loadEntityProperty(T entity,
String property)
Deprecated.
Load a property of type TopiaEntity from an other entity.
|
Modifier and Type | Method and Description |
---|---|
void |
TopiaContextImpl.add(TopiaEntity e) |
void |
TopiaFiresSupport.fireOnPostCreate(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPostDelete(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPostLoad(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPostRead(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
int index,
Object value) |
void |
TopiaFiresSupport.fireOnPostRead(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
Object value) |
void |
TopiaFiresSupport.fireOnPostUpdate(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state,
Object[] oldState,
int[] dirtyProperties) |
void |
TopiaFiresSupport.fireOnPostWrite(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
int index,
Object oldValue,
Object newValue) |
void |
TopiaFiresSupport.fireOnPostWrite(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
Object oldValue,
Object newValue) |
void |
TopiaFiresSupport.fireOnPreCreate(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreDelete(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreLoad(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreRead(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object value) |
void |
TopiaFiresSupport.fireOnPreUpdate(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state,
Object[] oldState) |
void |
TopiaFiresSupport.fireOnPreWrite(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object oldValue,
Object newValue) |
protected void |
TopiaQuery.loadProperties(TopiaEntity entity)
Deprecated.
Load all properties for the entity.
|
void |
TopiaFiresSupport.warnOnCreateEntity(TopiaEntity entity)
used to register objects created during transaction.
|
void |
TopiaFiresSupport.warnOnDeleteEntity(TopiaEntity entity)
used to register objects deleted during transaction.
|
void |
TopiaFiresSupport.warnOnLoadEntity(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
TopiaFiresSupport.warnOnReadEntity(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
TopiaFiresSupport.warnOnUpdateEntity(TopiaEntity entity)
used to register objects modified during transaction.
|
Modifier and Type | Method and Description |
---|---|
TopiaQuery |
TopiaQuery.addFrom(Class<? extends TopiaEntity> entityClass)
Deprecated.
Add an other entity type to the from in the query.
|
TopiaQuery |
TopiaQuery.addFrom(Class<? extends TopiaEntity> entityClass,
String alias)
Deprecated.
Add an other entity type to the from in the query with an alias.
|
void |
TopiaFiresSupport.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaContextImpl.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaFiresSupport.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
void |
TopiaContextImpl.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
static String |
TopiaUtil.getTopiaIdPattern(Class<? extends TopiaEntity> klass)
Compute the pattern to be used to capture a topia id for a given entity
class.
|
void |
TopiaFiresSupport.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaContextImpl.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
TopiaFiresSupport.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
void |
TopiaContextImpl.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
TopiaQuery |
TopiaQuery.setFrom(Class<? extends TopiaEntity> mainEntityClass)
Deprecated.
Set the mainEntity in the from part of the query.
|
TopiaQuery |
TopiaQuery.setFrom(Class<? extends TopiaEntity> mainEntityClass,
String alias)
Deprecated.
Set the mainEntity in the from part of the query and use an alias for
this mainEntity.
|
Constructor and Description |
---|
TopiaQuery(Class<? extends TopiaEntity> mainEntityClass)
Deprecated.
Create a TopiaQuery based on the
entityClass . |
TopiaQuery(Class<? extends TopiaEntity> mainEntityClass,
String alias)
Deprecated.
Create a TopiaQuery based on the
entityClass . |
Modifier and Type | Interface and Description |
---|---|
interface |
TopiaDAO<E extends TopiaEntity>
TopiaDAO is used to manipulate entities corresponding to
E type :
create, delete, update or find entities. |
interface |
TopiaDAODeprecated<E extends TopiaEntity>
Contains all method that are deprecated from
TopiaDAO in version
2.6.12 and then will be removed in next major version (3.0 ). |
class |
TopiaDAOImpl<E extends TopiaEntity>
Cette classe permet d'avoir un ensemble de méthode implantée de façon
standard et plus spécifiquement pour Hibernate.
|
static class |
TopiaDAOImpl.FindAllIterator<E extends TopiaEntity,R> |
class |
TopiaDAOLegacy<E extends TopiaEntity>
Deprecated.
since 2.6.12 Using the hibernate Criteria api is not a good idea as we wants to use in ToPIA next generation (version 3.0) jpa api.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TopiaEntityContextable
|
Modifier and Type | Class and Description |
---|---|
class |
TopiaEntityAbstract
Classe de base de toutes les entités, cela permet de concentrer le code
technique dans cette classe.
|
Modifier and Type | Field and Description |
---|---|
protected Collection<TopiaEntity> |
DepthEntityVisitor.alreadyExplored
Cache of already explored entities.
|
protected List<TopiaEntity> |
HorizontalEntityVisitor.alreadyExplored
Cache used to remember entity during exploration.
|
static com.google.common.base.Function<TopiaEntity,String> |
TopiaId.GET_TOPIA_ID
Function to obtain
getTopiaId() from any entity. |
protected List<TopiaEntity> |
HorizontalEntityVisitor.toVisitEntities
Entity to be visited later.
|
Modifier and Type | Method and Description |
---|---|
<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) |
<E extends TopiaEntity> |
TopiaPersistenceHelper.getDAO(TopiaContext tx,
Class<E> type) |
<E extends TopiaEntity> |
TopiaPersistenceHelper.getDAO(TopiaContext tx,
T type) |
<E extends TopiaEntity> |
TopiaPersistenceHelper.getEntityEnum(Class<E> type) |
Modifier and Type | Method and Description |
---|---|
Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> |
TopiaDAOImpl.findAllUsages(E e) |
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 . |
Map<Class<? extends TopiaEntity>,List<? extends TopiaEntity>> |
TopiaDAO.findAllUsages(E entity)
Find all usages of the given
entity . |
List<TopiaEntity> |
TopiaEntity.getAggregate() |
List<TopiaEntity> |
TopiaEntityAbstract.getAggregate() |
List<TopiaEntity> |
TopiaEntity.getComposite() |
List<TopiaEntity> |
TopiaEntityAbstract.getComposite() |
Class<? extends TopiaEntity> |
TopiaEntityEnum.getContract() |
Class<? extends TopiaEntity> |
TopiaEntityEnum.getImplementation()
Note : this is a lazy accessor.
|
Modifier and Type | Method and Description |
---|---|
void |
DepthEntityVisitor.end(TopiaEntity e) |
void |
HorizontalEntityVisitor.end(TopiaEntity entity) |
void |
EntityVisitor.end(TopiaEntity entity)
Ends the visit of the given entity.
|
void |
DepthEntityVisitor.start(TopiaEntity e) |
void |
HorizontalEntityVisitor.start(TopiaEntity entity) |
void |
EntityVisitor.start(TopiaEntity entity)
Start the visit of the given entity.
|
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
EntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value)
Visit a indexed value from a collection property for the given entity.
|
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
EntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value)
Visit a collection property for the given entity.
|
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> type,
Object value) |
void |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> type,
Object value) |
void |
EntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> type,
Object value)
Visit a none indexed property for the given entity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TopiaEntityEnum.accept(Class<? extends TopiaEntity> klass)
Test if a given type of entity is matching the contract of this entity.
|
Modifier and Type | Class and Description |
---|---|
class |
EntityCsvModel<T extends TopiaEntityEnum,E extends TopiaEntity>
A model to import / export entities into csv files.
|
static class |
TopiaCsvCommons.AssociationValueParserFormatter<E extends TopiaEntity> |
static class |
TopiaCsvCommons.ForeignKeyValue<E extends TopiaEntity> |
static class |
TopiaCsvCommons.ForeignKeyValueForAssociation<E extends TopiaEntity> |
Modifier and Type | Method and Description |
---|---|
<E extends TopiaEntity> |
EntityCsvModel.addForeignKeyForAssociationForImport(String headerName,
String propertyName,
Class<E> entityType,
Collection<E> entities,
com.google.common.base.Function<E,String> transform) |
<E extends TopiaEntity> |
EntityCsvModel.addForeignKeyForImport(String propertyName,
Class<E> entityType,
Collection<E> entities) |
<E extends TopiaEntity> |
EntityCsvModel.addForeignKeyForImport(String propertyName,
Class<E> entityType,
Map<String,E> universe) |
<E extends TopiaEntity> |
EntityCsvModel.addForeignKeyForImport(String headerName,
String propertyName,
Class<E> entityType,
Collection<E> entities,
com.google.common.base.Function<E,String> transform) |
static <E extends TopiaEntity> |
TopiaCsvCommons.newAssociationValueFormatter() |
static <E extends TopiaEntity> |
TopiaCsvCommons.newForeignKeyValue(Class<E> type,
String propertyName,
Map<String,E> universe) |
static <E extends TopiaEntity> |
TopiaCsvCommons.newForeignKeyValueAssociation(Class<E> type,
String propertyName,
Map<String,E> universe) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
EntityCsvModel.newModel(char separator,
TableMeta<T> tableMeta) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
EntityCsvModel.newModel(char separator,
TableMeta<T> tableMeta,
String idHeader) |
Modifier and Type | Method and Description |
---|---|
void |
EntityCsvModel.addForeignKeyForExport(String propertyName,
Class<TopiaEntity> entityType) |
Modifier and Type | Method and Description |
---|---|
<E extends TopiaEntity> |
ImportModelFactory.buildForImport(TableMeta<T> meta) |
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) |
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. |
<E extends TopiaEntity> |
AbstractImportModel.newForeignKeyColumn(String propertyName,
Class<E> entityType,
String foreignKeyName,
Map<String,E> universe) |
<E extends TopiaEntity> |
AbstractImportModel.newForeignKeyColumn(String headerName,
String propertyName,
Class<E> entityType,
String foreignKeyName,
Map<String,E> universe) |
Modifier and Type | Method and Description |
---|---|
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,
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) |
Modifier and Type | Class and Description |
---|---|
class |
EntityAssociationExportModel<T extends TopiaEntityEnum,E extends TopiaEntity>
A model to export associations of entities into csv files.
|
Modifier and Type | Method and Description |
---|---|
<E extends TopiaEntity> |
ExportModelFactory.buildForExport(AssociationMeta<T> associationMeta) |
<E extends TopiaEntity> |
ExportModelFactory.buildForExport(TableMeta<T> meta) |
<E extends TopiaEntity> |
ExportEntityVisitor.export(Iterable<E> entities) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
EntityAssociationExportModel.newExportModel(char separator,
AssociationMeta<T> meta) |
<E extends TopiaEntity> |
PrepareDataForExport.prepareData(AssociationMeta<T> associationMeta) |
<E extends TopiaEntity> |
PrepareDataForExport.prepareData(TableMeta<T> tableMeta) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvExports.prepareExport(AssociationMeta<T> associationMeta,
ExportModelFactory<T> modelFactory,
PrepareDataForExport<T> prepareDataForExport) |
static <T extends TopiaEntityEnum,E extends TopiaEntity> |
TopiaCsvExports.prepareExport(TableMeta<T> tableMeta,
ExportModelFactory<T> modelFactory,
PrepareDataForExport<T> prepareDataForExport) |
Modifier and Type | Method and Description |
---|---|
void |
ExportEntityVisitor.end(TopiaEntity entity) |
void |
ExportEntityVisitor.export(TopiaEntity entity) |
void |
ExportEntityVisitor.start(TopiaEntity entity) |
void |
ExportEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
ExportEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
ExportEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> type,
Object value) |
protected void |
ExportEntityVisitor.visitEntityCollection(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Collection<?> cValue) |
void |
TopiaCsvExports.EntityExportContext.write(TopiaEntity data) |
void |
TopiaCsvExports.EntityExportContext.writeAssociations(TopiaEntity data) |
Modifier and Type | Method and Description |
---|---|
void |
TopiaCsvExports.EntityExportContext.addAssociationExportContext(AssociationMeta<T> meta,
org.nuiton.csv.ExportModel<TopiaEntity> model,
File container) |
protected TopiaCsvExports.EntityExportContext |
ExportEntityVisitor.getEntityContext(Class<? extends TopiaEntity> entityType) |
static <T extends TopiaEntityEnum> |
TopiaCsvExports.EntityExportContext.newExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
TableMeta<T> meta,
File container) |
Constructor and Description |
---|
AssociationExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
AssociationMeta<T> meta,
File container,
List<TopiaEntity> data) |
AssociationExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
AssociationMeta<T> meta,
File container,
List<TopiaEntity> data) |
EntityExportContext(org.nuiton.csv.ExportModel<TopiaEntity> model,
TableMeta<T> meta,
File container) |
Modifier and Type | Field and Description |
---|---|
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
TableMeta.binder
Binder used to copy entities (lazy loaded).
|
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
TableMeta.binder
Binder used to copy entities (lazy loaded).
|
protected EntityOperator<TopiaEntity> |
AssociationMeta.operator
Operator of the source entity used to get / set associations.
|
protected EntityOperator<TopiaEntity> |
TableMeta.operator
Entity operator used in generic algorithms.
|
Modifier and Type | Method and Description |
---|---|
TopiaEntity |
AssociationMeta.newEntity() |
TopiaEntity |
TableMeta.newEntity() |
Modifier and Type | Method and Description |
---|---|
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
TableMeta.getBinder() |
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
TableMeta.getBinder() |
Collection<TopiaEntity> |
AssociationMeta.getChilds(TopiaEntity entity) |
Class<? extends TopiaEntity> |
TableMeta.getEntityType() |
EntityOperator<TopiaEntity> |
AssociationMeta.getOperator() |
EntityOperator<TopiaEntity> |
TableMeta.getOperator() |
Modifier and Type | Method and Description |
---|---|
void |
TableMeta.copy(TopiaEntity source,
TopiaEntity target) |
Collection<TopiaEntity> |
AssociationMeta.getChilds(TopiaEntity entity) |
boolean |
AssociationMeta.isChildEmpty(TopiaEntity entity) |
Map<String,Object> |
TableMeta.prepareCreate(TopiaEntity bean,
String topiaId) |
void |
AssociationMeta.setChilds(TopiaEntity entity,
Collection<TopiaEntity> childs) |
Modifier and Type | Method and Description |
---|---|
void |
AssociationMeta.setChilds(TopiaEntity entity,
Collection<TopiaEntity> childs) |
Modifier and Type | Class and Description |
---|---|
class |
EntityListUpdator<P extends TopiaEntity,E extends TopiaEntity>
A implementation of
ListUpdator for TopiaEntity type. |
class |
EntityListUpdator<P extends TopiaEntity,E extends TopiaEntity>
A implementation of
ListUpdator for TopiaEntity type. |
class |
EntityOperator<B extends TopiaEntity>
Un objet qui permet d'effecuter des operations de manipulation des donnees
dans les entites du type donne.
|
class |
TopiaEntityBinder<E extends TopiaEntity>
A
Binder dedicated to TopiaEntity dealing with technical
values. |
class |
TopiaEntityMap<K extends TopiaEntityEnum,V extends TopiaEntity>
A dictionnary of
TopiaEntity associated to a TopiaEntityEnum . |
Modifier and Type | Field and Description |
---|---|
protected E |
TopiaEntityBinder.empty |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Class<? extends TopiaEntity>> |
DBMapping.sequences |
protected Deque<TopiaEntity> |
Collector.CollectorVisitor.stack
la pile des entites en cours de parcours
|
Modifier and Type | Method and Description |
---|---|
static <E extends TopiaEntity> |
TopiaEntityHelper.buildDifferentiel(List<E> referentiel,
List<E> locale)
Construit le dictionnaire des differences entre deux listes d'entites.
|
static <E extends TopiaEntity> |
TopiaEntityHelper.checkNotNullAndExistingEntity(String paramName,
E bean)
Teste si une entité possède un topiaId.
|
static <E extends TopiaEntity> |
TopiaEntityHelper.checkNotNullAndNoneExistingEntity(String paramName,
E bean)
Teste si une entité ne possède pas un topiaId.
|
static <E extends TopiaEntity> |
TopiaEntityHelper.getEntities(TopiaContextImplementor srcCtxt,
List<E> entityList,
boolean canBeNull) |
static <E extends TopiaEntity> |
TopiaEntityHelper.getEntityByTopiaId(Collection<E> entities,
String topiaId)
Récupère une entité dans une liste d'entités à partir de son
getTopiaId() . |
static <E extends TopiaEntity> |
TopiaEntityHelper.getExistingEntity(TopiaDAO<E> dao,
String topiaId)
Récupère une entité qui doit exister à partir de son id.
|
static <E extends TopiaEntity> |
EntityOperatorStore.getOperator(TopiaEntityEnum contract) |
static <P extends TopiaEntity,E extends TopiaEntity> |
EntityListUpdator.newEntityListUpdator(Class<P> parentClass,
Class<E> childClass,
String propertyName) |
static <P extends TopiaEntity,E extends TopiaEntity> |
EntityListUpdator.newEntityListUpdator(Class<P> parentClass,
Class<E> childClass,
String propertyName) |
static <E extends TopiaEntity> |
TopiaEntityHelper.retainEntities(List<E> list,
List<String> topiaIds)
Construit une list d'entite dont les ids sont tous dans la liste d'ids
donnee.
|
Modifier and Type | Method and Description |
---|---|
static TopiaEntity[] |
TopiaEntityHelper.getEntities(TopiaContext srcCtxt,
String... entityList) |
TopiaEntity |
TopiaEntityRef.getInvoker() |
TopiaEntity[] |
TopiaEntityRef.getPath() |
TopiaEntity |
TopiaEntityRef.getRef() |
TopiaEntity |
TopiaEntityRef.getRoot() |
protected TopiaEntity |
Collector.getTopiaValue(Object value) |
Modifier and Type | Method and Description |
---|---|
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 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 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 List<TopiaEntity> |
TopiaEntityHelper.filter(Collection<TopiaEntity> entities,
Class<? extends TopiaEntity> filterClass)
Filter a list of entities, and keep only the ones from a given type.
|
protected Collection<TopiaEntity> |
Collector.getAlreadyExplored() |
protected Collection<TopiaEntity> |
Collector.CollectorVisitor.getAlreadyExplored() |
protected abstract Class<? extends TopiaEntity> |
DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) |
protected Class<? extends TopiaEntity> |
Collector.getContractClass(TopiaEntity e) |
static Class<? extends TopiaEntity> |
TopiaEntityHelper.getContractClass(TopiaEntityEnum[] contracts,
Class<? extends TopiaEntity> klass) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getContractClasses(TopiaEntityEnum[] contracts,
Iterable<Class<? extends TopiaEntity>> klasses) |
static List<? extends TopiaEntity> |
TopiaEntityHelper.getEntitiesList(TopiaContext srcCtxt,
String... entityList) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getInterfaces(Class<? extends TopiaEntity> klass,
Set<Class<? extends TopiaEntity>> klassInterfaces) |
protected Deque<TopiaEntity> |
Collector.getStack() |
protected Deque<TopiaEntity> |
Collector.CollectorVisitor.getStack() |
static Comparator<TopiaEntity> |
TopiaEntityHelper.getTopiaIdComparator()
|
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.retainContracts(TopiaEntityEnum[] contracts,
Set<Class<? extends TopiaEntity>> classes)
Filtre un ensemble de classes d'entites en ne conservant que les contrats
des entites.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Collector.after(Collector.CollectorVisitor visitor,
TopiaEntity entity) |
protected abstract R |
Collector.afterAll(Collector.CollectorVisitor visitor,
TopiaEntity... entities) |
protected void |
Collector.before(Collector.CollectorVisitor visitor,
TopiaEntity entity) |
protected void |
Collector.beforeAll(Collector.CollectorVisitor visitor,
TopiaEntity... entities) |
static void |
TopiaEntityHelper.bindTechnical(TopiaEntity from,
TopiaEntity dst)
Bind les valeurs techniques depuis une entitée vers une autre.
|
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,
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).
|
void |
Collector.CollectorVisitor.end(TopiaEntity e) |
protected Class<? extends TopiaEntity> |
Collector.getContractClass(TopiaEntity e) |
protected void |
Collector.onEnded(TopiaEntity e,
boolean enter) |
protected boolean |
Collector.onEnding(TopiaEntity e) |
protected void |
Collector.onStarted(TopiaEntity e,
boolean enter) |
protected boolean |
Collector.onStarting(TopiaEntity e) |
protected void |
Collector.onVisited(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
int index,
Object value,
boolean enter) |
protected void |
Collector.onVisited(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
Object value,
boolean enter) |
protected void |
Collector.onVisited(TopiaEntity e,
String name,
Class<?> type,
Object value,
boolean enter) |
protected boolean |
Collector.onVisiting(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
protected boolean |
Collector.onVisiting(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
Object value) |
protected boolean |
Collector.onVisiting(TopiaEntity e,
String name,
Class<?> type,
Object value) |
void |
Collector.CollectorVisitor.start(TopiaEntity e) |
void |
Collector.CollectorVisitor.visit(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
Collector.CollectorVisitor.visit(TopiaEntity e,
String name,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
Collector.CollectorVisitor.visit(TopiaEntity e,
String name,
Class<?> type,
Object value) |
Modifier and Type | Method and Description |
---|---|
void |
TopiaEntityIdsMap.addIds(Class<? extends TopiaEntity> type,
Iterable<String> ids) |
protected static void |
TopiaEntityHelper.addInterface(Set<Class<? extends TopiaEntity>> interfaces,
Class<? extends TopiaEntity> klass) |
protected static void |
TopiaEntityHelper.addInterface(Set<Class<? extends TopiaEntity>> interfaces,
Class<? extends TopiaEntity> klass) |
protected String |
DBMapping.checkSequence(Class<? extends TopiaEntity> entityClass,
String propertyName) |
void |
DBMapping.createSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
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.
|
boolean |
DBMapping.existSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
static List<TopiaEntity> |
TopiaEntityHelper.filter(Collection<TopiaEntity> entities,
Class<? extends TopiaEntity> filterClass)
Filter a list of entities, and keep only the ones from a given type.
|
static List<TopiaEntity> |
TopiaEntityHelper.filter(Collection<TopiaEntity> entities,
Class<? extends TopiaEntity> filterClass)
Filter a list of entities, and keep only the ones from a given type.
|
protected abstract Class<? extends TopiaEntity> |
DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) |
static Class<? extends TopiaEntity> |
TopiaEntityHelper.getContractClass(TopiaEntityEnum[] contracts,
Class<? extends TopiaEntity> klass) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getContractClasses(TopiaEntityEnum[] contracts,
Iterable<Class<? extends TopiaEntity>> klasses) |
BigInteger |
DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
protected String |
DBMapping.getDBProperty(Class<? extends TopiaEntity> entityClass,
String property) |
protected String |
DBMapping.getDBTable(Class<? extends TopiaEntity> entityClass) |
static TopiaEntityEnum |
TopiaEntityHelper.getEntityEnum(Class<? extends TopiaEntity> klass,
TopiaEntityEnum... contracts) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getInterfaces(Class<? extends TopiaEntity> klass,
Set<Class<? extends TopiaEntity>> klassInterfaces) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getInterfaces(Class<? extends TopiaEntity> klass,
Set<Class<? extends TopiaEntity>> klassInterfaces) |
BigInteger |
DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
protected String |
DBMapping.getSequenceSQL(String pattern,
Class<? extends TopiaEntity> entityClass,
String propertyName) |
static String[] |
TopiaEntityHelper.getTopiaIdArray(List<? extends TopiaEntity> entities)
Construit un tableau des topiaId d'une liste donnée d'entités.
|
static List<String> |
TopiaEntityHelper.getTopiaIdList(Collection<? extends TopiaEntity> entities)
Construit la liste des topiaId d'une liste donnée d'entités.
|
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.retainContracts(TopiaEntityEnum[] contracts,
Set<Class<? extends TopiaEntity>> classes)
Filtre un ensemble de classes d'entites en ne conservant que les contrats
des entites.
|
void |
DBMapping.updateSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
Constructor and Description |
---|
TopiaEntityRef(TopiaEntity root,
TopiaEntity ref,
String accessorExpression,
TopiaEntity[] path) |
TopiaEntityRef(TopiaEntity root,
TopiaEntity ref,
String accessorExpression,
TopiaEntity[] path) |
Copyright © 2004–2022 Code Lutin. All rights reserved.