org.compass.core.spi
Interface InternalCompassSession

All Superinterfaces:
CompassIndexSession, CompassOperations, CompassSearchSession, CompassSession
All Known Implementing Classes:
DefaultCompassSession, ExistingCompassSession

public interface InternalCompassSession
extends CompassSession

Author:
kimchy

Method Summary
 void addDelegateClose(InternalSessionDelegateClose delegateClose)
           
 void create(Object object, DirtyOperationContext context)
           
 void create(String alias, Object object, DirtyOperationContext context)
           
 void delete(Class clazz, Object obj, DirtyOperationContext context)
           
 void delete(Object obj, DirtyOperationContext context)
           
 void delete(String alias, Object obj, DirtyOperationContext context)
           
 Object get(String alias, Object id, MarshallingContext context)
           
 Object getByResource(Resource resource)
           
 InternalCompass getCompass()
           
 FirstLevelCache getFirstLevelCache()
           
 CompassMapping getMapping()
           
 MarshallingStrategy getMarshallingStrategy()
           
 CompassMetaData getMetaData()
           
 Resource getResourceByIdResource(Resource idResource)
           
 Resource getResourceByIdResourceNoCache(Resource idResource)
           
 SearchEngine getSearchEngine()
           
 void save(Object object, DirtyOperationContext context)
           
 void save(String alias, Object object, DirtyOperationContext context)
           
 void startTransactionIfNeeded()
           
 void unbindTransaction()
           
 
Methods inherited from interface org.compass.core.CompassSession
analyzerHelper, beginLocalTransaction, beginTransaction, close, commit, flush, flushCommit, getSettings, isClosed, isReadOnly, queryBuilder, queryFilterBuilder, resourceFactory, rollback, setReadOnly, termFreqsBuilder, useLocalTransaction
 
Methods inherited from interface org.compass.core.CompassOperations
create, create, delete, delete, delete, delete, delete, delete, delete, evict, evict, evict, evictAll, find, get, get, get, get, getResource, getResource, getResource, getResource, load, load, load, load, loadResource, loadResource, loadResource, loadResource, save, save
 
Methods inherited from interface org.compass.core.CompassSearchSession
find, get, get, get, get, getResource, getResource, getResource, getResource, load, load, load, load, loadResource, loadResource, loadResource, loadResource
 
Methods inherited from interface org.compass.core.CompassIndexSession
create, create, delete, delete, delete, delete, delete, delete, delete, save, save
 

Method Detail

getCompass

InternalCompass getCompass()

getSearchEngine

SearchEngine getSearchEngine()

getMarshallingStrategy

MarshallingStrategy getMarshallingStrategy()

getFirstLevelCache

FirstLevelCache getFirstLevelCache()

get

Object get(String alias,
           Object id,
           MarshallingContext context)
           throws CompassException
Throws:
CompassException

getByResource

Object getByResource(Resource resource)
                     throws CompassException
Throws:
CompassException

getResourceByIdResource

Resource getResourceByIdResource(Resource idResource)
                                 throws CompassException
Throws:
CompassException

getResourceByIdResourceNoCache

Resource getResourceByIdResourceNoCache(Resource idResource)
                                        throws CompassException
Throws:
CompassException

getMapping

CompassMapping getMapping()

getMetaData

CompassMetaData getMetaData()

startTransactionIfNeeded

void startTransactionIfNeeded()

addDelegateClose

void addDelegateClose(InternalSessionDelegateClose delegateClose)

unbindTransaction

void unbindTransaction()

create

void create(String alias,
            Object object,
            DirtyOperationContext context)
            throws CompassException
Throws:
CompassException

create

void create(Object object,
            DirtyOperationContext context)
            throws CompassException
Throws:
CompassException

save

void save(String alias,
          Object object,
          DirtyOperationContext context)
          throws CompassException
Throws:
CompassException

save

void save(Object object,
          DirtyOperationContext context)
          throws CompassException
Throws:
CompassException

delete

void delete(String alias,
            Object obj,
            DirtyOperationContext context)
            throws CompassException
Throws:
CompassException

delete

void delete(Class clazz,
            Object obj,
            DirtyOperationContext context)
            throws CompassException
Throws:
CompassException

delete

void delete(Object obj,
            DirtyOperationContext context)
            throws CompassException
Throws:
CompassException


Copyright (c) 2004-2009 The Compass Project.