|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.kodo.impl.jdbc.runtime.AbstractResult
A Result implementation designed to be subclassed easily by
implementations that are not backed by a ResultSet.
All get<type> calls are delegated to the
Result.getObject(Column,int,Object) method, which should be
implemented by subclasses along with Result.next(),
Result.size(), and Result.contains(com.solarmetric.rd.kodo.impl.jdbc.schema.Column).
Most of the methods of this class will accept return values from
Result#getObject(Column,int) that are not exactly the right type.
For example, any numeric type can be returned as any Number
type, and dates, locales, characters, and booleans can be returned as
strings.
ResultSetResult| Constructor Summary | |
AbstractResult(java.sql.Connection conn)
Constructor. |
|
| Method Summary | |
boolean |
absolute(int row)
Throws an exception by default. |
protected java.lang.Object |
checkNull(java.lang.Object val)
|
void |
close()
Free the resources used by this result; do not close the SQL connection. |
java.sql.Array |
getArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.io.InputStream |
getAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.math.BigDecimal |
getBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.math.BigInteger |
getBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.io.InputStream |
getBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.sql.Blob |
getBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
boolean |
getBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
byte |
getByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
byte[] |
getBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
char |
getChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.io.Reader |
getCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.sql.Connection |
getConnection()
Return the connection that was given to the method that returned this result. |
java.util.Date |
getDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.sql.Date |
getDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
double |
getDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
float |
getFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.util.Map |
getImplData(boolean create)
Return a mutable view of arbitrary implementation data associated with this result, optionally creating a new map if none exists. |
int |
getInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.util.Locale |
getLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
long |
getLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.lang.Object |
getObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Map map)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.sql.Ref |
getRef(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Map map)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
short |
getShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.lang.String |
getString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the value stored in the given column. |
java.sql.Time |
getTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
java.sql.Timestamp |
getTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set. |
void |
setFetchBatchSize(int size)
Passes on size to each impl data result. |
boolean |
supportsRandomAccess()
Returns false by default. |
boolean |
wasNull()
Return true if the last value fetched was null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.solarmetric.rd.kodo.impl.jdbc.runtime.Result |
contains, getClob, getObject, next, size |
| Constructor Detail |
public AbstractResult(java.sql.Connection conn)
| Method Detail |
public java.util.Map getImplData(boolean create)
Result
getImplData in interface Resultpublic java.sql.Connection getConnection()
Result
getConnection in interface Resultpublic void close()
Result
close in interface Result
public boolean supportsRandomAccess()
throws java.sql.SQLException
supportsRandomAccess in interface Resultjava.sql.SQLException
public void setFetchBatchSize(int size)
throws java.sql.SQLException
setFetchBatchSize in interface Resultjava.sql.SQLException
public boolean absolute(int row)
throws java.sql.SQLException
absolute in interface Resultjava.sql.SQLException
public java.sql.Array getArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getArray in interface Resultjava.sql.SQLException
public java.io.InputStream getAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getAsciiStream in interface Resultjava.sql.SQLException
public java.math.BigDecimal getBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBigDecimal in interface Resultjava.sql.SQLException
public java.math.BigInteger getBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBigInteger in interface Resultjava.sql.SQLException
public java.io.InputStream getBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBinaryStream in interface Resultjava.sql.SQLException
public java.sql.Blob getBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBlob in interface Resultjava.sql.SQLException
public boolean getBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBoolean in interface Resultjava.sql.SQLException
public byte getByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getByte in interface Resultjava.sql.SQLException
public byte[] getBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getBytes in interface Resultjava.sql.SQLException
public char getChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getChar in interface Resultjava.sql.SQLException
public java.io.Reader getCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getCharacterStream in interface Resultjava.sql.SQLException
public java.util.Date getDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getDate in interface Resultjava.sql.SQLException
public java.sql.Date getDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
throws java.sql.SQLException
Result
getDate in interface Resultjava.sql.SQLException
public double getDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getDouble in interface Resultjava.sql.SQLException
public float getFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getFloat in interface Resultjava.sql.SQLException
public int getInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getInt in interface Resultjava.sql.SQLException
public java.util.Locale getLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getLocale in interface Resultjava.sql.SQLException
public long getLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getLong in interface Resultjava.sql.SQLException
public java.lang.Object getObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Map map)
throws java.sql.SQLException
Result
getObject in interface Resultjava.sql.SQLException
public java.sql.Ref getRef(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Map map)
throws java.sql.SQLException
Result
getRef in interface Resultjava.sql.SQLException
public short getShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getShort in interface Resultjava.sql.SQLException
public java.lang.String getString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Result
getString in interface Resultjava.sql.SQLException
public java.sql.Time getTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
throws java.sql.SQLException
Result
getTime in interface Resultjava.sql.SQLException
public java.sql.Timestamp getTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Calendar cal)
throws java.sql.SQLException
Result
getTimestamp in interface Resultjava.sql.SQLExceptionpublic boolean wasNull()
Result
wasNull in interface Resultprotected java.lang.Object checkNull(java.lang.Object val)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||