org.milyn.javabean.decoders
Class SqlTimestampDecoder

java.lang.Object
  extended by org.milyn.javabean.decoders.LocaleAwareDecoder
      extended by org.milyn.javabean.decoders.LocaleAwareDateDecoder
          extended by org.milyn.javabean.decoders.DateDecoder
              extended by org.milyn.javabean.decoders.SqlTimestampDecoder
All Implemented Interfaces:
Serializable, Configurable, DataDecoder, DataEncoder

@DecodeType(value=java.sql.Timestamp.class)
public class SqlTimestampDecoder
extends DateDecoder

Timestamp data decoder.

Extends DateDecoder and returns a java.sql.Timestamp instance.

Author:
maurice.zeijen@smies.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
DataDecoder.Factory
 
Field Summary
 
Fields inherited from class org.milyn.javabean.decoders.LocaleAwareDateDecoder
decoder, DEFAULT_DATE_FORMAT, format, FORMAT, LOCALE_COUNTRY_CODE, LOCALE_LANGUAGE_CODE, VERIFY_LOCALE
 
Fields inherited from class org.milyn.javabean.decoders.LocaleAwareDecoder
LOCALE
 
Constructor Summary
SqlTimestampDecoder()
           
 
Method Summary
 Object decode(String data)
          Decode the supplied String data into a new Object data instance.
 
Methods inherited from class org.milyn.javabean.decoders.DateDecoder
encode
 
Methods inherited from class org.milyn.javabean.decoders.LocaleAwareDateDecoder
setConfiguration
 
Methods inherited from class org.milyn.javabean.decoders.LocaleAwareDecoder
getConfiguration, getLocale, getLocale, isLocalInstalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTimestampDecoder

public SqlTimestampDecoder()
Method Detail

decode

public Object decode(String data)
              throws DataDecodeException
Description copied from interface: DataDecoder
Decode the supplied String data into a new Object data instance.

Specified by:
decode in interface DataDecoder
Overrides:
decode in class DateDecoder
Parameters:
data - Data to be decoded.
Returns:
Decoded data Object.
Throws:
DataDecodeException - Error decoding data.


Copyright © 2018. All rights reserved.