|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.converters.csv.resultset.types.TypeStrategy
Abstract strategy super-class for classes that can convert
string data into standard Java and java.sql
types.
Constructor Summary | |
TypeStrategy()
|
Method Summary | |
java.sql.Array |
getArray(java.lang.String value)
Converts the input string into an array of objects. |
java.io.InputStream |
getAsciiStream(java.lang.String value)
Returns an input stream that reads characters from the input string. |
java.math.BigDecimal |
getBigDecimal(java.lang.String value)
Returns the BigDecimal value of the input string. |
java.math.BigDecimal |
getBigDecimal(java.lang.String value,
int arg1)
Returns the BigDecimal value of the input string. |
java.io.InputStream |
getBinaryStream(java.lang.String value)
Returns an input stream that reads the input string as binary data. |
java.sql.Blob |
getBlob(java.lang.String value)
Returns the input string as a Blob . |
boolean |
getBoolean(java.lang.String value)
Returns the boolean value of the input string. |
byte |
getByte(java.lang.String value)
Returns the byte value of the input string. |
byte[] |
getBytes(java.lang.String value)
Returns the input string as a byte array. |
byte[] |
getBytes64(java.lang.String value)
Returns the decoded byte array of the Base64 encoded input string. |
java.io.Reader |
getCharacterStream(java.lang.String value)
Returns a Reader that reads from the input string. |
java.sql.Clob |
getClob(java.lang.String value)
Returns the input string as a Clob . |
java.sql.Date |
getDate(java.lang.String value)
Returns the input string as a Date object. |
java.sql.Date |
getDate(java.lang.String value,
java.util.Calendar calendar)
Returns the input string as a Date object, using a specific Calendar . |
double |
getDouble(java.lang.String value)
Returns the double value of the input string. |
float |
getFloat(java.lang.String value)
Returns the float value of the input string. |
int |
getInt(java.lang.String value)
Returns the integer value of the input string. |
long |
getLong(java.lang.String value)
Returns the long value of the input string. |
java.lang.Object |
getObject(java.lang.String value)
Returns the input string as an object. |
java.sql.Ref |
getRef(java.lang.String value)
Returns the input string as a Ref . |
short |
getShort(java.lang.String value)
Returns the short value of the input string. |
java.lang.String |
getString(java.lang.String value)
Returns the input string. |
java.sql.Time |
getTime(java.lang.String value)
Returns the input string as a Time object. |
java.sql.Time |
getTime(java.lang.String value,
java.util.Calendar calendar)
Returns the input string as a Time object. |
java.sql.Timestamp |
getTimestamp(java.lang.String value)
Returns the input string as a Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String value,
java.util.Calendar calendar)
Returns the input string as a Timestamp object. |
java.io.InputStream |
getUnicodeStream(java.lang.String value)
Returns an input stream that reads the input string as unicode data. |
java.net.URL |
getURL(java.lang.String value)
Returns the URL value of the input string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeStrategy()
Method Detail |
public byte getByte(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public double getDouble(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public float getFloat(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public int getInt(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public long getLong(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public short getShort(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public boolean getBoolean(java.lang.String value) throws java.sql.SQLException
true
if the input is equal to "true"
or "1"
and false
otherwise.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public byte[] getBytes(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public byte[] getBytes64(java.lang.String value) throws java.sql.SQLException
value
- Base64 encoded input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.io.InputStream getAsciiStream(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.io.InputStream getBinaryStream(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.io.InputStream getUnicodeStream(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.io.Reader getCharacterStream(java.lang.String value) throws java.sql.SQLException
Reader
that reads from the input string.
value
- Input data.
Reader
accessing the input value.
java.sql.SQLException
- if there was a problem with the conversion.public java.lang.Object getObject(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.lang.String getString(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.math.BigDecimal getBigDecimal(java.lang.String value) throws java.sql.SQLException
BigDecimal
value of the input string.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.math.BigDecimal getBigDecimal(java.lang.String value, int arg1) throws java.sql.SQLException
BigDecimal
value of the input string.
value
- Input data.arg1
- ????
java.sql.SQLException
- if there was a problem with the conversion.public java.net.URL getURL(java.lang.String value) throws java.sql.SQLException
URL
value of the input string.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Blob getBlob(java.lang.String value) throws java.sql.SQLException
Blob
.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Clob getClob(java.lang.String value) throws java.sql.SQLException
Clob
.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Date getDate(java.lang.String value) throws java.sql.SQLException
Date
object.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Ref getRef(java.lang.String value) throws java.sql.SQLException
Ref
.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Time getTime(java.lang.String value) throws java.sql.SQLException
Time
object.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Timestamp getTimestamp(java.lang.String value) throws java.sql.SQLException
Timestamp
object.
value
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Date getDate(java.lang.String value, java.util.Calendar calendar) throws java.sql.SQLException
Date
object, using a specific Calendar
.
value
- Input data.calendar
- Calendar to use for the conversion.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Time getTime(java.lang.String value, java.util.Calendar calendar) throws java.sql.SQLException
Time
object.
value
- Input data.calendar
- Calendar to use for the conversion.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Timestamp getTimestamp(java.lang.String value, java.util.Calendar calendar) throws java.sql.SQLException
Timestamp
object.
value
- Input data.calendar
- Calendar to use for the conversion.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Array getArray(java.lang.String value) throws java.sql.SQLException
value
- Input data.
java.sql.SQLException
- if there was a problem with the
conversion.
java.lang.UnsupportedOperationException
- always.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |