|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy
uk.org.ogsadai.converters.webrowset.resultset.types.NumberStrategy
uk.org.ogsadai.converters.webrowset.resultset.types.NumericStrategy
Converts an element of column type numeric.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private int |
mScale
|
Constructor Summary | |
NumericStrategy(int scale)
Create a new numeric strategy. |
Method Summary | |
java.lang.Object |
getObject(java.lang.String data)
Returns the input string as an object. |
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.types.NumberStrategy |
getBigDecimal, getBigInteger, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, getString |
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy |
getArray, getAsciiStream, getBigDecimal, getBinaryStream, getBlob, getBytes, getCharacterStream, getClob, getDate, getDate, getRef, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private int mScale
Constructor Detail |
public NumericStrategy(int scale)
scale
- If 0
then getObject()
will return
big integers else it will return big decimals.Method Detail |
public java.lang.Object getObject(java.lang.String data) throws java.sql.SQLException
TypeStrategy
getObject
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |