org.hibernate.search.bridge.util.impl
public final class ContextualExceptionBridgeHelper extends Object implements ConversionContext
| Constructor and Description |
|---|
ContextualExceptionBridgeHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected BridgeException |
buildBridgeException(Exception e,
String method) |
FieldBridge |
oneWayConversionContext(FieldBridge delegate)
Decorates a FieldBridge.
|
ConversionContext |
popProperty()
Pops the last pushed property from the stack.
|
ConversionContext |
pushIdentifierProperty()
In case the next conversion fails, the error message will point to the
document id of the currently indexed type.
|
ConversionContext |
pushProperty(String property)
The context has an internal stack for graph navigation.
|
ConversionContext |
setClass(Class<?> clazz)
In case the next conversion fails, the error message will point to this type.
|
StringBridge |
stringConversionContext(StringBridge delegate)
Decorates a StringBridge.
|
TwoWayFieldBridge |
twoWayConversionContext(TwoWayFieldBridge delegate)
Decorates a TwoWayFieldBridge.
|
public ConversionContext setClass(Class<?> clazz)
ConversionContextsetClass in interface ConversionContextclazz - the class type which is going to be convertedpublic ConversionContext pushProperty(String property)
ConversionContextConversionContext.popProperty(),
especially after exceptions.pushProperty in interface ConversionContextproperty - the property which is being followed for embedded indexingpublic ConversionContext popProperty()
ConversionContextConversionContext.pushIdentifierProperty()
and ConversionContext.pushProperty(String)}popProperty in interface ConversionContextpublic ConversionContext pushIdentifierProperty()
ConversionContextpushIdentifierProperty in interface ConversionContextprotected BridgeException buildBridgeException(Exception e, String method)
public FieldBridge oneWayConversionContext(FieldBridge delegate)
ConversionContextoneWayConversionContext in interface ConversionContextdelegate - set the bridge that shall be used by the decoration.public TwoWayFieldBridge twoWayConversionContext(TwoWayFieldBridge delegate)
ConversionContexttwoWayConversionContext in interface ConversionContextdelegate - set the bridge that shall be used by the decoration.public StringBridge stringConversionContext(StringBridge delegate)
ConversionContextstringConversionContext in interface ConversionContextdelegate - set the bridge that shall be used by the decoration.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved