Package org.hibernate.search.bridge
Class TwoWayString2FieldBridgeAdaptor
java.lang.Object
org.hibernate.search.bridge.String2FieldBridgeAdaptor
org.hibernate.search.bridge.TwoWayString2FieldBridgeAdaptor
- All Implemented Interfaces:
FieldBridge,StringBridge,TwoWayFieldBridge
public class TwoWayString2FieldBridgeAdaptor
extends String2FieldBridgeAdaptor
implements TwoWayFieldBridge
Bridge to use a TwoWayStringBridge as a TwoWayFieldBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild the element object from theDocumentobjectToString(Object object) Converts the object representation to a string.unwrap()Methods inherited from class org.hibernate.search.bridge.String2FieldBridgeAdaptor
setMethods 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
-
TwoWayString2FieldBridgeAdaptor
-
-
Method Details
-
objectToString
Description copied from interface:StringBridgeConverts the object representation to a string.- Specified by:
objectToStringin interfaceStringBridge- Specified by:
objectToStringin interfaceTwoWayFieldBridge- Overrides:
objectToStringin classString2FieldBridgeAdaptor- Parameters:
object- The object to transform into a string representation.- Returns:
- String representation of the given object to be stored in Lucene index. The return string must not be
null. It can be empty though.
-
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.
-
unwrap
-