| Package | Description |
|---|---|
| org.nuiton.topia.persistence |
This package contains most of the needed contracts when using ToPIA.
|
| org.nuiton.topia.persistence.event |
Events used for ToPIA services.
|
| org.nuiton.topia.persistence.internal | |
| org.nuiton.topia.persistence.internal.support | |
| org.nuiton.topia.persistence.legacy | |
| org.nuiton.topia.persistence.metadata |
Package to define metadata over
TopiaEntity. |
| org.nuiton.topia.persistence.support | |
| org.nuiton.topia.persistence.util |
| Modifier and Type | Class and Description |
|---|---|
class |
HqlAndParametersBuilder<E extends TopiaEntity>
A builder to create syntactically correct HQL and associated parameters given properties or after various constraint
adds.
|
interface |
TopiaDao<E extends TopiaEntity>
This contract represents the common operations any Dao should be able to provide as API.
|
interface |
TopiaQueryBuilderAddCriteriaOrRunQueryStep<E extends TopiaEntity>
Additional contract that aggregate both
TopiaQueryBuilderAddCriteriaStep and
TopiaQueryBuilderRunQueryStep contracts. |
interface |
TopiaQueryBuilderAddCriteriaStep<E extends TopiaEntity>
Represents a step when building a query to add a constraint.
|
interface |
TopiaQueryBuilderRunQueryStep<E extends TopiaEntity>
This interface represents different common operations that a user may do after a query is defined (using the
TopiaQueryBuilderAddCriteriaStep)
There are different methods according to the supposed existence or uniqueness of the result. |
interface |
TopiaQueryBuilderRunQueryWithUniqueResultStep<E extends TopiaEntity>
A subset of
TopiaQueryBuilderRunQueryStep for certain API methods that should not allow findAll. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TopiaEntityContextable
|
| Modifier and Type | Field and Description |
|---|---|
protected List<TopiaEntity> |
HorizontalEntityVisitor.alreadyExplored
Cache used to remember entity during exploration.
|
protected Collection<TopiaEntity> |
DepthEntityVisitor.alreadyExplored
Cache of already explored entities.
|
protected static com.google.common.base.Function<TopiaEntity,String> |
TopiaEntities.GET_TOPIA_ID
Guava's
Function to get a topiaId from any
TopiaEntity |
protected List<TopiaEntity> |
HorizontalEntityVisitor.toVisitEntities
Entity to be visited later.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
TopiaPersistenceContext.deleteAll(Iterable<E> entities)
Delete into this TopiaContext an entities created by another TopiaContext
|
static <E extends TopiaEntity> |
TopiaEntities.findByTopiaId(Iterable<E> entities,
String id)
|
<E extends TopiaEntity> |
TopiaPersistenceContext.findByTopiaId(String topiaId)
Retrieve
TopiaEntity using its unique topiaId. |
<R extends TopiaEntity> |
TopiaDao.findUsages(Class<R> type,
E entity)
Find usages of the given
entity in the entities of the given
type. |
<E extends TopiaEntity> |
TopiaIdFactory.getClassName(String topiaId) |
<T extends TopiaEntity> |
TopiaApplicationContext.getContractClass(Class<T> klass) |
<E extends TopiaEntity> |
TopiaDaoSupplier.getDao(Class<E> entityClass)
Get Dao for specified class.
|
<E extends TopiaEntity,D extends TopiaDao<E>> |
TopiaDaoSupplier.getDao(Class<E> entityClass,
Class<D> daoClass)
Get Dao for specified class.
|
<E extends TopiaEntity> |
TopiaEntityEnumProvider.getEntityEnum(Class<E> type)
Method that returns the TopiaEntityEnum corresponding to the given entity's class.
|
<T extends TopiaEntity> |
TopiaApplicationContext.getImplementationClass(Class<T> klass) |
<E extends TopiaEntity> |
TopiaIdFactory.newTopiaId(Class<E> entityClass,
String randomPart)
Builds a new topiaId for the given entity type and the given random part.
|
<E extends TopiaEntity> |
TopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity)
Generates a new topiaId for the given entity type and the given entity.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<TopiaEntity> |
TopiaEntities.entityHasId(String id)
|
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> |
TopiaEntityContextable.getAggregate()
Deprecated.
from 3.0, method will be moved to entity's generated Dao (cf http://nuiton.org/issues/2776)
|
List<TopiaEntity> |
TopiaDao.getAggregate(E entity) |
List<TopiaEntity> |
TopiaEntityContextable.getComposite()
Deprecated.
from 3.0, method will be moved to entity's generated Dao(cf http://nuiton.org/issues/2776)
|
List<TopiaEntity> |
TopiaDao.getComposite(E entity) |
Class<? extends TopiaEntity> |
TopiaEntityEnum.getContract() |
Class<? extends TopiaEntity> |
TopiaEntityEnum.getImplementation()
Note : this is a lazy accessor.
|
static com.google.common.base.Function<TopiaEntity,String> |
TopiaEntities.getTopiaIdFunction()
Function to obtain
getTopiaId() from any entity. |
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaPersistenceContext.delete(TopiaEntity entity)
Delete into this TopiaContext an entity created by another TopiaContext
|
void |
HorizontalEntityVisitor.end(TopiaEntity entity) |
void |
DepthEntityVisitor.end(TopiaEntity e) |
void |
TopiaEntityVisitor.end(TopiaEntity entity)
Ends the visit of the given entity.
|
<E extends TopiaEntity> |
TopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity)
Generates a new topiaId for the given entity type and the given entity.
|
void |
TopiaReplicationDestination.replicate(TopiaEntity entity)
Must replicate given entity in current database
|
void |
HorizontalEntityVisitor.start(TopiaEntity entity) |
void |
DepthEntityVisitor.start(TopiaEntity e) |
void |
TopiaEntityVisitor.start(TopiaEntity entity)
Start the visit of the given entity.
|
void |
TopiaPersistenceContext.update(TopiaEntity entity)
Add into this TopiaContext an entity created by another TopiaContext
|
void |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
int index,
Object value) |
void |
TopiaEntityVisitor.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 |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value) |
void |
TopiaEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> collectionType,
Class<?> type,
Object value)
Visit a collection property for the given entity.
|
void |
HorizontalEntityVisitor.visit(TopiaEntity entity,
String propertyName,
Class<?> type,
Object value) |
void |
DepthEntityVisitor.visit(TopiaEntity e,
String propertyName,
Class<?> type,
Object value) |
void |
TopiaEntityVisitor.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 |
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.isCreated(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isDeleted(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isLoaded(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isModification(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isRead(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isUpdated(TopiaEntity entity) |
boolean |
TopiaTransactionEvent.isWritten(TopiaEntity entity) |
| Constructor and Description |
|---|
TopiaEntityEvent(TopiaPersistenceContext source,
TopiaEntity entity,
Object[] state) |
| Constructor and Description |
|---|
TopiaTransactionEvent(TopiaPersistenceContext source,
Map<TopiaEntity,EntityState> entities) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTopiaDao<E extends TopiaEntity>
This class has the common methods usable for each Dao managed by Topia.
|
static class |
AbstractTopiaDao.FindAllIterator<E extends TopiaEntity,O> |
static class |
AbstractTopiaDao.InnerTopiaQueryBuilderAddCriteriaOrRunQueryStep<E extends TopiaEntity> |
static class |
AbstractTopiaDao.InnerTopiaQueryBuilderRunQueryStep<E extends TopiaEntity> |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTopiaEntity
Base class of each entity.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<? extends TopiaEntity>,TopiaDao<? extends TopiaEntity>> |
AbstractTopiaPersistenceContext.daoCache
Already loaded DAO cache within this persistence context
|
protected Map<Class<? extends TopiaEntity>,TopiaDao<? extends TopiaEntity>> |
AbstractTopiaPersistenceContext.daoCache
Already loaded DAO cache within this persistence context
|
protected static Map<String,Class<? extends TopiaEntity>> |
ShortTopiaIdFactory.ENTITY_CLASSES |
| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
AbstractTopiaPersistenceContext.deleteAll(Iterable<E> entities) |
<E extends TopiaEntity> |
AbstractTopiaPersistenceContext.findByTopiaId(String topiaId) |
protected <E extends TopiaEntity> |
ShortTopiaIdFactory.findClassName(String simpleClassName) |
<E extends TopiaEntity> |
LegacyTopiaIdFactory.getClassName(String topiaId) |
<E extends TopiaEntity> |
DefaultTopiaIdFactory.getClassName(String topiaId) |
<E extends TopiaEntity> |
ShortTopiaIdFactory.getClassName(String topiaId) |
<E extends TopiaEntity> |
AbstractTopiaPersistenceContext.getDao(Class<E> entityClass) |
<E extends TopiaEntity,D extends TopiaDao<E>> |
AbstractTopiaPersistenceContext.getDao(Class<E> entityClass,
Class<D> daoClass) |
<E extends TopiaEntity> |
LegacyTopiaIdFactory.newTopiaId(Class<E> entityClass,
String randomPart) |
<E extends TopiaEntity> |
DefaultTopiaIdFactory.newTopiaId(Class<E> entityClass,
String randomPart) |
<E extends TopiaEntity> |
ShortTopiaIdFactory.newTopiaId(Class<E> entityClass,
String randomPart) |
<E extends TopiaEntity> |
LegacyTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
<E extends TopiaEntity> |
DefaultTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
<E extends TopiaEntity> |
ShortTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
<T extends TopiaEntity> |
AbstractTopiaPersistenceContext.replicateEntities(TopiaReplicationDestination topiaReplicationDestination,
List<T> entities) |
<T extends TopiaEntity> |
AbstractTopiaPersistenceContext.replicateEntity(TopiaReplicationDestination topiaReplicationDestination,
T entity) |
protected <O extends TopiaEntity> |
AbstractTopiaDao.InnerTopiaQueryBuilderRunQueryStep.sortAccordingToIds(List<O> entities,
List<String> idsList)
This method can be used when it is not possible to sort entities in SQL/HQL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTopiaPersistenceContext.delete(TopiaEntity entity) |
<E extends TopiaEntity> |
LegacyTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
<E extends TopiaEntity> |
DefaultTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
<E extends TopiaEntity> |
ShortTopiaIdFactory.newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity) |
void |
AbstractTopiaPersistenceContext.replicate(TopiaEntity entity) |
void |
AbstractTopiaPersistenceContext.update(TopiaEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTopiaApplicationContext.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
AbstractTopiaApplicationContext.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
void |
AbstractTopiaApplicationContext.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
AbstractTopiaApplicationContext.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<TopiaEntity,EntityState> |
AbstractTopiaListenableSupport.transactionEntities
Map to collect entities modifications during the current transaction
|
| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
TopiaFiresSupport.fireEntitiesLoad(TopiaJpaSupport context,
List<E> entities)
Notify entities listeners for load operation
|
<T extends TopiaEntity> |
HibernateTopiaReplicationSupport.replicateEntities(TopiaReplicationDestination topiaReplicationDestination,
List<T> entities) |
<T extends TopiaEntity> |
HibernateTopiaReplicationSupport.replicateEntity(TopiaReplicationDestination topiaReplicationDestination,
T entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaFiresSupport.fireOnPostCreate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPostDelete(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPostLoad(TopiaPersistenceContext 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(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
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(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreDelete(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreLoad(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreRead(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object value) |
void |
TopiaFiresSupport.fireOnPreUpdate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
TopiaFiresSupport.fireOnPreWrite(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object oldValue,
Object newValue) |
protected EntityState |
TopiaFiresSupport.getEntityState(TopiaEntity entity)
Get or create the entity state from the
AbstractTopiaListenableSupport.transactionEntities map. |
void |
TopiaFiresSupport.notifyEntityCreated(TopiaEntity entity)
Register an entity created during the current transaction.
|
void |
TopiaFiresSupport.notifyEntityDeleted(TopiaEntity entity)
used to register objects deleted during transaction.
|
void |
TopiaFiresSupport.notifyEntityLoaded(TopiaEntity entity)
Register an entity loaded during the current transaction.
|
void |
TopiaFiresSupport.notifyEntityRead(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
TopiaFiresSupport.notifyEntityUpdated(TopiaEntity entity)
used to register objects modified (update) during transaction.
|
void |
TopiaFiresSupport.notifyEntityWritten(TopiaEntity entity)
used to register objects modified (setter) during transaction.
|
void |
HibernateTopiaReplicationSupport.replicate(TopiaEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTopiaListenableSupport.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
AbstractTopiaListenableSupport.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
void |
AbstractTopiaListenableSupport.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener) |
void |
AbstractTopiaListenableSupport.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable) |
| 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. |
| 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 <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) |
| Modifier and Type | Method and Description |
|---|---|
protected TopiaEntity |
Collector.getTopiaValue(Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<TopiaEntity> |
Collector.getAlreadyExplored() |
Collection<TopiaEntity> |
Collector.CollectorVisitor.getAlreadyExplored() |
protected abstract Class<? extends TopiaEntity> |
DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) |
protected Class<? extends TopiaEntity> |
Collector.getContractClass(TopiaEntity e) |
protected Deque<TopiaEntity> |
Collector.getStack() |
Deque<TopiaEntity> |
Collector.CollectorVisitor.getStack() |
| 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) |
R |
Collector.detect(TopiaEntity... entities) |
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 |
|---|---|
protected String |
DBMapping.checkSequence(Class<? extends TopiaEntity> entityClass,
String propertyName) |
void |
DBMapping.createSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
boolean |
DBMapping.existSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
protected abstract Class<? extends TopiaEntity> |
DBMapping.getContractClass(Class<? extends TopiaEntity> entityClass) |
BigInteger |
DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
protected String |
DBMapping.getDBProperty(Class<? extends TopiaEntity> entityClass,
String property) |
protected String |
DBMapping.getDBTable(Class<? extends TopiaEntity> entityClass) |
BigInteger |
DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
protected String |
DBMapping.getSequenceSQL(String pattern,
Class<? extends TopiaEntity> entityClass,
String propertyName) |
void |
DBMapping.updateSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaSqlSupport ctxt) |
| 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 | Method and Description |
|---|---|
<T extends TopiaEntity> |
TopiaReplicationSupport.replicateEntities(TopiaReplicationDestination topiaReplicationDestination,
List<T> entities)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
TopiaReplicationSupport.replicateEntity(TopiaReplicationDestination topiaReplicationDestination,
T entity)
Replicate a given entity from this context to the given context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TopiaListenableSupport.addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Register to the context a TopiaEntityListener about the given entity
class.
|
void |
TopiaListenableSupport.addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Register to the context a TopiaEntityVetoable about the given entity
class.
|
void |
TopiaListenableSupport.removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Unregister the given TopiaEntityListener about the given entity class
from the context
|
void |
TopiaListenableSupport.removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Unregister the given TopiaEntityVetoable about the given entity class
from the context
|
| Modifier and Type | Class and Description |
|---|---|
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 |
protected TopiaEntity[] |
TopiaEntityRef.path |
protected TopiaEntity |
TopiaEntityRef.ref
the entity ref
|
protected TopiaEntity |
TopiaEntityRef.root
the root entity
|
| 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(TopiaPersistenceContext 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 <E extends TopiaEntity> |
TopiaEntityHelper.retainEntities(Collection<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(TopiaPersistenceContext srcCtxt,
String... entityList) |
TopiaEntity |
TopiaEntityRef.getInvoker() |
TopiaEntity[] |
TopiaEntityRef.getPath() |
TopiaEntity |
TopiaEntityRef.getRef() |
TopiaEntity |
TopiaEntityRef.getRoot() |
| 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.
|
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(TopiaPersistenceContext srcCtxt,
String... entityList) |
static Set<Class<? extends TopiaEntity>> |
TopiaEntityHelper.getInterfaces(Class<? extends TopiaEntity> klass,
Set<Class<? extends TopiaEntity>> klassInterfaces) |
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 |
|---|---|
static void |
TopiaEntityHelper.bindTechnical(TopiaEntity from,
TopiaEntity dst)
Bind les valeurs techniques depuis une entitée vers une autre.
|
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).
|
| 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) |
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 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.
|
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 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) |
static String[] |
TopiaEntityHelper.getTopiaIdArray(Collection<? 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 String |
TopiaUtil.getTopiaIdPattern(Class<? extends TopiaEntity> klass)
Compute the pattern to be used to capture a topia id for a given entity
class.
|
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.
|
| Constructor and Description |
|---|
TopiaEntityRef(TopiaEntity root,
TopiaEntity ref,
String accessorExpression,
TopiaEntity[] path) |
TopiaEntityRef(TopiaEntity root,
TopiaEntity ref,
String accessorExpression,
TopiaEntity[] path) |
Copyright © 2004–2014 CodeLutin. All rights reserved.