org.melati.template
Class YMDHMSTimestampAdaptor
java.lang.Object
org.melati.template.YMDDateAdaptor
org.melati.template.YMDHMSTimestampAdaptor
- All Implemented Interfaces:
- TempletAdaptor
public class YMDHMSTimestampAdaptor
- extends YMDDateAdaptor
An adaptor for a string date in YMDHMST format.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YMDHMSTimestampAdaptor
public YMDHMSTimestampAdaptor()
getIt
public static YMDHMSTimestampAdaptor getIt()
- Returns:
- the instance.
rawFrom
public Object rawFrom(ServletTemplateContext context,
String fieldName)
- Retrieve a raw value, ie an SQL value, from a ServletTemplateContext.
- Specified by:
rawFrom
in interface TempletAdaptor
- Overrides:
rawFrom
in class YMDDateAdaptor
- Parameters:
context
- the ServletTemplateContext the value is stored infieldName
- the name of the field in the context
- Returns:
- the raw value
- See Also:
TempletAdaptor.rawFrom(
org.melati.template.ServletTemplateContext, java.lang.String)
hourField
public Field hourField(Field field)
- Parameters:
field
- the field to copy
- Returns:
- an hour field
minuteField
public Field minuteField(Field field)
- Parameters:
field
- the field to copy
- Returns:
- a minute field
secondField
public Field secondField(Field field)
- Parameters:
field
- the field to copy
- Returns:
- a second field
Copyright © 2000-2010 PanEris. All Rights Reserved.