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

getMapping

CompassMapping getMapping()

getMetaData

CompassMetaData getMetaData()

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.