|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConversionContext
Setting the context before invoking a conversion bridge will provide more helpful exceptions in case of errors. This is especially important as bridge implementations often need to make assumptions about the data formats and are user provided.
Method Summary | |
---|---|
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<?> beanClass)
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. |
Method Detail |
---|
FieldBridge oneWayConversionContext(FieldBridge delegate)
delegate
- set the bridge that shall be used by the decoration.
TwoWayFieldBridge twoWayConversionContext(TwoWayFieldBridge delegate)
delegate
- set the bridge that shall be used by the decoration.
StringBridge stringConversionContext(StringBridge delegate)
delegate
- set the bridge that shall be used by the decoration.
ConversionContext setClass(Class<?> beanClass)
beanClass
- the class type which is going to be converted
ConversionContext pushIdentifierProperty()
ConversionContext pushProperty(String property)
popProperty()
,
especially after exceptions.
property
- the property which is being followed for embedded indexing
ConversionContext popProperty()
pushIdentifierProperty()
and pushProperty(String)
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |