org.hibernate.search.bridge.builtin.impl
Class DefaultStringBridge
java.lang.Object
org.hibernate.search.bridge.builtin.impl.DefaultStringBridge
- All Implemented Interfaces:
- StringBridge
public class DefaultStringBridge
- extends Object
- implements StringBridge
Convert an object using the toString method or return null
if the object is null
.
- Author:
- Davide D'Alto
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStringBridge
public DefaultStringBridge()
objectToString
public String objectToString(Object object)
- Description copied from interface:
StringBridge
- Converts the object representation to a string.
- Specified by:
objectToString
in interface StringBridge
- 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.
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved