Uses of Interface
org.nuiton.topia.TopiaContext
Packages that use TopiaContext
Package
Description
TODO-FD20100507 : Need update this javadoc for ToPIA 2.4
Events used for topia services.
Contains two interfaces, one
TopiaContextImplementor for internal
manipulations of TopiaContext and one TopiaService for topia
services.This package contains interfaces and abstract classes for entities and daos.
Package for csv import of entities.
-
Uses of TopiaContext in org.nuiton.topia
Fields in org.nuiton.topia with type parameters of type TopiaContextModifier and TypeFieldDescriptionprotected static Map<Properties,TopiaContext> TopiaContextFactory.contextCacheCache contenant tous les contexts deja créé.Methods in org.nuiton.topia that return TopiaContextModifier and TypeMethodDescriptionTopiaContext.beginTransaction()Return a new context containing his own transaction.static TopiaContextTopiaContextFactory.getContext()Utilise par defaut le fichier de propriete TopiaContextImpl.propertiesstatic TopiaContextTopiaContextFactory.getContext(Properties config) Methode static permettant de recuperer un context.Methods in org.nuiton.topia with parameters of type TopiaContextModifier and TypeMethodDescriptionstatic voidTopiaContextFactory.removeContext(TopiaContext context) Used when TopiaContext root is closedvoidTopiaContext.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>
voidTopiaContext.replicateEntities(TopiaContext dstCtxt, List<T> entities) Permet de dupliquer les entités du type donné vers un autre context.<T extends TopiaEntity>
voidTopiaContext.replicateEntity(TopiaContext dstCtxt, T entity) Permet de dupliquer une entité du type donné vers un autre context. -
Uses of TopiaContext in org.nuiton.topia.event
Methods in org.nuiton.topia.event that return TopiaContextModifier and TypeMethodDescriptionTopiaContextEvent.getSource()TopiaEntitiesEvent.getSource()TopiaEntityEvent.getSource()TopiaTransactionEvent.getSource()TopiaTransactionEvent.getTopiaContext()Deprecated.Constructors in org.nuiton.topia.event with parameters of type TopiaContextModifierConstructorDescriptionTopiaTransactionEvent(TopiaContext source) TopiaTransactionEvent(TopiaContext source, Map<TopiaEntity, EntityState> entities) -
Uses of TopiaContext in org.nuiton.topia.framework
Subinterfaces of TopiaContext in org.nuiton.topia.frameworkClasses in org.nuiton.topia.framework that implement TopiaContextModifier and TypeClassDescriptionclassLe TopiaContextImpl est le point d'entre pour acceder aux donnees.Methods in org.nuiton.topia.framework that return TopiaContextModifier and TypeMethodDescriptionTopiaContextImpl.beginTransaction()TopiaTransactionAware.getTransaction()Obtains the internal transaction.Methods in org.nuiton.topia.framework with parameters of type TopiaContextModifier and TypeMethodDescriptionTopiaQuery.execute(TopiaContext transaction) Deprecated.Simple execution of the query.intTopiaQuery.executeCount(TopiaContext transaction) Deprecated.Execute a simple count on the query, i.e. the number of results get from the query.<E extends TopiaEntity>
ETopiaQuery.executeToEntity(TopiaContext transaction, Class<E> entityClass) Deprecated.Execute the query and get the first result entity.<E extends TopiaEntity>
List<E>TopiaQuery.executeToEntityList(TopiaContext transaction, Class<E> entityClass) Deprecated.Execute the query and get a List of entity.<E extends TopiaEntity>
Map<String,E> 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>
Map<K,E> 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.intTopiaQuery.executeToInteger(TopiaContext transaction, String select) Deprecated.Execute the query and get an Integer for result.TopiaQuery.executeToObject(TopiaContext transaction, String select) Deprecated.Execute the query and get an Object for result.TopiaQuery.executeToString(TopiaContext transaction, String select) Deprecated.Execute the query and get a String for result.voidTopiaFiresSupport.firePostCreateSchema(TopiaContext context) Notify topia context listeners for create schema post operationvoidTopiaFiresSupport.firePostRestoreSchema(TopiaContext context) Notify topia context listeners for schema restore post operationvoidTopiaFiresSupport.firePostUpdateSchema(TopiaContext context) Notify topia context listeners for create schema post operationvoidTopiaFiresSupport.firePreCreateSchema(TopiaContext context) Notify topia context listeners for create schema pre operationvoidTopiaFiresSupport.firePreRestoreSchema(TopiaContext context) Notify topia context listeners for schema restore pre operationvoidTopiaFiresSupport.firePreUpdateSchema(TopiaContext context) Notify topia context listeners for create schema pre operationstatic StringTopiaUtil.getSchemaName(TopiaContext tx) Return hibernate schema namestatic booleanTopiaUtil.isSchemaEmpty(TopiaContext tx) Test if the db associated to the givenconfigurationcontaisn any of the dealed entities.static booleanTopiaUtil.isSchemaExist(TopiaContext tx, String entityName) Test si une entite donnee correspondant a une configuration existe en base.static booleanTopiaUtil.isSchemaExist(TopiaContext tx, org.hibernate.boot.Metadata metadata, String entityName) Test si une entite donnee correspondant a une configuration existe en base.voidTopiaContextImpl.replicate(TopiaContext dstCtxt, Object... entityAndCondition) <T extends TopiaEntity>
voidTopiaContextImpl.replicateEntities(TopiaContext dstCtxt, List<T> entities) <T extends TopiaEntity>
voidTopiaContextImpl.replicateEntity(TopiaContext dstCtxt, T entity) voidTopiaTransactionAware.setTransaction(TopiaContext transaction) Put in the instance, the given transaction. -
Uses of TopiaContext in org.nuiton.topia.persistence
Fields in org.nuiton.topia.persistence declared as TopiaContextMethods in org.nuiton.topia.persistence that return TopiaContextModifier and TypeMethodDescriptionTopiaEntityAbstract.getTopiaContext()TopiaEntityContextable.getTopiaContext()Get topia context.Methods in org.nuiton.topia.persistence with parameters of type TopiaContextModifier and TypeMethodDescription<E extends TopiaEntity>
TopiaDAO<E>TopiaPersistenceHelper.getDAO(TopiaContext tx, Class<E> type) <E extends TopiaEntity>
TopiaDAO<E>TopiaPersistenceHelper.getDAO(TopiaContext tx, T type) voidTopiaEntityAbstract.setTopiaContext(TopiaContext context) voidTopiaEntityContextable.setTopiaContext(TopiaContext topiaContext) Set topia context. -
Uses of TopiaContext in org.nuiton.topia.persistence.csv.in
Methods in org.nuiton.topia.persistence.csv.in with parameters of type TopiaContextModifier and TypeMethodDescriptionstatic <T extends TopiaEntityEnum>
voidTopiaCsvImports.importAssociation(TopiaContext tx, AssociationMeta<T> meta, Map<String, TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importAssociation(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importNMAssociation(TopiaContext tx, AssociationMeta<T> meta, Map<String, TopiaEntity> universe, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) static <T extends TopiaEntityEnum>
voidTopiaCsvImports.importNMAssociation(TopiaContext tx, AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult, int nbRowBuffer) -
Uses of TopiaContext in org.nuiton.topia.persistence.util
Methods in org.nuiton.topia.persistence.util with parameters of type TopiaContextModifier and TypeMethodDescriptionCreator.create(TopiaContext tx, P parent, E from) Perform the creation of an entity.static voidTopiaEntityHelper.createDBFromSQL(File dbDirectory, TopiaContext topiaContext, URI resource) Create a new database from a sql dump locating in a gzip file.voidDBMapping.createSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) voidDBMapping.createSequence(String sequenceKey, TopiaContext ctxt) voidDBMapping.createSequence(String sequenceKey, TopiaContext ctxt, boolean check) voidDBMapping.createSequences(TopiaContext ctxt) voidDeletor.delete(TopiaContext tx, P parent, E from) Hook to delete an entity from a prent entity.protected voidDBMapping.doSQLWork(TopiaContext ctxt, String sql) booleanDBMapping.existSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) booleanDBMapping.existSequence(String sequenceKey, TopiaContext ctxt) booleanDBMapping.existSequence(String sequenceKey, TopiaContext ctxt, boolean check) protected BigIntegerDBMapping.getBigInteger(TopiaContext ctxt, String sql, BigInteger defaultSize) DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt) DBMapping.getCurrentValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check) static TopiaEntity[]TopiaEntityHelper.getEntities(TopiaContext srcCtxt, String... entityList) static List<? extends TopiaEntity>TopiaEntityHelper.getEntitiesList(TopiaContext srcCtxt, String... entityList) DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt) DBMapping.getNextValueFromSequence(String sequenceKey, TopiaContext ctxt, boolean check) voidDBMapping.init(TopiaContext ctxt, boolean doCreate, boolean doUpdate) static voidTopiaEntityHelper.saveDB(File gzipFile, TopiaContext topiaContext) Save the given database to a gzip file.voidDBMapping.updateSequence(Class<? extends TopiaEntity> entityClass, String propertyName, TopiaContext ctxt) voidDBMapping.updateSequence(String sequenceKey, TopiaContext ctxt) voidDBMapping.updateSequence(String sequenceKey, TopiaContext ctxt, boolean check) voidDBMapping.updateSequences(TopiaContext ctxt)
TopiaTransactionEvent.getSource().