|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TopiaContextImplementor
Technical contract of a TopiaContext.
Any implementation of the TopiaContext should also implements this
contract.
| Method Summary | ||
|---|---|---|
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()
|
|
|
getDAO(Class<E> entityClass)
Get DAO for specified class. |
|
|
getDAO(Class<E> entityClass,
Class<D> daoClass)
Get DAO for specified class. |
|
TopiaFiresSupport |
getFiresSupport()
|
|
org.hibernate.Session |
getHibernate()
|
|
org.hibernate.cfg.Configuration |
getHibernateConfiguration()
|
|
org.hibernate.SessionFactory |
getHibernateFactory()
|
|
TopiaContextImplementor |
getParentContext()
|
|
List<Class<?>> |
getPersistenceClasses()
|
|
TopiaContextImplementor |
getRootContext()
|
|
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. |
|
| Method Detail |
|---|
Set<TopiaContextImplementor> getChildContext()
TopiaContextImplementor getParentContext()
TopiaContextImplementor getRootContext()
Properties getConfig()
org.hibernate.Session getHibernate()
throws TopiaException
TopiaException - si aucune transaction n'est ouverte
org.hibernate.SessionFactory getHibernateFactory()
throws TopiaNotFoundException
TopiaNotFoundException
org.hibernate.cfg.Configuration getHibernateConfiguration()
throws TopiaNotFoundException
TopiaNotFoundExceptionvoid setUseFlushMode(boolean useFlushMode)
false.
useFlushMode - the new value to set
boolean isSchemaExist(Class<?> clazz)
throws TopiaException
clazz - the researched class
TopiaException - si aucune transaction n'est ouverte
<E extends TopiaEntity> TopiaDAO<E> getDAO(Class<E> entityClass)
throws TopiaException
E - type of entityentityClass - type of entity
TopiaException - 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 use
TopiaException - if any errorTopiaFiresSupport getFiresSupport()
void removeChildContext(TopiaContextImplementor child)
Map<String,TopiaService> getServices()
@Deprecated Collection<TopiaService> getAllServices()
getServices() instead
TopiaServiceList<Class<?>> getPersistenceClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||