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.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()
Return a new context containing his own transaction.
|
static TopiaContext |
TopiaContextFactory.getContext()
Utilise par defaut le fichier de propriete TopiaContextImpl.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 |
TopiaContext.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> |
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 |
---|---|
TopiaContext |
TopiaTransactionEvent.getSource() |
TopiaContext |
TopiaEntitiesEvent.getSource() |
TopiaContext |
TopiaContextEvent.getSource() |
TopiaContext |
TopiaEntityEvent.getSource() |
TopiaContext |
TopiaTransactionEvent.getTopiaContext()
Deprecated.
since 2.3.4, prefer the overriden
TopiaTransactionEvent.getSource() . |
Constructor and Description |
---|
TopiaTransactionEvent(TopiaContext source) |
TopiaTransactionEvent(TopiaContext source,
Map<TopiaEntity,EntityState> entities) |
Modifier and Type | Interface and Description |
---|---|
interface |
TopiaContextImplementor
Technical contract of a
TopiaContext . |
Modifier and Type | Class and Description |
---|---|
class |
TopiaContextImpl
Le TopiaContextImpl est le point d'entre pour acceder aux donnees.
|
Modifier and Type | Method and Description |
---|---|
TopiaContext |
TopiaContextImpl.beginTransaction() |
TopiaContext |
TopiaTransactionAware.getTransaction()
Obtains the internal transaction.
|
Modifier and Type | Method and Description |
---|---|
List |
TopiaQuery.execute(TopiaContext transaction)
Deprecated.
Simple execution of the query.
|
int |
TopiaQuery.executeCount(TopiaContext transaction)
Deprecated.
Execute a simple count on the query, i.e. the number of results get from
the query.
|
<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.
|
int |
TopiaQuery.executeToInteger(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get an Integer for result.
|
Object |
TopiaQuery.executeToObject(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get an Object for result.
|
String |
TopiaQuery.executeToString(TopiaContext transaction,
String select)
Deprecated.
Execute the query and get a String for result.
|
void |
TopiaFiresSupport.firePostCreateSchema(TopiaContext context)
Notify topia context listeners for create 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.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 String |
TopiaUtil.getSchemaName(TopiaContext tx)
Return hibernate schema name
|
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,
org.hibernate.boot.Metadata metadata,
String entityName)
Test si une entite donnee correspondant a une configuration existe en
base.
|
static boolean |
TopiaUtil.isSchemaExist(TopiaContext tx,
String entityName)
Test si une entite donnee correspondant a une configuration existe en
base.
|
void |
TopiaContextImpl.replicate(TopiaContext dstCtxt,
Object... entityAndCondition) |
<T extends TopiaEntity> |
TopiaContextImpl.replicateEntities(TopiaContext dstCtxt,
List<T> entities) |
<T extends TopiaEntity> |
TopiaContextImpl.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 |
TopiaEntityAbstract.topiaContext |
Modifier and Type | Method and Description |
---|---|
TopiaContext |
TopiaEntityContextable.getTopiaContext()
Get topia context.
|
TopiaContext |
TopiaEntityAbstract.getTopiaContext() |
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 |
TopiaEntityContextable.setTopiaContext(TopiaContext topiaContext)
Set topia context.
|
void |
TopiaEntityAbstract.setTopiaContext(TopiaContext 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–2022 Code Lutin. All rights reserved.