Class CalendarBridge

java.lang.Object
org.hibernate.search.bridge.builtin.CalendarBridge
All Implemented Interfaces:
ParameterizedBridge, StringBridge, TwoWayStringBridge

public class CalendarBridge extends Object implements TwoWayStringBridge, ParameterizedBridge
  • Field Details

  • Constructor Details

    • CalendarBridge

      public CalendarBridge()
    • CalendarBridge

      public CalendarBridge(Resolution resolution)
  • Method Details

    • setParameterValues

      public void setParameterValues(Map parameters)
      Specified by:
      setParameterValues in interface ParameterizedBridge
    • stringToObject

      public Object stringToObject(String stringValue)
      Description copied from interface: TwoWayStringBridge
      Convert the index string representation to an object.
      Specified by:
      stringToObject in interface TwoWayStringBridge
      Parameters:
      stringValue - The index value.
      Returns:
      Takes the string representation from the Lucene index and transforms it back into the original Object.
    • 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.