public interface TopiaContext extends TopiaTransaction, TopiaListenableSupport, TopiaSqlSupport, TopiaJpaSupport, TopiaPersistenceContext, TopiaServiceSupport, TopiaReplicationSupport, TopiaHibernateSupport
TopiaContextFactory.getContext(java.util.Properties)
Created: 3 janv. 2006 21:18:34| Modifier and Type | Method and Description |
|---|---|
void |
add(TopiaEntity e)
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaContextListener(TopiaContextListener listener)
Deprecated.
Use addTopiaSchemaListener
|
void |
addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaEntityListener(TopiaEntityListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaTransactionListener(TopiaTransactionListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
backup(File file,
boolean compress)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
TopiaContext |
beginTransaction()
Deprecated.
we need another method that returns a
TopiaTransaction only. This method doesn't exist yet |
void |
clear(boolean dropDatabase)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
clearCache()
Deprecated.
use
TopiaHibernateSupport#getHibernateSession().clear() |
void |
closeContext()
Deprecated.
use method from
TopiaTransaction |
void |
commitTransaction()
Deprecated.
use method from
TopiaTransaction |
void |
createSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
int |
execute(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
void |
executeSQL(String sqlScript)
Deprecated.
use method from
TopiaSqlSupport |
<E> List<E> |
find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E> List<E> |
findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E extends TopiaEntity> |
findByTopiaId(String topiaId)
Deprecated.
|
<E> E |
findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E extends TopiaService> |
getService(Class<E> interfaceService)
Deprecated.
use methods from
TopiaServiceSupport |
boolean |
isClosed()
Deprecated.
use method from
TopiaTransaction |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaContextListener(TopiaContextListener listener)
Deprecated.
Use removeTopiaSchemaListener
|
void |
removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaEntityListener(TopiaEntityListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaTransactionListener(TopiaTransactionListener listener)
Deprecated.
use method from
TopiaListenableSupport |
void |
removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
Deprecated.
use method from
TopiaListenableSupport |
void |
replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
replicateEntities(TopiaContext destinationContext,
List<T> entities)
Deprecated.
use methods from
TopiaReplicationSupport |
<T extends TopiaEntity> |
replicateEntity(TopiaContext destinationContext,
T entity)
Deprecated.
use methods from
TopiaReplicationSupport |
void |
restore(File file)
Deprecated.
Only H2 compatible : remove it, or move to another class
|
void |
rollbackTransaction()
Deprecated.
use method from
TopiaTransaction |
<E extends TopiaService> |
serviceEnabled(Class<E> interfaceService)
Deprecated.
use methods from
TopiaServiceSupport |
void |
showCreateSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
void |
updateSchema()
Deprecated.
use methods from
TopiaPersistenceContext |
addTopiaSchemaListener, removeTopiaSchemaListenerdropSchema, getConfig, getDAO, getDAO, getPersistenceClasses, getSchemaName, getTopiaIdFactory, isSchemaEmpty, isTableExists, setUseFlushMode, updategetServicesgetHibernateConfiguration, getHibernateFactory, getHibernateSession@Deprecated TopiaContext beginTransaction() throws TopiaException
TopiaTransaction only. This method doesn't exist yetTopiaException - if any exception@Deprecated void commitTransaction() throws TopiaException
TopiaTransactioncommitTransaction in interface TopiaTransactionTopiaException - if any exception@Deprecated void rollbackTransaction() throws TopiaException
TopiaTransactionrollbackTransaction in interface TopiaTransactionTopiaException - if any exception@Deprecated void closeContext() throws TopiaException
TopiaTransactioncloseContext in interface TopiaTransactionTopiaException - if any exception@Deprecated boolean isClosed()
TopiaTransactionisClosed in interface TopiaTransactiontrue if the context is closed, false otherwise@Deprecated void addTopiaEntityListener(TopiaEntityListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any operation on
the entity.addTopiaEntityListener in interface TopiaListenableSupportlistener - the listener instance to register@Deprecated void addTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any
operation on the entity.addTopiaEntityListener in interface TopiaListenableSupportentityClass - the TopiaEntity's class to listenlistener - the listener instance to register@Deprecated void removeTopiaEntityListener(TopiaEntityListener listener)
TopiaListenableSupportremoveTopiaEntityListener in interface TopiaListenableSupportlistener - the listener instance to unregister@Deprecated void removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
TopiaListenableSupportremoveTopiaEntityListener in interface TopiaListenableSupportentityClass - the listened TopiaEntity's classlistener - the listener instance to unregister@Deprecated void addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any operation on
the entity.addTopiaEntityVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to register@Deprecated void addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any
operation on the entity.addTopiaEntityVetoable in interface TopiaListenableSupportentityClass - the TopiaEntity's class to listenvetoable - the vetoable instance to register@Deprecated void removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
TopiaListenableSupportremoveTopiaEntityVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregister@Deprecated void removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
TopiaListenableSupportremoveTopiaEntityVetoable in interface TopiaListenableSupportentityClass - the listened TopiaEntity's classvetoable - the vetoable instance to unregister@Deprecated void addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any entity loadaddTopiaEntitiesVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to register@Deprecated void removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
TopiaListenableSupportremoveTopiaEntitiesVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregister@Deprecated void addTopiaTransactionListener(TopiaTransactionListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any operation on
the transaction.addTopiaTransactionListener in interface TopiaListenableSupportlistener - the listener instance to register@Deprecated void removeTopiaTransactionListener(TopiaTransactionListener listener)
TopiaListenableSupportremoveTopiaTransactionListener in interface TopiaListenableSupportlistener - the listener instance to unregister@Deprecated void addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any operation on
the transaction.addTopiaTransactionVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to register@Deprecated void removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
TopiaListenableSupportremoveTopiaTransactionVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregister@Deprecated void addPropertyChangeListener(PropertyChangeListener listener)
TopiaListenableSupportlistener instance will be notified AFTER
any change on the entity's propertyaddPropertyChangeListener in interface TopiaListenableSupportlistener - the listener instance to register@Deprecated void removePropertyChangeListener(PropertyChangeListener listener)
TopiaListenableSupportremovePropertyChangeListener in interface TopiaListenableSupportlistener - the listener instance to unregister@Deprecated void addTopiaContextListener(TopiaContextListener listener)
listener instance will be notified BEFORE and
AFTER any change on the schemalistener - the listener instance to register@Deprecated void removeTopiaContextListener(TopiaContextListener listener)
listener - the listener instance to unregister@Deprecated <E extends TopiaEntity> E findByTopiaId(String topiaId) throws TopiaException
TopiaPersistenceContext.findByTopiaId(String)TopiaEntity using its unique id.findByTopiaId in interface TopiaPersistenceContexttopiaId - unique identifier of the entity in all the application.TopiaException - for errors on retrieving the entity@Deprecated void add(TopiaEntity e) throws TopiaException
e - the entity to addTopiaException - if any exception@Deprecated void clearCache() throws TopiaException
TopiaHibernateSupport#getHibernateSession().clear()TopiaException@Deprecated <E> List<E> findAll(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupportfindAll in interface TopiaJpaSupporthql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying@Deprecated <E> List<E> find(String hql, int startIndex, int endIndex, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupportstartIndex = 0.endIndex = -1.
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntityfind in interface TopiaJpaSupporthql - the HQL querystartIndex - first index of entity to returnendIndex - last index of entity to returnpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying@Deprecated <E> E findUnique(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupportfindUnique in interface TopiaJpaSupporthql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying or if the the query
returns more than one result.@Deprecated int execute(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupportexecute in interface TopiaJpaSupporthql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any exception@Deprecated void executeSQL(String sqlScript) throws TopiaException
TopiaSqlSupportexecuteSQL in interface TopiaSqlSupportsqlScript - the sql script to executeTopiaException - if any problem occurred while executing the sql script.@Deprecated void createSchema() throws TopiaException
TopiaPersistenceContextcreateSchema in interface TopiaPersistenceContextTopiaException - if any exception@Deprecated void showCreateSchema() throws TopiaException
TopiaPersistenceContextshowCreateSchema in interface TopiaPersistenceContextTopiaException - if any exception@Deprecated void updateSchema() throws TopiaException
TopiaPersistenceContextupdateSchema in interface TopiaPersistenceContextTopiaException - if any exception@Deprecated <E extends TopiaService> boolean serviceEnabled(Class<E> interfaceService)
TopiaServiceSupportserviceEnabled in interface TopiaServiceSupportE - type of serviceinterfaceService - fqn of the service@Deprecated <E extends TopiaService> E getService(Class<E> interfaceService) throws TopiaNotFoundException
TopiaServiceSupportgetService in interface TopiaServiceSupportE - type of serviceinterfaceService - class of the serviceTopiaNotFoundException - if service can't be retrieved@Deprecated void replicate(TopiaContext destinationContext, Object... entityAndCondition) throws TopiaException, IllegalArgumentException
TopiaReplicationSupportentityAndCondition parameter is empty,
all the database will be replicated
Note 2: The simple replication may not be sufficent. You may want
to replicate only a part of some entities : use the method replicateEntities(TopiaContext, List).replicate in interface TopiaReplicationSupportdestinationContext - the destination contextentityAndCondition - [key;value;...] parameter which key is the
entity class to replicate, and value the
"where" condition to use when querying entitiesTopiaException - if any problem occurred during replicateIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
database@Deprecated <T extends TopiaEntity> void replicateEntity(TopiaContext destinationContext, T entity) throws TopiaException, IllegalArgumentException
TopiaReplicationSupportreplicateEntity in interface TopiaReplicationSupportT - type of the entity to replicatedestinationContext - the destination contextentity - the entity instance to replicateTopiaException - if any problem occurred during replicateIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
database@Deprecated <T extends TopiaEntity> void replicateEntities(TopiaContext destinationContext, List<T> entities) throws TopiaException, IllegalArgumentException
TopiaReplicationSupportreplicateEntities in interface TopiaReplicationSupportT - type of the entities to replicatedestinationContext - the destination contextentities - the list of entities instance to replicateTopiaException - if any problem occurred during replicateIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
database@Deprecated void backup(File file, boolean compress) throws TopiaException
file - le nom du fichier ou stocker les informationscompress - si vrai compress le fichier avec gzipTopiaException - if any exception@Deprecated void restore(File file) throws TopiaException
backup(File, boolean).file - le fichier ou prendre les informations, il peut-etre
compressé avec gzip ou non.TopiaException - if any exception@Deprecated void clear(boolean dropDatabase) throws TopiaException
dropDatabase - si vrai alors supprime aussi la base de données si la
base utilise des fichiers les fichiers seront
supprimé (ex: h2) ou sera fait sur la base
(postgresql)TopiaException - if any exceptionCopyright © 2004–2013 CodeLutin. All rights reserved.