org.nuiton.topia.framework
Interface TopiaContextImplementor

All Superinterfaces:
TopiaContext
All Known Implementing Classes:
TopiaContextImpl

public interface TopiaContextImplementor
extends TopiaContext

Author:
poussin

Method Summary
 java.util.Collection<TopiaService> getAllServices()
           
 java.util.Set<TopiaContextImplementor> getChildContext()
           
 java.util.Properties getConfig()
           
<E extends TopiaEntity>
TopiaDAO<E>
getDAO(java.lang.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()
           
 java.util.List<java.lang.Class<?>> getPersistenceClasses()
           
 TopiaContextImplementor getRootContext()
           
 java.util.Map<java.lang.String,TopiaService> getServices()
           
 boolean isSchemaExist(java.lang.Class<? extends TopiaEntity> 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, createSchema, execute, exportXML, find, find, findByTopiaId, getService, importXML, isClosed, removePropertyChangeListener, removeTopiaContextListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaTransactionListener, removeTopiaTransactionVetoable, replicate, replicateEntities, replicateEntity, restore, rollbackTransaction, serviceEnabled, showCreateSchema, updateSchema
 

Method Detail

getChildContext

java.util.Set<TopiaContextImplementor> getChildContext()
Returns:
Returns the childContext.

getParentContext

TopiaContextImplementor getParentContext()
Returns:
Returns the parentContext.

getRootContext

TopiaContextImplementor getRootContext()

getConfig

java.util.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(java.lang.Class<? extends TopiaEntity> 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(java.lang.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

java.util.Map<java.lang.String,TopiaService> getServices()

getAllServices

java.util.Collection<TopiaService> getAllServices()

getPersistenceClasses

java.util.List<java.lang.Class<?>> getPersistenceClasses()


Copyright © 2004-2010 CodeLutin. All Rights Reserved.