org.outerj.xreporter.datatype.type
Class DateType
java.lang.Object
org.outerj.xreporter.datatype.type.Type
org.outerj.xreporter.datatype.type.AbstractDateTimeType
org.outerj.xreporter.datatype.type.DateType
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable
- public class DateType
- extends AbstractDateTimeType
Method Summary |
void |
bind(java.sql.PreparedStatement statement,
int pos,
java.lang.Object value)
Binds a value of this type to a PreparedStatement . |
java.lang.Object |
fetch(java.sql.ResultSet resultSet,
java.lang.String fieldName)
See DataType.fetch |
protected DateFormat |
getDateFormat(java.util.Locale locale)
Returns an appropriate default DateFormat (usually the SHORT variant). |
java.lang.String |
getName()
Returns a name that identifies this type |
protected java.lang.String |
getParseErrorResourceKey()
Returns the resource key for the validation error message in case
the input string was not parseable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateType
public DateType()
getDateFormat
protected DateFormat getDateFormat(java.util.Locale locale)
- Description copied from class:
AbstractDateTimeType
- Returns an appropriate default DateFormat (usually the SHORT variant).
- Specified by:
getDateFormat
in class AbstractDateTimeType
getParseErrorResourceKey
protected java.lang.String getParseErrorResourceKey()
- Description copied from class:
AbstractDateTimeType
- Returns the resource key for the validation error message in case
the input string was not parseable.
- Specified by:
getParseErrorResourceKey
in class AbstractDateTimeType
bind
public void bind(java.sql.PreparedStatement statement,
int pos,
java.lang.Object value)
throws java.sql.SQLException
- Description copied from class:
Type
- Binds a value of this type to a
PreparedStatement
.
- Specified by:
bind
in class Type
- Throws:
java.sql.SQLException
fetch
public java.lang.Object fetch(java.sql.ResultSet resultSet,
java.lang.String fieldName)
throws java.sql.SQLException
- Description copied from class:
Type
- See
DataType.fetch
- Specified by:
fetch
in class Type
- Throws:
java.sql.SQLException
getName
public java.lang.String getName()
- Description copied from class:
Type
- Returns a name that identifies this type
- Specified by:
getName
in class Type