org.eclipse.emf.cdo.server.hibernate
Interface IHibernateStore

All Superinterfaces:
IRepositoryElement, IStore

public interface IHibernateStore
extends IStore


Method Summary
 org.hibernate.cfg.Configuration getHibernateConfiguration()
           
 org.hibernate.SessionFactory getHibernateSessionFactory()
           
 org.eclipse.emf.cdo.server.internal.hibernate.HibernatePackageHandler getPackageHandler()
           
 IHibernateStoreReader getReader(ISession session)
          Returns a reader that can be used to read from this store in the context of the given session.
 IHibernateStoreWriter getWriter(IView view)
          Returns a writer that can be used to write to this store in the context of the given view.
 
Methods inherited from interface org.eclipse.emf.cdo.server.IStore
getCDOIDLibraryDescriptor, getCDOIDLibraryProvider, getCDOIDObjectFactory, getLastMetaID, getStoreType, hasAuditingSupport, hasBranchingSupport, hasWriteDeltaSupport, repairAfterCrash, setRepository, wasCrashed
 
Methods inherited from interface org.eclipse.emf.cdo.server.IRepositoryElement
getRepository
 

Method Detail

getHibernateConfiguration

org.hibernate.cfg.Configuration getHibernateConfiguration()

getHibernateSessionFactory

org.hibernate.SessionFactory getHibernateSessionFactory()

getReader

IHibernateStoreReader getReader(ISession session)
Description copied from interface: IStore
Returns a reader that can be used to read from this store in the context of the given session.

Specified by:
getReader in interface IStore
Parameters:
session - The session that should be used as a context for read access or null. The store implementor is free to interpret and use the session in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can use it as a key into a cache and/or register a LifecycleEventAdapter with it to intercept cleanup on session close. Note however that the session can be null, for example during startup of the server while the repositories are initialized but before any user session has been opened.
Returns:
a reader that can be used to read from this store in the context of the given session, never null.

getWriter

IHibernateStoreWriter getWriter(IView view)
Description copied from interface: IStore
Returns a writer that can be used to write to this store in the context of the given view. The given view is always marked as a transaction.

Specified by:
getWriter in interface IStore
Parameters:
view - The view that must be used as a context for write access. The store implementor is free to interpret and use the view in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can use it as a key into a cache and/or register a LifecycleEventAdapter with it to intercept cleanup on view close.
Returns:
a writer that can be used to write to this store in the context of the given view, never null.

getPackageHandler

org.eclipse.emf.cdo.server.internal.hibernate.HibernatePackageHandler getPackageHandler()

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.