Package org.springmodules.lucene.index

Examples of org.springmodules.lucene.index.DocumentHandlerException


*/
public abstract class SqlDocumentHandler extends AbstractDocumentHandler {

  private void checkDescriptionParameters(Map description) {
    if( description.get(SqlRequest.SQL_REQUEST)==null ) {
      throw new DocumentHandlerException("The parameter "+SqlRequest.SQL_REQUEST+
          " is required for this type of document handler");
    }
  }
View Full Code Here


      DocumentMatching matching = (DocumentMatching)i.next();
      if( matching.match(name) ) {
        return (DocumentHandler)documentHandlers.get(matching);
      }
    }
    throw new DocumentHandlerException("No document handler defined for the name "+name);
  }
View Full Code Here

  public final Document getDocument(Map description, Object object)
      throws Exception {
    if (supports(object.getClass())) {
      return doGetDocument(description, object);
    } else {
      throw new DocumentHandlerException(
          "The document handler does not support the class "
              + object.getClass());
    }
  }
View Full Code Here

TOP

Related Classes of org.springmodules.lucene.index.DocumentHandlerException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.