|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.xreporter.datatype.type.Type
org.outerj.xreporter.datatype.type.LongType
Implementation of Type supporting longs.
| Field Summary | |
protected static org.outerj.xreporter.datatype.type.OperatorSupport |
operatorSupport
|
| Fields inherited from class org.outerj.xreporter.datatype.type.Type |
expressionManager, formattingPatterns, validationRules |
| Constructor Summary | |
LongType()
|
|
| Method Summary | |
void |
bind(java.sql.PreparedStatement statement,
int pos,
java.lang.Object value)
Binds a value of this type to a PreparedStatement. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
java.lang.Object |
convert(java.lang.Object object)
|
java.lang.Object |
fetch(java.sql.ResultSet resultSet,
java.lang.String fieldName)
See DataType.fetch |
java.lang.String |
format(java.lang.Object value,
ResourceHandle resourceHandle,
FormatCache formatCache)
See DataType.format |
java.lang.String |
formatRaw(java.lang.Object value)
Format a value as simple as possible. |
java.util.List |
getAllowedOperators()
Returns a list of Operators supported by this datatype. |
java.lang.String |
getName()
Returns a name that identifies this type |
Operator |
getOperatorById(java.lang.String id)
|
java.lang.Object |
parseRawValue(java.lang.String value)
Parses a value that was serialized using formatRaw(java.lang.Object). |
ValidationResult |
validate(java.lang.String value,
ExecutionContext executionContext)
See DataType.validate |
ValidationResult |
validate(java.lang.String value,
ExecutionContext executionContext,
boolean rawLocale)
|
| 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 |
| Field Detail |
protected static org.outerj.xreporter.datatype.type.OperatorSupport operatorSupport
| Constructor Detail |
public LongType()
| Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic java.util.List getAllowedOperators()
TypeOperators supported by this datatype.
getAllowedOperators in class Type
public ValidationResult validate(java.lang.String value,
ExecutionContext executionContext,
boolean rawLocale)
validate in class Type
public ValidationResult validate(java.lang.String value,
ExecutionContext executionContext)
TypeDataType.validate
validate in class Type
public java.lang.String format(java.lang.Object value,
ResourceHandle resourceHandle,
FormatCache formatCache)
TypeDataType.format
format in class Typepublic Operator getOperatorById(java.lang.String id)
getOperatorById in class Type
public void bind(java.sql.PreparedStatement statement,
int pos,
java.lang.Object value)
throws java.sql.SQLException
TypePreparedStatement.
bind in class Typejava.sql.SQLException
public java.lang.Object fetch(java.sql.ResultSet resultSet,
java.lang.String fieldName)
throws java.sql.SQLException
TypeDataType.fetch
fetch in class Typejava.sql.SQLException
public java.lang.Object parseRawValue(java.lang.String value)
throws java.text.ParseException
TypeType.formatRaw(java.lang.Object).
parseRawValue in class Typejava.text.ParseExceptionpublic java.lang.String formatRaw(java.lang.Object value)
Type
formatRaw in class Typepublic java.lang.String getName()
Type
getName in class Type
public java.lang.Object convert(java.lang.Object object)
throws UnconvertibleException
convert in class TypeUnconvertibleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||