public class CalendarBridge extends Object implements TwoWayStringBridge, ParameterizedBridge
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CalendarBridge() |
CalendarBridge(Resolution resolution) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String RESOLUTION_PARAMETER
public static final TwoWayStringBridge CALENDAR_YEAR
public static final TwoWayStringBridge CALENDAR_MONTH
public static final TwoWayStringBridge CALENDAR_DAY
public static final TwoWayStringBridge CALENDAR_HOUR
public static final TwoWayStringBridge CALENDAR_MINUTE
public static final TwoWayStringBridge CALENDAR_SECOND
public static final TwoWayStringBridge CALENDAR_MILLISECOND
public CalendarBridge()
public CalendarBridge(Resolution resolution)
public void setParameterValues(Map<String,String> parameters)
ParameterizedBridge
setParameterValues
in interface ParameterizedBridge
parameters
- map containing string based parameters to be passed to the parameterized bridge. The map is never
null
.public Object stringToObject(String stringValue)
TwoWayStringBridge
stringToObject
in interface TwoWayStringBridge
stringValue
- The index value.Object
.public String objectToString(Object object)
StringBridge
objectToString
in interface StringBridge
object
- The object to transform into a string representation.null
. It can be empty though.Copyright © 2006–2016 Hibernate. All rights reserved.