public abstract class AbstractResult extends java.lang.Object implements Result
Result implementation designed to be subclassed easily by
implementations. All get<type> calls are delegated to
the getObjectInternal(Object,int,Object,Joins) method, which
should be implemented by subclasses along with nextInternal(),
containsInternal(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins), and Result.size().
Most of the methods of this class will accept return values from
getObjectInternal(Object,int,Object,Joins) 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 and Description |
|---|
AbstractResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row)
Move to the given 0-based row in the result, or
return false if the row does not exist.
|
protected boolean |
absoluteInternal(int row)
Throws an exception by default.
|
protected java.lang.Object |
checkNull(java.lang.Object val) |
void |
close()
Closes all eager results.
|
protected void |
closeEagerMap(java.util.Map eager)
Close all results in eager map.
|
boolean |
contains(Column col,
Joins joins)
Return true if the given column is available in the result.
|
boolean |
contains(java.lang.Object obj)
Return true if the given id or column is available in the result.
|
boolean |
containsAll(Column[] cols,
Joins joins)
Return true if all the given columns are available in the result.
|
boolean |
containsAll(java.lang.Object[] objs)
Return true if all the given ids or columns are available in the result.
|
protected boolean |
containsAllInternal(java.lang.Object[] objs,
Joins joins)
Return whether this result contains data for all the given ids or
columns.
|
protected abstract boolean |
containsInternal(java.lang.Object obj,
Joins joins)
Return whether this result contains data for the given id or column.
|
void |
endDataRequest()
Ends a data request.
|
java.sql.Array |
getArray(Column col,
Joins joins)
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.Array |
getArray(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Array |
getArrayInternal(java.lang.Object obj,
Joins joins) |
java.io.InputStream |
getAsciiStream(Column col,
Joins joins)
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(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.io.InputStream |
getAsciiStreamInternal(java.lang.Object obj,
Joins joins) |
ClassMapping |
getBaseMapping()
If this is the result of a UNION used to select a hierarchy of
mappings, the base mapping represented by the current row.
|
java.math.BigDecimal |
getBigDecimal(Column col,
Joins joins)
Return the value stored in the given column.
|
java.math.BigDecimal |
getBigDecimal(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.math.BigDecimal |
getBigDecimalInternal(java.lang.Object obj,
Joins joins) |
java.math.BigInteger |
getBigInteger(Column col,
Joins joins)
Return the value stored in the given column.
|
java.math.BigInteger |
getBigInteger(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.math.BigInteger |
getBigIntegerInternal(java.lang.Object obj,
Joins joins) |
java.io.InputStream |
getBinaryStream(Column col,
Joins joins)
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 |
getBinaryStream(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.io.InputStream |
getBinaryStreamInternal(java.lang.Object obj,
Joins joins) |
java.sql.Blob |
getBlob(Column col,
Joins joins)
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(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Blob |
getBlobInternal(java.lang.Object obj,
Joins joins) |
boolean |
getBoolean(Column col,
Joins joins)
Return the value stored in the given column.
|
boolean |
getBoolean(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected boolean |
getBooleanInternal(java.lang.Object obj,
Joins joins) |
byte |
getByte(Column col,
Joins joins)
Return the value stored in the given column.
|
byte |
getByte(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected byte |
getByteInternal(java.lang.Object obj,
Joins joins) |
byte[] |
getBytes(Column col,
Joins joins)
Return the value stored in the given column; may not be supported
by results that are not backed by a SQL result set.
|
byte[] |
getBytes(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected byte[] |
getBytesInternal(java.lang.Object obj,
Joins joins) |
java.util.Calendar |
getCalendar(Column col,
Joins joins)
Return the value stored in the given column.
|
java.util.Calendar |
getCalendar(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.util.Calendar |
getCalendarInternal(java.lang.Object obj,
Joins joins) |
char |
getChar(Column col,
Joins joins)
Return the value stored in the given column.
|
char |
getChar(java.lang.Object obj)
Return the value stored in the given column or id.
|
java.io.Reader |
getCharacterStream(Column col,
Joins joins)
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.Reader |
getCharacterStream(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.io.Reader |
getCharacterStreamInternal(java.lang.Object obj,
Joins joins) |
protected char |
getCharInternal(java.lang.Object obj,
Joins joins) |
java.sql.Clob |
getClob(Column col,
Joins joins)
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.Clob |
getClob(java.lang.Object obj)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Clob |
getClobInternal(java.lang.Object obj,
Joins joins) |
java.sql.Date |
getDate(Column col,
java.util.Calendar cal,
Joins joins)
Return the value stored in the given column; may not be supported
by results that are not backed by a SQL result set.
|
java.util.Date |
getDate(Column col,
Joins joins)
Return the value stored in the given column.
|
java.util.Date |
getDate(java.lang.Object obj)
Return the value stored in the given column or id.
|
java.sql.Date |
getDate(java.lang.Object obj,
java.util.Calendar cal)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Date |
getDateInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins) |
protected java.util.Date |
getDateInternal(java.lang.Object obj,
Joins joins) |
double |
getDouble(Column col,
Joins joins)
Return the value stored in the given column.
|
double |
getDouble(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected double |
getDoubleInternal(java.lang.Object obj,
Joins joins) |
java.lang.Object |
getEager(FieldMapping key)
The eager result for the given key, or null if none.
|
protected java.util.Map |
getEagerMap(boolean client)
Raw eager information.
|
float |
getFloat(Column col,
Joins joins)
Return the value stored in the given column.
|
float |
getFloat(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected float |
getFloatInternal(java.lang.Object obj,
Joins joins) |
int |
getInt(Column col,
Joins joins)
Return the value stored in the given column.
|
int |
getInt(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected int |
getIntInternal(java.lang.Object obj,
Joins joins) |
java.io.InputStream |
getLOBStream(JDBCStore store,
java.lang.Object obj) |
protected java.io.InputStream |
getLOBStreamInternal(JDBCStore store,
java.lang.Object obj,
Joins joins) |
java.util.Locale |
getLocale(Column col,
Joins joins)
Return the value stored in the given column.
|
java.util.Locale |
getLocale(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.util.Locale |
getLocaleInternal(java.lang.Object obj,
Joins joins) |
long |
getLong(Column col,
Joins joins)
Return the value stored in the given column.
|
long |
getLong(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected long |
getLongInternal(java.lang.Object obj,
Joins joins) |
FieldMapping |
getMappedByFieldMapping()
If this is the result used to select a toMany relationship,
the mappedByFieldMapping is field mapping representing
the inverse relationship.
|
java.lang.Object |
getMappedByValue()
If this is the result used to select a toMany relationship,
the mappedByValue is value of the owner of the toMany relationship.
|
java.lang.Number |
getNumber(Column col,
Joins joins)
Return the value stored in the given column.
|
java.lang.Number |
getNumber(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.lang.Number |
getNumberInternal(java.lang.Object obj,
Joins joins) |
java.lang.Object |
getObject(Column col,
java.lang.Object arg,
Joins joins)
Return the value stored in the given column.
|
java.lang.Object |
getObject(java.lang.Object obj,
int metaType,
java.lang.Object arg)
Return the value stored in the given column or id.
|
protected abstract java.lang.Object |
getObjectInternal(java.lang.Object obj,
int metaType,
java.lang.Object arg,
Joins joins)
Return the value stored in the given id or column.
|
java.sql.Ref |
getRef(Column col,
java.util.Map map,
Joins joins)
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(java.lang.Object obj,
java.util.Map map)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Ref |
getRefInternal(java.lang.Object obj,
java.util.Map map,
Joins joins) |
short |
getShort(Column col,
Joins joins)
Return the value stored in the given column.
|
short |
getShort(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected short |
getShortInternal(java.lang.Object obj,
Joins joins) |
java.lang.Object |
getSQLObject(Column col,
java.util.Map map,
Joins joins)
Return the value stored in the given column; may not be supported
by results that are not backed by a SQL result set.
|
java.lang.Object |
getSQLObject(java.lang.Object obj,
java.util.Map map)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.lang.Object |
getSQLObjectInternal(java.lang.Object obj,
java.util.Map map,
Joins joins) |
protected abstract java.lang.Object |
getStreamInternal(JDBCStore store,
java.lang.Object obj,
int metaType,
java.lang.Object arg,
Joins joins) |
java.lang.String |
getString(Column col,
Joins joins)
Return the value stored in the given column.
|
java.lang.String |
getString(java.lang.Object obj)
Return the value stored in the given column or id.
|
protected java.lang.String |
getStringInternal(java.lang.Object obj,
Joins joins,
boolean isClobString) |
java.sql.Time |
getTime(Column col,
java.util.Calendar cal,
Joins joins)
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.Time |
getTime(java.lang.Object obj,
java.util.Calendar cal)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Time |
getTimeInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins) |
java.sql.Timestamp |
getTimestamp(Column col,
java.util.Calendar cal,
Joins joins)
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(java.lang.Object obj,
java.util.Calendar cal)
Return the value stored in the given column or id; may not be supported
by results that are not backed by a SQL result set.
|
protected java.sql.Timestamp |
getTimestampInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins) |
int |
indexOf()
The index of the select within the UNION that the current row
corresponds to, or 0.
|
boolean |
isLocking()
If true, then any results loaded from this Result
will be locked in the database.
|
java.lang.Object |
load(ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch)
Load a pc object using the given store manager.
|
java.lang.Object |
load(ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch,
Joins joins)
Load a pc object using the given store manager.
|
Joins |
newJoins()
Returns a no-op joins object by default.
|
boolean |
next()
Advance to the next row, or return false if there are no more rows
in the result.
|
protected abstract boolean |
nextInternal()
Advance this row.
|
void |
pushBack()
Push back the last result.
|
void |
putEager(FieldMapping key,
java.lang.Object res)
The eager result for the given key, or null if none.
|
void |
setBaseMapping(ClassMapping base)
If this is the result of a UNION used to select a hierarchy of
mappings, the base mapping represented by the current row.
|
protected void |
setEagerMap(java.util.Map eager)
Raw eager information.
|
void |
setIndexOf(int idx) |
void |
setLocking(boolean locking)
Set to true if row locking has been issued for the row.
|
void |
setMappedByFieldMapping(FieldMapping fieldMapping)
If this is the result used to select a toMany relationship,
the mappedByFieldMapping is field mapping representing
the inverse relationship.
|
void |
setMappedByValue(java.lang.Object mappedByValue)
If this is the result used to select a toMany relationship,
the mappedByValue is value of the owner of the toMany relationship.
|
void |
startDataRequest(java.lang.Object mapping)
Informs this receiver about the application element for which a
subsequent data request will be made.
|
boolean |
supportsRandomAccess()
Returns false by default.
|
protected java.lang.Object |
translate(java.lang.Object obj,
Joins joins)
Translate the user-given id or column.
|
boolean |
wasNull()
Return true if the last value fetched was null.
|
public java.lang.Object getEager(FieldMapping key)
Resultpublic void putEager(FieldMapping key, java.lang.Object res)
Resultprotected java.util.Map getEagerMap(boolean client)
client - whether the client is accessing eager informationprotected void setEagerMap(java.util.Map eager)
public void close()
protected void closeEagerMap(java.util.Map eager)
public boolean supportsRandomAccess()
throws java.sql.SQLException
supportsRandomAccess in interface Resultjava.sql.SQLExceptionpublic boolean absolute(int row)
throws java.sql.SQLException
Resultprotected boolean absoluteInternal(int row)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
Resultprotected abstract boolean nextInternal()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void pushBack()
throws java.sql.SQLException
ResultResult.next(). After the first time this method is called,
additional calls before a call to Result.next() or Result.absolute(int)
should have no further affect.public Joins newJoins()
public boolean contains(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic boolean containsAll(java.lang.Object[] objs)
throws java.sql.SQLException
ResultcontainsAll in interface Resultjava.sql.SQLExceptionpublic boolean contains(Column col, Joins joins) throws java.sql.SQLException
Resultpublic boolean containsAll(Column[] cols, Joins joins) throws java.sql.SQLException
ResultcontainsAll in interface Resultjava.sql.SQLExceptionprotected abstract boolean containsInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins).java.sql.SQLExceptionprotected boolean containsAllInternal(java.lang.Object[] objs,
Joins joins)
throws java.sql.SQLException
translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins). Delegates to containsInternal(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins) by default.java.sql.SQLExceptionpublic ClassMapping getBaseMapping()
ResultgetBaseMapping in interface Resultpublic void setBaseMapping(ClassMapping base)
ResultsetBaseMapping in interface Resultpublic FieldMapping getMappedByFieldMapping()
ResultgetMappedByFieldMapping in interface Resultpublic void setMappedByFieldMapping(FieldMapping fieldMapping)
ResultsetMappedByFieldMapping in interface Resultpublic java.lang.Object getMappedByValue()
ResultgetMappedByValue in interface Resultpublic void setMappedByValue(java.lang.Object mappedByValue)
ResultsetMappedByValue in interface Resultpublic int indexOf()
Resultpublic void setIndexOf(int idx)
public java.lang.Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) throws java.sql.SQLException
Resultpublic java.lang.Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws java.sql.SQLException
Resultpublic java.sql.Array getArray(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.sql.Array getArray(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Array getArrayInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream getAsciiStream(java.lang.Object obj)
throws java.sql.SQLException
ResultgetAsciiStream in interface Resultjava.sql.SQLExceptionpublic java.io.InputStream getAsciiStream(Column col, Joins joins) throws java.sql.SQLException
ResultgetAsciiStream in interface Resultjava.sql.SQLExceptionprotected java.io.InputStream getAsciiStreamInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigDecimal getBigDecimal(java.lang.Object obj)
throws java.sql.SQLException
ResultgetBigDecimal in interface Resultjava.sql.SQLExceptionpublic java.math.BigDecimal getBigDecimal(Column col, Joins joins) throws java.sql.SQLException
ResultgetBigDecimal in interface Resultjava.sql.SQLExceptionprotected java.math.BigDecimal getBigDecimalInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigInteger getBigInteger(java.lang.Object obj)
throws java.sql.SQLException
ResultgetBigInteger in interface Resultjava.sql.SQLExceptionpublic java.math.BigInteger getBigInteger(Column col, Joins joins) throws java.sql.SQLException
ResultgetBigInteger in interface Resultjava.sql.SQLExceptionprotected java.math.BigInteger getBigIntegerInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(java.lang.Object obj)
throws java.sql.SQLException
ResultgetBinaryStream in interface Resultjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(Column col, Joins joins) throws java.sql.SQLException
ResultgetBinaryStream in interface Resultjava.sql.SQLExceptionpublic java.io.InputStream getLOBStream(JDBCStore store, java.lang.Object obj) throws java.sql.SQLException
getLOBStream in interface Resultjava.sql.SQLExceptionprotected java.io.InputStream getBinaryStreamInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.io.InputStream getLOBStreamInternal(JDBCStore store, java.lang.Object obj, Joins joins) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Blob getBlob(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.sql.Blob getBlob(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Blob getBlobInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean getBoolean(java.lang.Object obj)
throws java.sql.SQLException
ResultgetBoolean in interface Resultjava.sql.SQLExceptionpublic boolean getBoolean(Column col, Joins joins) throws java.sql.SQLException
ResultgetBoolean in interface Resultjava.sql.SQLExceptionprotected boolean getBooleanInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte getByte(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic byte getByte(Column col, Joins joins) throws java.sql.SQLException
Resultprotected byte getByteInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] getBytes(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic byte[] getBytes(Column col, Joins joins) throws java.sql.SQLException
Resultprotected byte[] getBytesInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Calendar getCalendar(java.lang.Object obj)
throws java.sql.SQLException
ResultgetCalendar in interface Resultjava.sql.SQLExceptionpublic java.util.Calendar getCalendar(Column col, Joins joins) throws java.sql.SQLException
ResultgetCalendar in interface Resultjava.sql.SQLExceptionprotected java.util.Calendar getCalendarInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic char getChar(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic char getChar(Column col, Joins joins) throws java.sql.SQLException
Resultprotected char getCharInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getCharacterStream(java.lang.Object obj)
throws java.sql.SQLException
ResultgetCharacterStream in interface Resultjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream(Column col, Joins joins) throws java.sql.SQLException
ResultgetCharacterStream in interface Resultjava.sql.SQLExceptionprotected java.io.Reader getCharacterStreamInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Clob getClob(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.sql.Clob getClob(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Clob getClobInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Date getDate(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.util.Date getDate(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.util.Date getDateInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Date getDate(java.lang.Object obj,
java.util.Calendar cal)
throws java.sql.SQLException
Resultpublic java.sql.Date getDate(Column col, java.util.Calendar cal, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Date getDateInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic double getDouble(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic double getDouble(Column col, Joins joins) throws java.sql.SQLException
Resultprotected double getDoubleInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic float getFloat(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic float getFloat(Column col, Joins joins) throws java.sql.SQLException
Resultprotected float getFloatInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getInt(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic int getInt(Column col, Joins joins) throws java.sql.SQLException
Resultprotected int getIntInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Locale getLocale(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.util.Locale getLocale(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.util.Locale getLocaleInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic long getLong(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic long getLong(Column col, Joins joins) throws java.sql.SQLException
Resultprotected long getLongInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Number getNumber(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.lang.Number getNumber(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.lang.Number getNumberInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(java.lang.Object obj,
int metaType,
java.lang.Object arg)
throws java.sql.SQLException
ResultgetObject in interface Resultobj - the column or id whose data to fetchmetaType - the type code from
JavaTypes or JavaSQLTypes for the
type of the data; if obj is a column, you may specify -1
to use the column's recorded java typearg - some JDBC data access methods use an argument, such
as a Calendar or Mapjava.sql.SQLExceptionpublic java.lang.Object getObject(Column col, java.lang.Object arg, Joins joins) throws java.sql.SQLException
Resultprotected abstract java.lang.Object getObjectInternal(java.lang.Object obj,
int metaType,
java.lang.Object arg,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract java.lang.Object getStreamInternal(JDBCStore store, java.lang.Object obj, int metaType, java.lang.Object arg, Joins joins) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getSQLObject(java.lang.Object obj,
java.util.Map map)
throws java.sql.SQLException
ResultgetSQLObject in interface Resultjava.sql.SQLExceptionpublic java.lang.Object getSQLObject(Column col, java.util.Map map, Joins joins) throws java.sql.SQLException
ResultgetSQLObject in interface Resultjava.sql.SQLExceptionprotected java.lang.Object getSQLObjectInternal(java.lang.Object obj,
java.util.Map map,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Ref getRef(java.lang.Object obj,
java.util.Map map)
throws java.sql.SQLException
Resultpublic java.sql.Ref getRef(Column col, java.util.Map map, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Ref getRefInternal(java.lang.Object obj,
java.util.Map map,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic short getShort(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic short getShort(Column col, Joins joins) throws java.sql.SQLException
Resultprotected short getShortInternal(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getString(java.lang.Object obj)
throws java.sql.SQLException
Resultpublic java.lang.String getString(Column col, Joins joins) throws java.sql.SQLException
Resultprotected java.lang.String getStringInternal(java.lang.Object obj,
Joins joins,
boolean isClobString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Time getTime(java.lang.Object obj,
java.util.Calendar cal)
throws java.sql.SQLException
Resultpublic java.sql.Time getTime(Column col, java.util.Calendar cal, Joins joins) throws java.sql.SQLException
Resultprotected java.sql.Time getTimeInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(java.lang.Object obj,
java.util.Calendar cal)
throws java.sql.SQLException
ResultgetTimestamp in interface Resultjava.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(Column col, java.util.Calendar cal, Joins joins) throws java.sql.SQLException
ResultgetTimestamp in interface Resultjava.sql.SQLExceptionprotected java.sql.Timestamp getTimestampInternal(java.lang.Object obj,
java.util.Calendar cal,
Joins joins)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean wasNull()
throws java.sql.SQLException
Resultprotected java.lang.Object checkNull(java.lang.Object val)
public void setLocking(boolean locking)
ResultsetLocking in interface Resultpublic boolean isLocking()
Resultpublic void startDataRequest(java.lang.Object mapping)
ResultstartDataRequest in interface Resultpublic void endDataRequest()
ResultResult.startDataRequest(java.lang.Object). The calls can be nested as follws startDataRequest (relation); startDataRequest (relationsField);
getObject("COLUMN_Y"); endDataRequest (); endDataRequest ();
endDataRequest in interface Resultprotected java.lang.Object translate(java.lang.Object obj,
Joins joins)
throws java.sql.SQLException
get*Internal methods with the exception of
getObjectInternal. Return the
original value by default.java.sql.SQLExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.