org.hibernate.search.bridge.util.impl
Class ContextualException2WayBridge

java.lang.Object
  extended by org.hibernate.search.bridge.util.impl.ContextualExceptionBridge
      extended by org.hibernate.search.bridge.util.impl.ContextualException2WayBridge
All Implemented Interfaces:
FieldBridge, TwoWayFieldBridge

public class ContextualException2WayBridge
extends ContextualExceptionBridge
implements TwoWayFieldBridge

Wrap the exception with an exception provide contextual feedback

Author:
Emmanuel Bernard

Field Summary
 
Fields inherited from class org.hibernate.search.bridge.util.impl.ContextualExceptionBridge
clazz, fieldName, path
 
Constructor Summary
ContextualException2WayBridge()
           
 
Method Summary
 Object get(String name, org.apache.lucene.document.Document document)
          Build the element object from the Document
 String objectToString(Object object)
          Convert the object representation to a string.
 ContextualException2WayBridge popMethod()
           
 ContextualException2WayBridge pushIdentifierMethod()
           
 ContextualException2WayBridge pushMethod(org.hibernate.annotations.common.reflection.XMember xMember)
           
 ContextualException2WayBridge setClass(Class<?> clazz)
           
 ContextualException2WayBridge setFieldBridge(TwoWayFieldBridge delegate)
           
 ContextualException2WayBridge setFieldName(String fieldName)
           
 ContextualException2WayBridge setStringBridge(StringBridge bridge)
           
 
Methods inherited from class org.hibernate.search.bridge.util.impl.ContextualExceptionBridge
buildBridgeException, set, setFieldBridge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.search.bridge.FieldBridge
set
 

Constructor Detail

ContextualException2WayBridge

public ContextualException2WayBridge()
Method Detail

setFieldBridge

public ContextualException2WayBridge setFieldBridge(TwoWayFieldBridge delegate)

setClass

public ContextualException2WayBridge setClass(Class<?> clazz)
Overrides:
setClass in class ContextualExceptionBridge

setFieldName

public ContextualException2WayBridge setFieldName(String fieldName)
Overrides:
setFieldName in class ContextualExceptionBridge

get

public Object get(String name,
                  org.apache.lucene.document.Document document)
Description copied from interface: TwoWayFieldBridge
Build the element object from the Document

Specified by:
get in interface TwoWayFieldBridge
Parameters:
name - field name
document - document
Returns:
The return value is the entity property value.

objectToString

public String objectToString(Object object)
Description copied from interface: TwoWayFieldBridge
Convert the object representation to a string.

Specified by:
objectToString in interface TwoWayFieldBridge
Parameters:
object - The object to index.
Returns:
string (index) representation of the specified object. Must not be null, but can be empty.

pushMethod

public ContextualException2WayBridge pushMethod(org.hibernate.annotations.common.reflection.XMember xMember)
Overrides:
pushMethod in class ContextualExceptionBridge

popMethod

public ContextualException2WayBridge popMethod()
Overrides:
popMethod in class ContextualExceptionBridge

setStringBridge

public ContextualException2WayBridge setStringBridge(StringBridge bridge)

pushIdentifierMethod

public ContextualException2WayBridge pushIdentifierMethod()


Copyright © 2006-2012 Hibernate. All Rights Reserved.