fr.paris.lutece.plugins.stock.utils
Class TimestampConverter
java.lang.Object
fr.paris.lutece.plugins.stock.utils.TimestampConverter
- All Implemented Interfaces:
- org.apache.commons.beanutils.Converter
public class TimestampConverter
- extends Object
- implements org.apache.commons.beanutils.Converter
Convertisseu de Timestamp
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimestampConverter
public TimestampConverter()
convert
public Object convert(Class type,
Object value)
throws org.apache.commons.beanutils.ConversionException
- Méthode permettant de convertir une date d'un type à l'autre
- Specified by:
convert in interface org.apache.commons.beanutils.Converter
- Parameters:
type - Type de la date passée en paramètre
Les types suivants peuvent être précisés :
- String - Timestamp - Date -
Calendarvalue - date à convertir en Timestamp
- Returns:
- une date de type
Timestamp ou null en cas d'erreur
- Throws:
org.apache.commons.beanutils.ConversionException
Copyright © 2014 Mairie de Paris. All Rights Reserved.