Uses of Interface
org.nuiton.topia.TopiaContext
| Package | Description |
|---|---|
| org.nuiton.topia |
TODO-FD20100507 : Need update this javadoc for ToPIA 2.4
|
| 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.in |
Package for csv import of entities.
|
| org.nuiton.topia.persistence.util |
-
Uses of TopiaContext in org.nuiton.topia
Fields in org.nuiton.topia with type parameters of type TopiaContext Modifier and Type Field Description protected static java.util.Map<java.util.Properties,TopiaContext>TopiaContextFactory. contextCacheCache contenant tous les contexts deja créé.Methods in org.nuiton.topia that return TopiaContext Modifier and Type Method Description TopiaContextTopiaContext. beginTransaction()Return a new context containing his own transaction.static TopiaContextTopiaContextFactory. getContext()Utilise par defaut le fichier de propriete TopiaContextImpl.propertiesstatic TopiaContextTopiaContextFactory. getContext(java.util.Properties config)Methode static permettant de recuperer un context.Methods in org.nuiton.topia with parameters of type TopiaContext Modifier and Type Method Description static voidTopiaContextFactory. removeContext(TopiaContext context)Used when TopiaContext root is closedvoidTopiaContext. replicate(TopiaContext dstCtxt, java.lang.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, java.util.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 TopiaContext Modifier and Type Method Description TopiaContextTopiaContextEvent. getSource()TopiaContextTopiaEntitiesEvent. getSource()TopiaContextTopiaEntityEvent. getSource()TopiaContextTopiaTransactionEvent. getSource()TopiaContextTopiaTransactionEvent. getTopiaContext()Deprecated.since 2.3.4, prefer the overridenTopiaTransactionEvent.getSource().Constructors in org.nuiton.topia.event with parameters of type TopiaContext Constructor Description TopiaTransactionEvent(TopiaContext source)TopiaTransactionEvent(TopiaContext source, java.util.Map<TopiaEntity,EntityState> entities) -
Uses of TopiaContext in org.nuiton.topia.framework
Subinterfaces of TopiaContext in org.nuiton.topia.framework Modifier and Type Interface Description interfaceTopiaContextImplementorTechnical contract of aTopiaContext.Classes in org.nuiton.topia.framework that implement TopiaContext Modifier and Type Class Description classTopiaContextImplLe TopiaContextImpl est le point d'entre pour acceder aux donnees.Methods in org.nuiton.topia.framework that return TopiaContext Modifier and Type Method Description TopiaContextTopiaContextImpl. beginTransaction()TopiaContextTopiaTransactionAware. getTransaction()Obtains the internal transaction.Methods in org.nuiton.topia.framework with parameters of type TopiaContext Modifier and Type Method Description java.util.ListTopiaQuery. 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, java.lang.Class<E> entityClass)Deprecated.Execute the query and get the first result entity.<E extends TopiaEntity>
java.util.List<E>TopiaQuery. executeToEntityList(TopiaContext transaction, java.lang.Class<E> entityClass)Deprecated.Execute the query and get a List of entity.<E extends TopiaEntity>
java.util.Map<java.lang.String,E>TopiaQuery. executeToEntityMap(TopiaContext transaction, java.lang.Class<E> entityClass)Deprecated.Execute the query and get a Map of entity with topiaId in key.<E extends TopiaEntity, K>
java.util.Map<K,E>TopiaQuery. executeToEntityMap(TopiaContext transaction, java.lang.Class<E> entityClass, java.lang.String keyName, java.lang.Class<K> keyClass)Deprecated.Execute the query and get a Map of entity with key type in argument.intTopiaQuery. executeToInteger(TopiaContext transaction, java.lang.String select)Deprecated.Execute the query and get an Integer for result.java.lang.ObjectTopiaQuery. executeToObject(TopiaContext transaction, java.lang.String select)Deprecated.Execute the query and get an Object for result.java.lang.StringTopiaQuery. executeToString(TopiaContext transaction, java.lang.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 java.lang.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, java.lang.String entityName)Test si une entite donnee correspondant a une configuration existe en base.static booleanTopiaUtil. isSchemaExist(TopiaContext tx, org.hibernate.boot.Metadata metadata, java.lang.String entityName)Test si une entite donnee correspondant a une configuration existe en base.voidTopiaContextImpl. replicate(TopiaContext dstCtxt, java.lang.Object... entityAndCondition)<T extends TopiaEntity>
voidTopiaContextImpl. replicateEntities(TopiaContext dstCtxt, java.util.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 TopiaContext Modifier and Type Field Description protected TopiaContextTopiaEntityAbstract. topiaContextMethods in org.nuiton.topia.persistence that return TopiaContext Modifier and Type Method Description TopiaContextTopiaEntityAbstract. getTopiaContext()TopiaContextTopiaEntityContextable. getTopiaContext()Get topia context.Methods in org.nuiton.topia.persistence with parameters of type TopiaContext Modifier and Type Method Description <E extends TopiaEntity>
TopiaDAO<E>TopiaPersistenceHelper. getDAO(TopiaContext tx, java.lang.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 TopiaContext Modifier and Type Method Description static <T extends TopiaEntityEnum>
voidTopiaCsvImports. importAssociation(TopiaContext tx, AssociationMeta<T> meta, java.util.Map<java.lang.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, java.util.Map<java.lang.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 TopiaContext Modifier and Type Method Description ECreator. create(TopiaContext tx, P parent, E from)Perform the creation of an entity.static voidTopiaEntityHelper. createDBFromSQL(java.io.File dbDirectory, TopiaContext topiaContext, java.net.URI resource)Create a new database from a sql dump locating in a gzip file.voidDBMapping. createSequence(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)voidDBMapping. createSequence(java.lang.String sequenceKey, TopiaContext ctxt)voidDBMapping. createSequence(java.lang.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, java.lang.String sql)booleanDBMapping. existSequence(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)booleanDBMapping. existSequence(java.lang.String sequenceKey, TopiaContext ctxt)booleanDBMapping. existSequence(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)protected java.math.BigIntegerDBMapping. getBigInteger(TopiaContext ctxt, java.lang.String sql, java.math.BigInteger defaultSize)java.math.BigIntegerDBMapping. getCurrentValueFromSequence(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)java.math.BigIntegerDBMapping. getCurrentValueFromSequence(java.lang.String sequenceKey, TopiaContext ctxt)java.math.BigIntegerDBMapping. getCurrentValueFromSequence(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)static TopiaEntity[]TopiaEntityHelper. getEntities(TopiaContext srcCtxt, java.lang.String... entityList)static java.util.List<? extends TopiaEntity>TopiaEntityHelper. getEntitiesList(TopiaContext srcCtxt, java.lang.String... entityList)java.math.BigIntegerDBMapping. getNextValueFromSequence(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)java.math.BigIntegerDBMapping. getNextValueFromSequence(java.lang.String sequenceKey, TopiaContext ctxt)java.math.BigIntegerDBMapping. getNextValueFromSequence(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)voidDBMapping. init(TopiaContext ctxt, boolean doCreate, boolean doUpdate)static voidTopiaEntityHelper. saveDB(java.io.File gzipFile, TopiaContext topiaContext)Save the given database to a gzip file.voidDBMapping. updateSequence(java.lang.Class<? extends TopiaEntity> entityClass, java.lang.String propertyName, TopiaContext ctxt)voidDBMapping. updateSequence(java.lang.String sequenceKey, TopiaContext ctxt)voidDBMapping. updateSequence(java.lang.String sequenceKey, TopiaContext ctxt, boolean check)voidDBMapping. updateSequences(TopiaContext ctxt)