public interface TopiaContextImplementor extends TopiaContext
TopiaContext
.
Any implementation of the TopiaContext
should also implements this
contract.Modifier and Type | Method and Description |
---|---|
Collection<TopiaService> |
getAllServices()
Deprecated.
since 2.3.4 : useless method, use
getServices() instead |
Set<TopiaContextImplementor> |
getChildContext()
Retrieve a thread-safe copy of children context set.
|
Properties |
getConfig() |
<E extends TopiaEntity> |
getDAO(Class<E> entityClass)
Get DAO for specified class.
|
<E extends TopiaEntity,D extends TopiaDAO<E>> |
getDAO(Class<E> entityClass,
Class<D> daoClass)
Get DAO for specified class.
|
TopiaFiresSupport |
getFiresSupport() |
org.hibernate.Session |
getHibernate() |
org.hibernate.SessionFactory |
getHibernateFactory() |
org.hibernate.boot.Metadata |
getMetadata()
Proprietes de mapping de la base de données.
|
TopiaContextImplementor |
getParentContext() |
List<Class<?>> |
getPersistenceClasses() |
TopiaContextImplementor |
getRootContext() |
org.hibernate.service.ServiceRegistry |
getServiceRegistry()
Service registry bootstrap.
|
Map<String,TopiaService> |
getServices() |
boolean |
isSchemaExist(Class<?> clazz)
Detect if the table is created on storage for a given persistant class.
|
void |
removeChildContext(TopiaContextImplementor child) |
void |
setUseFlushMode(boolean useFlushMode)
Tells to the context if it has to use a flush mode before each query.
|
add, addPropertyChangeListener, addTopiaContextListener, addTopiaEntitiesVetoable, addTopiaEntityListener, addTopiaEntityListener, addTopiaEntityVetoable, addTopiaEntityVetoable, addTopiaTransactionListener, addTopiaTransactionVetoable, backup, beginTransaction, clear, clearCache, closeContext, commitTransaction, createQuery, createSchema, execute, executeSQL, find, findAll, findByQuery, findByTopiaId, findUnique, getService, isClosed, removePropertyChangeListener, removeTopiaContextListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaTransactionListener, removeTopiaTransactionVetoable, replicate, replicateEntities, replicateEntity, restore, rollbackTransaction, serviceEnabled, showCreateSchema, updateSchema
Set<TopiaContextImplementor> getChildContext()
TopiaContextImplementor getParentContext()
TopiaContextImplementor getRootContext()
Properties getConfig()
org.hibernate.service.ServiceRegistry getServiceRegistry()
org.hibernate.boot.Metadata getMetadata()
org.hibernate.Session getHibernate() throws TopiaException
TopiaException
- si aucune transaction n'est ouverteorg.hibernate.SessionFactory getHibernateFactory() throws TopiaNotFoundException
TopiaNotFoundException
void setUseFlushMode(boolean useFlushMode)
false
.useFlushMode
- the new value to setboolean isSchemaExist(Class<?> clazz) throws TopiaException
clazz
- the researched classTopiaException
- si aucune transaction n'est ouverte<E extends TopiaEntity> TopiaDAO<E> getDAO(Class<E> entityClass) throws TopiaException
E
- type of entityentityClass
- type of entityTopiaException
- if any error<E extends TopiaEntity,D extends TopiaDAO<E>> D getDAO(Class<E> entityClass, Class<D> daoClass) throws TopiaException
E
- type of entityentityClass
- type of entitydaoClass
- the concrete dao class to useTopiaException
- if any errorTopiaFiresSupport getFiresSupport()
void removeChildContext(TopiaContextImplementor child)
Map<String,TopiaService> getServices()
@Deprecated Collection<TopiaService> getAllServices()
getServices()
insteadTopiaService
Copyright © 2004–2022 Code Lutin. All rights reserved.