org.compass.core.impl
Class DefaultCompass
java.lang.Object
org.compass.core.impl.DefaultCompass
- All Implemented Interfaces:
- Serializable, Referenceable, Compass, InternalCompass
public class DefaultCompass
- extends Object
- implements InternalCompass
- Author:
- kimchy
- See Also:
- Serialized Form
|
Constructor Summary |
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings)
|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
boolean duplicate)
|
DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
boolean duplicate,
LuceneSearchEngineFactory searchEngineFactory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
protected CompassSettings settings
DefaultCompass
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings)
throws CompassException
- Throws:
CompassException
DefaultCompass
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
boolean duplicate)
throws CompassException
- Throws:
CompassException
DefaultCompass
public DefaultCompass(CompassMapping mapping,
ConverterLookup converterLookup,
CompassMetaData compassMetaData,
PropertyNamingStrategy propertyNamingStrategy,
CompassSettings settings,
boolean duplicate,
LuceneSearchEngineFactory searchEngineFactory)
throws CompassException
- Throws:
CompassException
clone
public Compass clone(CompassSettings addedSettings)
- Description copied from interface:
Compass
- Clones the current
Compass instance. The added settings will merged with the current
compass settings, and control the creation of the new Compass.
Note, that the new instance will not be registered with JNDI, as well as not start the optimizer.
- Specified by:
clone in interface Compass
- Parameters:
addedSettings - The settings to be added.
- Returns:
- the cloned compass instance.
getMapping
public CompassMapping getMapping()
- Specified by:
getMapping in interface InternalCompass
openSession
public CompassSession openSession()
- Description copied from interface:
Compass
- If there is a transaction bound session, will return it. Otherwise
returns a new session.
A transactional bound session is bounded to the transaction when calling
the CompassSession.beginTransaction().
- Specified by:
openSession in interface Compass
- Returns:
- CompassSession
openSession
public CompassSession openSession(boolean allowCreate)
close
public void close()
- Description copied from interface:
Compass
- Closes Compass
- Specified by:
close in interface Compass
getReference
public Reference getReference()
throws NamingException
- Specified by:
getReference in interface Referenceable
- Throws:
NamingException
getSettings
public CompassSettings getSettings()
- Specified by:
getSettings in interface InternalCompass
getSearchEngineOptimizer
public SearchEngineOptimizer getSearchEngineOptimizer()
- Description copied from interface:
Compass
- Retruns the search engine optimizer. You can controll the state of the
optimizer (by calling
stop or start), you
can check if the index need optimization, and you can optimize the index.
- Specified by:
getSearchEngineOptimizer in interface Compass
- Returns:
- the search engine optimizer
getSearchEngineIndexManager
public SearchEngineIndexManager getSearchEngineIndexManager()
- Description copied from interface:
Compass
- Return the search engine index manager. You can control the index using
it.
- Specified by:
getSearchEngineIndexManager in interface Compass
- Returns:
- the search engine index manager
getSearchEngineFactory
public SearchEngineFactory getSearchEngineFactory()
- Specified by:
getSearchEngineFactory in interface InternalCompass
getMetaData
public CompassMetaData getMetaData()
- Specified by:
getMetaData in interface InternalCompass
getTransactionFactory
public TransactionFactory getTransactionFactory()
- Specified by:
getTransactionFactory in interface InternalCompass
getConverterLookup
public ConverterLookup getConverterLookup()
- Specified by:
getConverterLookup in interface InternalCompass
Copyright (c) 2004-2006 The Compass Project.