Class TimestampConverter
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.converters.TimestampConverter
- All Implemented Interfaces:
SqlTypeConverter
Converts between
Timestamp
and String
using the standard
representation "yyyy-mm-dd hh:mm:ss.fffffffff".- Version:
- $Revision: 289996 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertFromString
(String textRep, int sqlTypeCode) Converts the given textual representation to an instance of the target type.convertToString
(Object obj, int sqlTypeCode) Converts the given object to a string representation.
-
Constructor Details
-
TimestampConverter
public TimestampConverter()
-
-
Method Details
-
convertFromString
Converts the given textual representation to an instance of the target type.- Specified by:
convertFromString
in interfaceSqlTypeConverter
- Parameters:
textRep
- The textual representationsqlTypeCode
- The target sql type code, one of the constants inTypes
- Returns:
- The corresponding object
- Throws:
ConversionException
-
convertToString
Converts the given object to a string representation.- Specified by:
convertToString
in interfaceSqlTypeConverter
- Parameters:
obj
- The objectsqlTypeCode
- The corresponding source type code- Returns:
- The textual representation
- Throws:
ConversionException
-