org.hibernate.search.bridge.builtin
Class CalendarBridge

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

public class CalendarBridge
extends Object
implements TwoWayStringBridge, ParameterizedBridge


Field Summary
static TwoWayStringBridge CALENDAR_DAY
           
static TwoWayStringBridge CALENDAR_HOUR
           
static TwoWayStringBridge CALENDAR_MILLISECOND
           
static TwoWayStringBridge CALENDAR_MINUTE
           
static TwoWayStringBridge CALENDAR_MONTH
           
static TwoWayStringBridge CALENDAR_SECOND
           
static TwoWayStringBridge CALENDAR_YEAR
           
static String RESOLUTION_PARAMETER
           
 
Constructor Summary
CalendarBridge()
           
CalendarBridge(Resolution resolution)
           
 
Method Summary
 String objectToString(Object object)
          Converts the object representation to a string.
 void setParameterValues(Map<String,String> parameters)
          Called on the bridge implementation to pass the parameters.
 Object stringToObject(String stringValue)
          Convert the index string representation to an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLUTION_PARAMETER

public static final String RESOLUTION_PARAMETER
See Also:
Constant Field Values

CALENDAR_YEAR

public static final TwoWayStringBridge CALENDAR_YEAR

CALENDAR_MONTH

public static final TwoWayStringBridge CALENDAR_MONTH

CALENDAR_DAY

public static final TwoWayStringBridge CALENDAR_DAY

CALENDAR_HOUR

public static final TwoWayStringBridge CALENDAR_HOUR

CALENDAR_MINUTE

public static final TwoWayStringBridge CALENDAR_MINUTE

CALENDAR_SECOND

public static final TwoWayStringBridge CALENDAR_SECOND

CALENDAR_MILLISECOND

public static final TwoWayStringBridge CALENDAR_MILLISECOND
Constructor Detail

CalendarBridge

public CalendarBridge()

CalendarBridge

public CalendarBridge(Resolution resolution)
Method Detail

setParameterValues

public void setParameterValues(Map<String,String> parameters)
Description copied from interface: ParameterizedBridge
Called on the bridge implementation to pass the parameters.

Specified by:
setParameterValues in interface ParameterizedBridge
Parameters:
parameters - map containing string based parameters to be passed to the parameterized bridge. The map is never null.

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.


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved