org.javalite.activejdbc.validation
Class TimestampConverter

java.lang.Object
  extended by org.javalite.activejdbc.validation.ValidatorAdapter
      extended by org.javalite.activejdbc.validation.Converter
          extended by org.javalite.activejdbc.validation.TimestampConverter
All Implemented Interfaces:
Validator

Deprecated. use DateToStringConverter and StringToTimestampConverter instead

@Deprecated
public class TimestampConverter
extends Converter

Author:
Igor Polevoy

Constructor Summary
TimestampConverter(String attributeName, String format)
          Deprecated.  
 
Method Summary
 void convert(Model m)
          Deprecated.  
 String formatMessage(Locale locale, Object... params)
          Deprecated. Provides default implementation, will look for a property in resource bundle, using set message as key.
 
Methods inherited from class org.javalite.activejdbc.validation.Converter
validate
 
Methods inherited from class org.javalite.activejdbc.validation.ValidatorAdapter
getMessage, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampConverter

public TimestampConverter(String attributeName,
                          String format)
Deprecated. 
Method Detail

convert

public void convert(Model m)
Deprecated. 
Specified by:
convert in class Converter

formatMessage

public String formatMessage(Locale locale,
                            Object... params)
Deprecated. 
Description copied from class: ValidatorAdapter
Provides default implementation, will look for a property in resource bundle, using set message as key. If property in resource bundle not found, treats message verbatim.

Specified by:
formatMessage in interface Validator
Overrides:
formatMessage in class ValidatorAdapter
Parameters:
locale - locale to use, or null for default locale.
params - parameters in case a message is parametrized.
Returns:
formatted message.


Copyright © 2015 JavaLite. All rights reserved.