org.outerj.xreporter.datatype.type
Class TimeType

java.lang.Object
  extended byorg.outerj.xreporter.datatype.type.Type
      extended byorg.outerj.xreporter.datatype.type.AbstractDateTimeType
          extended byorg.outerj.xreporter.datatype.type.TimeType
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable

public class TimeType
extends AbstractDateTimeType


Field Summary
 
Fields inherited from class org.outerj.xreporter.datatype.type.AbstractDateTimeType
operatorSupport
 
Fields inherited from class org.outerj.xreporter.datatype.type.Type
expressionManager, formattingPatterns, validationRules
 
Constructor Summary
TimeType()
           
 
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 org.outerj.xreporter.datatype.type.AbstractDateTimeType
configure, convert, format, formatRaw, getAllowedOperators, getOperatorById, parseRawValue, validate, validate
 
Methods inherited from class org.outerj.xreporter.datatype.type.Type
addExpressionValidationRule, addValidationRule, compose, configureFormattingPatterns, validateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeType

public TimeType()
Method Detail

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