|
||||||||||
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 Operator s 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.ConfigurationException
public java.util.List getAllowedOperators()
Type
Operator
s 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)
Type
DataType.validate
validate
in class Type
public java.lang.String format(java.lang.Object value, ResourceHandle resourceHandle, FormatCache formatCache)
Type
DataType.format
format
in class Type
public 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
Type
PreparedStatement
.
bind
in class Type
java.sql.SQLException
public java.lang.Object fetch(java.sql.ResultSet resultSet, java.lang.String fieldName) throws java.sql.SQLException
Type
DataType.fetch
fetch
in class Type
java.sql.SQLException
public java.lang.Object parseRawValue(java.lang.String value) throws java.text.ParseException
Type
Type.formatRaw(java.lang.Object)
.
parseRawValue
in class Type
java.text.ParseException
public java.lang.String formatRaw(java.lang.Object value)
Type
formatRaw
in class Type
public java.lang.String getName()
Type
getName
in class Type
public java.lang.Object convert(java.lang.Object object) throws UnconvertibleException
convert
in class Type
UnconvertibleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |