org.kuali.rice.ksb.messaging.web
Class MessageQueueForm.SqlTimestampConverter

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.web.MessageQueueForm.SqlTimestampConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter
Enclosing class:
MessageQueueForm

public static class MessageQueueForm.SqlTimestampConverter
extends Object
implements org.apache.commons.beanutils.Converter

Converts an incoming object to a timestamp. Adapted from org.apache.commons.beanutils.converters.SqlTimestampConverter


Constructor Summary
MessageQueueForm.SqlTimestampConverter()
          Create a Converter that will throw a ConversionException if a conversion error occurs.
MessageQueueForm.SqlTimestampConverter(Object defaultValue)
          Create a Converter that will return the specified default value if a conversion error occurs.
 
Method Summary
 Object convert(Class type, Object value)
          Convert the specified input object into an output object of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageQueueForm.SqlTimestampConverter

public MessageQueueForm.SqlTimestampConverter()
Create a Converter that will throw a ConversionException if a conversion error occurs.


MessageQueueForm.SqlTimestampConverter

public MessageQueueForm.SqlTimestampConverter(Object defaultValue)
Create a Converter that will return the specified default value if a conversion error occurs.

Parameters:
defaultValue - The default value to be returned
Method Detail

convert

public Object convert(Class type,
                      Object value)
Convert the specified input object into an output object of the specified type.

Specified by:
convert in interface org.apache.commons.beanutils.Converter
Parameters:
type - Data type to which this value should be converted
value - The input value to be converted
Throws:
org.apache.commons.beanutils.ConversionException - if conversion cannot be performed successfully


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.