org.nuiton.topia.framework
Interface TopiaContextImplementor

All Superinterfaces:
TopiaContext
All Known Implementing Classes:
TopiaContextImpl

public interface TopiaContextImplementor
extends TopiaContext

TODO-fdesbois-20100507 : Need more javadoc.

Version:
$Id: TopiaContextImplementor.java 2010 2010-06-13 18:18:35Z tchemit $
Author:
poussin

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()
           
<E extends TopiaEntity>
TopiaDAO<E>
getDAO(Class<E> entityClass)
          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)
           
 
Methods inherited from interface org.nuiton.topia.TopiaContext
add, addPropertyChangeListener, addTopiaContextListener, addTopiaEntitiesVetoable, addTopiaEntityListener, addTopiaEntityListener, addTopiaEntityVetoable, addTopiaEntityVetoable, addTopiaTransactionListener, addTopiaTransactionVetoable, backup, beginTransaction, clear, closeContext, commitTransaction, createQuery, createSchema, execute, exportXML, find, find, findByQuery, findByTopiaId, getService, importXML, isClosed, removePropertyChangeListener, removeTopiaContextListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaTransactionListener, removeTopiaTransactionVetoable, replicate, replicateEntities, replicateEntity, restore, rollbackTransaction, serviceEnabled, showCreateSchema, updateSchema
 

Method Detail

getChildContext

Set<TopiaContextImplementor> getChildContext()
Retrieve a thread-safe copy of children context set.

Returns:
Returns the childContext.

getParentContext

TopiaContextImplementor getParentContext()
Returns:
Returns the parentContext.

getRootContext

TopiaContextImplementor getRootContext()

getConfig

Properties getConfig()
Returns:
Returns the config.

getHibernate

org.hibernate.Session getHibernate()
                                   throws TopiaException
Returns:
Returns the hibernate.
Throws:
TopiaException - si aucune transaction n'est ouverte

getHibernateFactory

org.hibernate.SessionFactory getHibernateFactory()
                                                 throws TopiaNotFoundException
Returns:
Returns the hibernateFactory.
Throws:
TopiaNotFoundException

getHibernateConfiguration

org.hibernate.cfg.Configuration getHibernateConfiguration()
                                                          throws TopiaNotFoundException
Returns:
Returns the hibernate configuration
Throws:
TopiaNotFoundException

isSchemaExist

boolean isSchemaExist(Class<?> clazz)
                      throws TopiaException
Detect if the table is created on storage for a given persistant class.

Parameters:
clazz - the researched class
Returns:
Returns the hibernate.
Throws:
TopiaException - si aucune transaction n'est ouverte

getDAO

<E extends TopiaEntity> TopiaDAO<E> getDAO(Class<E> entityClass)
                                       throws TopiaException
Get DAO for specified class. If Specialized DAO exists then it returned otherwize TopiaDAO<entityClass> is returned

Type Parameters:
E -
Parameters:
entityClass -
Returns:
a doa
Throws:
TopiaException

getFiresSupport

TopiaFiresSupport getFiresSupport()

removeChildContext

void removeChildContext(TopiaContextImplementor child)

getServices

Map<String,TopiaService> getServices()

getAllServices

@Deprecated
Collection<TopiaService> getAllServices()
Deprecated. since 2.3.4 : useless method, use getServices() instead

Returns:
a collection of TopiaService

getPersistenceClasses

List<Class<?>> getPersistenceClasses()


Copyright © 2004-2010 CodeLutin. All Rights Reserved.