fr.paris.lutece.plugins.stock.utils
Class TimestampConverter

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.utils.TimestampConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class TimestampConverter
extends java.lang.Object
implements org.apache.commons.beanutils.Converter

Convertisseu de Timestamp


Constructor Summary
TimestampConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Class type, java.lang.Object value)
          Méthode permettant de convertir une date d'un type à l'autre
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampConverter

public TimestampConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.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 - Calendar
value - date à convertir en Timestamp
Returns:
une date de type Timestamp ou null en cas d'erreur
Throws:
org.apache.commons.beanutils.ConversionException


Copyright © 2012 Mairie de Paris. All Rights Reserved.