org.compass.core.spi
Interface InternalCompassSession

All Superinterfaces:
CompassOperations, CompassSession
All Known Implementing Classes:
DefaultCompassSession

public interface InternalCompassSession
extends CompassSession

Author:
kimchy

Method Summary
 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)
           
 void flush()
          Flushed the current transaction.
 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)
           
 
Methods inherited from interface org.compass.core.CompassSession
analyzerHelper, beginLocalTransaction, beginTransaction, beginTransaction, close, getSettings, isClosed, queryBuilder, queryFilterBuilder, resourceFactory, termFreqsBuilder
 
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
 

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()

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

flush

void flush()
           throws CompassException
Flushed the current transaction. Only supported for batch_insert (no op in others).

Throws:
CompassException


Copyright (c) 2004-2008 The Compass Project.