|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.convert.converter.AbstractConverter<Timestamp>
org.apache.wicket.util.convert.converter.SqlTimestampConverter
public class SqlTimestampConverter
Converts to Timestamp.
| Constructor Summary | |
|---|---|
SqlTimestampConverter()
Construct. |
|
SqlTimestampConverter(int dateFormat)
Construct. |
|
SqlTimestampConverter(int dateFormat,
int timeFormat)
Construct. |
|
| Method Summary | |
|---|---|
Timestamp |
convertToObject(String value,
Locale locale)
Converts the given String value |
String |
convertToString(Timestamp timestamp,
Locale locale)
Converts the given value to a string. |
protected Class<Timestamp> |
getTargetType()
|
| Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter |
|---|
newConversionException, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlTimestampConverter()
public SqlTimestampConverter(int dateFormat)
dateFormat - See java.text.DateFormat for details. Defaults to DateFormat.SHORT
public SqlTimestampConverter(int dateFormat,
int timeFormat)
dateFormat - See java.text.DateFormat for details. Defaults to DateFormat.SHORT * @param
timeFormat See java.text.DateFormat for details. Defaults to DateFormat.SHORTtimeFormat - | Method Detail |
|---|
public Timestamp convertToObject(String value,
Locale locale)
IConverterString value
value - The string value to convertlocale - The locale used to convert the value
IConverter.convertToObject(java.lang.String,
java.util.Locale)
public String convertToString(Timestamp timestamp,
Locale locale)
IConverter
convertToString in interface IConverter<Timestamp>convertToString in class AbstractConverter<Timestamp>timestamp - The value to convertlocale - The locale used to convert the value
AbstractConverter.convertToString(java.lang.Object,
java.util.Locale)protected Class<Timestamp> getTargetType()
getTargetType in class AbstractConverter<Timestamp>AbstractConverter.getTargetType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||