org.melati.template
Class YMDHMSTimestampAdaptor

Package class diagram package YMDHMSTimestampAdaptor
java.lang.Object
  extended by org.melati.template.YMDDateAdaptor
      extended by org.melati.template.YMDHMSTimestampAdaptor
All Implemented Interfaces:
TempletAdaptor

public class YMDHMSTimestampAdaptor
extends YMDDateAdaptor

An adaptor for a string date in YMDHMST format.


Field Summary
 
Fields inherited from class org.melati.template.YMDDateAdaptor
daySuffix, it, monthSuffix, yearSuffix
 
Constructor Summary
YMDHMSTimestampAdaptor()
           
 
Method Summary
static YMDHMSTimestampAdaptor getIt()
           
 Field hourField(Field field)
           
 Field minuteField(Field field)
           
 Object rawFrom(ServletTemplateContext context, String fieldName)
          Retrieve a raw value, ie an SQL value, from a ServletTemplateContext.
 Field secondField(Field field)
           
 
Methods inherited from class org.melati.template.YMDDateAdaptor
dayField, getFormOrDie, monthField, when, yearField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YMDHMSTimestampAdaptor

public YMDHMSTimestampAdaptor()
Method Detail

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 in
fieldName - 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.