Package org.hibernate.search.bridge.util
Class ContextualExceptionBridge
java.lang.Object
org.hibernate.search.bridge.util.ContextualExceptionBridge
- All Implemented Interfaces:
FieldBridge
- Direct Known Subclasses:
ContextualException2WayBridge
Wrap the exception with an exception provide contextual feedback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BridgeExceptionbuildBridgeException(Exception e, String method) pushMethod(XMember xMember) voidset(String name, Object value, Document document, LuceneOptions luceneOptions) Manipulate the document to index the given value.setFieldBridge(FieldBridge delegate) setFieldName(String fieldName)
-
Field Details
-
clazz
-
path
-
fieldName
-
-
Constructor Details
-
ContextualExceptionBridge
public ContextualExceptionBridge()
-
-
Method Details
-
setFieldBridge
-
setClass
-
setFieldName
-
buildBridgeException
-
set
Description copied from interface:FieldBridgeManipulate the document to index the given value. A common implementation is to add a Field with the givennametodocumentfollowing the parametersluceneOptionsif thevalueis notnull. {code} String fieldValue = convertToString(value); luceneOptions.addFieldToDocument(name, fieldValue, document); {code}- Specified by:
setin interfaceFieldBridge- Parameters:
name- The field to add to the Lucene documentvalue- The actual value to indexdocument- The Lucene document into which we want to index the value.luceneOptions- Contains the parameters used for addingvalueto the Lucene document.
-
pushMethod
-
popMethod
-