Class MessageQueueForm.SqlTimestampConverter

java.lang.Object
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 Details

    • SqlTimestampConverter

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

      public 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 Details

    • 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