Package org.hibernate.search.bridge.util
Class ContextualException2WayBridge
java.lang.Object
org.hibernate.search.bridge.util.ContextualExceptionBridge
org.hibernate.search.bridge.util.ContextualException2WayBridge
- All Implemented Interfaces:
FieldBridge,TwoWayFieldBridge
public class ContextualException2WayBridge
extends ContextualExceptionBridge
implements TwoWayFieldBridge
Wrap the exception with an exception provide contextual feedback
-
Field Summary
Fields inherited from class org.hibernate.search.bridge.util.ContextualExceptionBridge
clazz, fieldName, path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild the element object from theDocumentobjectToString(Object object) Convert the object representation to a string.pushMethod(XMember xMember) setFieldBridge(TwoWayFieldBridge delegate) setFieldName(String fieldName) setStringBridge(StringBridge bridge) Methods inherited from class org.hibernate.search.bridge.util.ContextualExceptionBridge
buildBridgeException, set, setFieldBridgeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.bridge.FieldBridge
set
-
Constructor Details
-
ContextualException2WayBridge
public ContextualException2WayBridge()
-
-
Method Details
-
setFieldBridge
-
setClass
- Overrides:
setClassin classContextualExceptionBridge
-
setFieldName
- Overrides:
setFieldNamein classContextualExceptionBridge
-
get
Description copied from interface:TwoWayFieldBridgeBuild the element object from theDocument- Specified by:
getin interfaceTwoWayFieldBridge- Parameters:
name- field namedocument- document- Returns:
- The return value is the entity property value.
-
objectToString
Description copied from interface:TwoWayFieldBridgeConvert the object representation to a string.- Specified by:
objectToStringin interfaceTwoWayFieldBridge- Parameters:
object- The object to index.- Returns:
- string (index) representation of the specified object. Must not be
null, but can be empty.
-
pushMethod
- Overrides:
pushMethodin classContextualExceptionBridge
-
popMethod
- Overrides:
popMethodin classContextualExceptionBridge
-
setStringBridge
-
pushIdentifierMethod
-