org.hibernate.search.bridge
Class TwoWayString2FieldBridgeAdaptor
java.lang.Object
org.hibernate.search.bridge.String2FieldBridgeAdaptor
org.hibernate.search.bridge.TwoWayString2FieldBridgeAdaptor
- All Implemented Interfaces:
- FieldBridge, TwoWayFieldBridge
public class TwoWayString2FieldBridgeAdaptor
- extends String2FieldBridgeAdaptor
- implements TwoWayFieldBridge
Bridge to use a TwoWayStringBridge as a TwoWayFieldBridge
- Author:
- Emmanuel Bernard
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. |
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 |
TwoWayString2FieldBridgeAdaptor
public TwoWayString2FieldBridgeAdaptor(TwoWayStringBridge stringBridge)
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) representationT of the specified object. Must not be
null
, but
can be empty.
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 namedocument
- document
- Returns:
- The return value is the entity property value.