| 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 |
| Modifier and Type | Field and Description |
|---|---|
protected static Map<Properties,TopiaContext> |
TopiaContextFactory.contextCache
Cache contenant tous les contexts deja créé.
|
| Modifier and Type | Method and Description |
|---|---|
TopiaContext |
TopiaContext.beginTransaction()
Deprecated.
we need another method that returns a
TopiaTransaction only. This method doesn't exist yet |
static TopiaContext |
TopiaContextFactory.getContext()
Utilise par defaut le fichier de propriete AbstractTopiaContext.properties
|
static TopiaContext |
TopiaContextFactory.getContext(Properties config)
Methode static permettant de recuperer un context.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
TopiaContextFactory.removeContext(TopiaContext context)
Used when TopiaContext root is closed
|
void |
TopiaReplicationSupport.replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
void |
TopiaContext.replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
TopiaReplicationSupport.replicateEntities(TopiaContext destinationContext,
List<T> entities)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
TopiaContext.replicateEntities(TopiaContext destinationContext,
List<T> entities)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
TopiaReplicationSupport.replicateEntity(TopiaContext destinationContext,
T entity)
Replicate a given entity from this context to the given context.
|
<T extends TopiaEntity> |
TopiaContext.replicateEntity(TopiaContext destinationContext,
T entity)
Deprecated.
use methods from
TopiaReplicationSupport |
| Modifier and Type | Method and Description |
|---|---|
TopiaContext |
TopiaTransactionEvent.getSource() |
TopiaContext |
TopiaEntityEvent.getSource() |
TopiaContext |
TopiaContextEvent.getSource() |
TopiaContext |
TopiaEntitiesEvent.getSource() |
| Constructor and Description |
|---|
TopiaTransactionEvent(TopiaContext source) |
TopiaTransactionEvent(TopiaContext source,
Map<TopiaEntity,EntityState> entities) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TopiaContextImplementor
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTopiaContext
Le AbstractTopiaContext est le point d'entre pour acceder aux donnees.
|
| Modifier and Type | Method and Description |
|---|---|
TopiaContext |
AbstractTopiaContext.beginTransaction() |
TopiaContext |
TopiaTransactionAware.getTransaction()
Obtains the internal transaction.
|
| Modifier and Type | Method and Description |
|---|---|
List<O> |
TopiaSQLQuery.findMultipleResult(TopiaContext tx)
Obtain a multiple results fro the builded sql query.
|
O |
TopiaSQLQuery.findSingleResult(TopiaContext tx)
Obtain a single result from the builded sql query.
|
<E extends TopiaEntity> |
TopiaFiresSupport.fireEntitiesLoad(TopiaContext context,
List<E> entities)
Notify entities listeners for load operation
|
void |
TopiaFiresSupport.firePostCreateSchema(TopiaContext context)
Notify topia context listeners for create schema post operation
|
void |
TopiaFiresSupport.firePostDropSchema(TopiaContext context)
Notify topia context listeners for drop schema post operation
|
void |
TopiaFiresSupport.firePostRestoreSchema(TopiaContext context)
Notify topia context listeners for schema restore post operation
|
void |
TopiaFiresSupport.firePostUpdateSchema(TopiaContext context)
Notify topia context listeners for create schema post operation
|
void |
TopiaFiresSupport.firePreCreateSchema(TopiaContext context)
Notify topia context listeners for create schema pre operation
|
void |
TopiaFiresSupport.firePreDropSchema(TopiaContext context)
Notify topia context listeners for drop schema pre operation
|
void |
TopiaFiresSupport.firePreRestoreSchema(TopiaContext context)
Notify topia context listeners for schema restore pre operation
|
void |
TopiaFiresSupport.firePreUpdateSchema(TopiaContext context)
Notify topia context listeners for create schema pre operation
|
static boolean |
TopiaUtil.isSchemaEmpty(TopiaContext tx)
Test if the db associated to the given
configuration contaisn any of
the dealed entities. |
static boolean |
TopiaUtil.isSchemaExist(TopiaContext tx,
String entityName)
Test si une entite donnee correspondant a une configuration existe en
base.
|
boolean |
TopiaService.postInit(TopiaContext context)
Initiliaze the service after create the
context. |
boolean |
TopiaService.preInit(TopiaContext context)
Initiliaze the service before create the
context. |
void |
TopiaContextImplementor.removeChildContext(TopiaContext child)
Deprecated.
Hierarchical context are not supported anymore
|
void |
AbstractTopiaContext.removeChildContext(TopiaContext child) |
void |
AbstractTopiaContext.replicate(TopiaContext dstCtxt,
Object... entityAndCondition) |
<T extends TopiaEntity> |
AbstractTopiaContext.replicateEntities(TopiaContext dstCtxt,
List<T> entities) |
<T extends TopiaEntity> |
AbstractTopiaContext.replicateEntity(TopiaContext dstCtxt,
T entity) |
void |
TopiaTransactionAware.setTransaction(TopiaContext transaction)
Put in the instance, the given transaction.
|
| Modifier and Type | Field and Description |
|---|---|
protected TopiaContext |
TopiaDAOImpl.context
Underlying context used by this dao to do actions on db.
|
| Modifier and Type | Method and Description |
|---|---|
TopiaContext |
TopiaDAOImpl.getTopiaContext() |
TopiaContext |
TopiaEntityContextable.getTopiaContext()
Get topia context.
|
TopiaContext |
TopiaDAO.getTopiaContext()
Returns the context used by this DAO.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
TopiaPersistenceHelper.getDAO(TopiaContext tx,
Class<E> type) |
<E extends TopiaEntity> |
TopiaPersistenceHelper.getDAO(TopiaContext tx,
T type) |
void |
TopiaDAOImpl.init(TopiaContext context,
Class<E> entityClass,
TopiaFiresSupport topiaFiresSupport)
When AbstractTopiaContext create the TopiaDAOHibernate, it must call this
method just after.
|
void |
TopiaEntityContextable.setTopiaContext(TopiaContext topiaContext)
Set topia context.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importAssociation(TopiaContext tx,
AssociationMeta<T> meta,
org.nuiton.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importAssociation(TopiaContext tx,
AssociationMeta<T> meta,
Map<String,TopiaEntity> universe,
org.nuiton.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importNMAssociation(TopiaContext tx,
AssociationMeta<T> meta,
org.nuiton.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
static <T extends TopiaEntityEnum> |
TopiaCsvImports.importNMAssociation(TopiaContext tx,
AssociationMeta<T> meta,
Map<String,TopiaEntity> universe,
org.nuiton.csv.ImportToMap importer,
CsvImportResult<T> csvResult,
int nbRowBuffer) |
| Modifier and Type | Method and Description |
|---|---|
E |
Creator.create(TopiaContext tx,
P parent,
E from)
Perform the creation of an entity.
|
static void |
TopiaEntityHelper.createDBFromSQL(File dbDirectory,
TopiaContext topiaContext,
URI resource)
Create a new database from a sql dump locating in a gzip file.
|
void |
DBMapping.createSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
void |
DBMapping.createSequence(String sequenceKey,
TopiaContext ctxt) |
void |
DBMapping.createSequence(String sequenceKey,
TopiaContext ctxt,
boolean check) |
void |
DBMapping.createSequences(TopiaContext ctxt) |
void |
Deletor.delete(TopiaContext tx,
P parent,
E from)
Hook to delete an entity from a prent entity.
|
protected void |
DBMapping.doSQLWork(TopiaContext ctxt,
String sql) |
boolean |
DBMapping.existSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
boolean |
DBMapping.existSequence(String sequenceKey,
TopiaContext ctxt) |
boolean |
DBMapping.existSequence(String sequenceKey,
TopiaContext ctxt,
boolean check) |
protected BigInteger |
DBMapping.getBigInteger(TopiaContext ctxt,
String sql,
BigInteger defaultSize) |
BigInteger |
DBMapping.getCurrentValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
BigInteger |
DBMapping.getCurrentValueFromSequence(String sequenceKey,
TopiaContext ctxt) |
BigInteger |
DBMapping.getCurrentValueFromSequence(String sequenceKey,
TopiaContext ctxt,
boolean check) |
static TopiaEntity[] |
TopiaEntityHelper.getEntities(TopiaContext srcCtxt,
String... entityList) |
static List<? extends TopiaEntity> |
TopiaEntityHelper.getEntitiesList(TopiaContext srcCtxt,
String... entityList) |
BigInteger |
DBMapping.getNextValueFromSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
BigInteger |
DBMapping.getNextValueFromSequence(String sequenceKey,
TopiaContext ctxt) |
BigInteger |
DBMapping.getNextValueFromSequence(String sequenceKey,
TopiaContext ctxt,
boolean check) |
void |
DBMapping.init(TopiaContext ctxt,
boolean doCreate,
boolean doUpdate) |
static void |
TopiaEntityHelper.saveDB(File gzipFile,
TopiaContext topiaContext)
Save the given database to a gzip file.
|
void |
DBMapping.updateSequence(Class<? extends TopiaEntity> entityClass,
String propertyName,
TopiaContext ctxt) |
void |
DBMapping.updateSequence(String sequenceKey,
TopiaContext ctxt) |
void |
DBMapping.updateSequence(String sequenceKey,
TopiaContext ctxt,
boolean check) |
void |
DBMapping.updateSequences(TopiaContext ctxt) |
Copyright © 2004–2013 CodeLutin. All rights reserved.