|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.converters.DateConverter
public class DateConverter
Converts between Date
and String
using the standard
representation "yyyy", or "yyyy-mm", or "yyyy-mm-dd".
Constructor Summary | |
---|---|
DateConverter()
Creates a new date converter object. |
Method Summary | |
---|---|
java.lang.Object |
convertFromString(java.lang.String textRep,
int sqlTypeCode)
Converts the given textual representation to an instance of the target type. |
java.lang.String |
convertToString(java.lang.Object obj,
int sqlTypeCode)
Converts the given object to a string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateConverter()
Method Detail |
---|
public java.lang.Object convertFromString(java.lang.String textRep, int sqlTypeCode) throws ConversionException
convertFromString
in interface SqlTypeConverter
textRep
- The textual representationsqlTypeCode
- The target sql type code, one of the constants in Types
ConversionException
public java.lang.String convertToString(java.lang.Object obj, int sqlTypeCode) throws ConversionException
convertToString
in interface SqlTypeConverter
obj
- The objectsqlTypeCode
- The corresponding source type code
ConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |