org.LexGrid.LexBIG.Impl.helpers.lazyloading
Class AbstractLazyCodeHolderFactory

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.helpers.lazyloading.AbstractLazyCodeHolderFactory
All Implemented Interfaces:
java.io.Serializable, CodeHolderFactory
Direct Known Subclasses:
NonProxyCodeHolderFactory

public abstract class AbstractLazyCodeHolderFactory
extends java.lang.Object
implements CodeHolderFactory

A factory for creating LazyCodeHolder objects.

Author:
Kevin Peterson
See Also:
Serialized Form

Constructor Summary
AbstractLazyCodeHolderFactory()
           
 
Method Summary
 CodeHolder buildCodeHolder(java.util.List<AbsoluteCodingSchemeVersionReference> references, org.apache.lucene.search.Query query)
           
 CodeHolder buildCodeHolder(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, java.util.List<org.apache.lucene.search.BooleanQuery> combinedQuery, java.util.List<org.apache.lucene.search.Query> bitSetQueries)
          Builds the code holder.
protected  CodeHolder buildCodeHolder(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, java.util.List<org.apache.lucene.search.ScoreDoc> scoreDocs)
           
 CodeHolder buildCodeHolderWithFilters(java.lang.String internalCodeSystemName, java.lang.String internalVersionString, java.util.List<org.apache.lucene.search.Query> queries, java.util.List<org.apache.lucene.search.Filter> filters)
           
protected abstract  CodeToReturn buildCodeToReturn(org.apache.lucene.search.ScoreDoc doc, java.util.List<AbsoluteCodingSchemeVersionReference> references)
           
protected abstract  CodeToReturn buildCodeToReturn(org.apache.lucene.search.ScoreDoc doc, java.lang.String internalCodeSystemName, java.lang.String internalVersionString)
          Builds the code to return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLazyCodeHolderFactory

public AbstractLazyCodeHolderFactory()
Method Detail

buildCodeHolder

public CodeHolder buildCodeHolder(java.lang.String internalCodeSystemName,
                                  java.lang.String internalVersionString,
                                  java.util.List<org.apache.lucene.search.BooleanQuery> combinedQuery,
                                  java.util.List<org.apache.lucene.search.Query> bitSetQueries)
                           throws LBInvocationException,
                                  LBParameterException
Description copied from interface: CodeHolderFactory
Builds the code holder.

Specified by:
buildCodeHolder in interface CodeHolderFactory
Parameters:
internalCodeSystemName - the internal code system name
internalVersionString - the internal version string
Returns:
the code holder
Throws:
LBInvocationException
LBParameterException

buildCodeHolderWithFilters

public CodeHolder buildCodeHolderWithFilters(java.lang.String internalCodeSystemName,
                                             java.lang.String internalVersionString,
                                             java.util.List<org.apache.lucene.search.Query> queries,
                                             java.util.List<org.apache.lucene.search.Filter> filters)
                                      throws LBInvocationException,
                                             LBParameterException
Specified by:
buildCodeHolderWithFilters in interface CodeHolderFactory
Throws:
LBInvocationException
LBParameterException

buildCodeHolder

protected CodeHolder buildCodeHolder(java.lang.String internalCodeSystemName,
                                     java.lang.String internalVersionString,
                                     java.util.List<org.apache.lucene.search.ScoreDoc> scoreDocs)

buildCodeHolder

public CodeHolder buildCodeHolder(java.util.List<AbsoluteCodingSchemeVersionReference> references,
                                  org.apache.lucene.search.Query query)
                           throws LBInvocationException,
                                  LBParameterException
Specified by:
buildCodeHolder in interface CodeHolderFactory
Throws:
LBInvocationException
LBParameterException

buildCodeToReturn

protected abstract CodeToReturn buildCodeToReturn(org.apache.lucene.search.ScoreDoc doc,
                                                  java.lang.String internalCodeSystemName,
                                                  java.lang.String internalVersionString)
Builds the code to return.

Parameters:
doc - the doc
internalCodeSystemName - the internal code system name
internalVersionString - the internal version string
Returns:
the code to return

buildCodeToReturn

protected abstract CodeToReturn buildCodeToReturn(org.apache.lucene.search.ScoreDoc doc,
                                                  java.util.List<AbsoluteCodingSchemeVersionReference> references)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.