public abstract class AbstractResult extends 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 Object |
checkNull(Object val) |
void |
close()
Closes all eager results.
|
protected void |
closeEagerMap(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(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(Object[] objs)
Return true if all the given ids or columns are available in the result.
|
protected boolean |
containsAllInternal(Object[] objs,
Joins joins)
Return whether this result contains data for all the given ids or
columns.
|
protected abstract boolean |
containsInternal(Object obj,
Joins joins)
Return whether this result contains data for the given id or column.
|
void |
endDataRequest()
Ends a data request.
|
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.
|
Array |
getArray(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 Array |
getArrayInternal(Object obj,
Joins joins) |
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.
|
InputStream |
getAsciiStream(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 InputStream |
getAsciiStreamInternal(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.
|
BigDecimal |
getBigDecimal(Column col,
Joins joins)
Return the value stored in the given column.
|
BigDecimal |
getBigDecimal(Object obj)
Return the value stored in the given column or id.
|
protected BigDecimal |
getBigDecimalInternal(Object obj,
Joins joins) |
BigInteger |
getBigInteger(Column col,
Joins joins)
Return the value stored in the given column.
|
BigInteger |
getBigInteger(Object obj)
Return the value stored in the given column or id.
|
protected BigInteger |
getBigIntegerInternal(Object obj,
Joins joins) |
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.
|
InputStream |
getBinaryStream(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 InputStream |
getBinaryStreamInternal(Object obj,
Joins joins) |
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.
|
Blob |
getBlob(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 Blob |
getBlobInternal(Object obj,
Joins joins) |
boolean |
getBoolean(Column col,
Joins joins)
Return the value stored in the given column.
|
boolean |
getBoolean(Object obj)
Return the value stored in the given column or id.
|
protected boolean |
getBooleanInternal(Object obj,
Joins joins) |
byte |
getByte(Column col,
Joins joins)
Return the value stored in the given column.
|
byte |
getByte(Object obj)
Return the value stored in the given column or id.
|
protected byte |
getByteInternal(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(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(Object obj,
Joins joins) |
Calendar |
getCalendar(Column col,
Joins joins)
Return the value stored in the given column.
|
Calendar |
getCalendar(Object obj)
Return the value stored in the given column or id.
|
protected Calendar |
getCalendarInternal(Object obj,
Joins joins) |
char |
getChar(Column col,
Joins joins)
Return the value stored in the given column.
|
char |
getChar(Object obj)
Return the value stored in the given column or id.
|
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.
|
Reader |
getCharacterStream(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 Reader |
getCharacterStreamInternal(Object obj,
Joins joins) |
protected char |
getCharInternal(Object obj,
Joins joins) |
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.
|
Clob |
getClob(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 Clob |
getClobInternal(Object obj,
Joins joins) |
Date |
getDate(Column col,
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.
|
Date |
getDate(Column col,
Joins joins)
Return the value stored in the given column.
|
Date |
getDate(Object obj)
Return the value stored in the given column or id.
|
Date |
getDate(Object obj,
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 Date |
getDateInternal(Object obj,
Calendar cal,
Joins joins) |
protected Date |
getDateInternal(Object obj,
Joins joins) |
double |
getDouble(Column col,
Joins joins)
Return the value stored in the given column.
|
double |
getDouble(Object obj)
Return the value stored in the given column or id.
|
protected double |
getDoubleInternal(Object obj,
Joins joins) |
Object |
getEager(FieldMapping key)
The eager result for the given key, or null if none.
|
protected Map |
getEagerMap(boolean client)
Raw eager information.
|
float |
getFloat(Column col,
Joins joins)
Return the value stored in the given column.
|
float |
getFloat(Object obj)
Return the value stored in the given column or id.
|
protected float |
getFloatInternal(Object obj,
Joins joins) |
int |
getInt(Column col,
Joins joins)
Return the value stored in the given column.
|
int |
getInt(Object obj)
Return the value stored in the given column or id.
|
protected int |
getIntInternal(Object obj,
Joins joins) |
InputStream |
getLOBStream(JDBCStore store,
Object obj) |
protected InputStream |
getLOBStreamInternal(JDBCStore store,
Object obj,
Joins joins) |
LocalDate |
getLocalDate(Object obj)
Return the value stored in the given column or id.
|
protected LocalDate |
getLocalDateInternal(Object obj,
Joins joins) |
LocalDateTime |
getLocalDateTime(Object obj)
Return the value stored in the given column or id.
|
protected LocalDateTime |
getLocalDateTimeInternal(Object obj,
Joins joins) |
Locale |
getLocale(Column col,
Joins joins)
Return the value stored in the given column.
|
Locale |
getLocale(Object obj)
Return the value stored in the given column or id.
|
protected Locale |
getLocaleInternal(Object obj,
Joins joins) |
LocalTime |
getLocalTime(Object obj)
Return the value stored in the given column or id.
|
protected LocalTime |
getLocalTimeInternal(Object obj,
Joins joins) |
long |
getLong(Column col,
Joins joins)
Return the value stored in the given column.
|
long |
getLong(Object obj)
Return the value stored in the given column or id.
|
protected long |
getLongInternal(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.
|
Object |
getMappedByValue()
If this is the result used to select a toMany relationship,
the mappedByValue is value of the owner of the toMany relationship.
|
Number |
getNumber(Column col,
Joins joins)
Return the value stored in the given column.
|
Number |
getNumber(Object obj)
Return the value stored in the given column or id.
|
protected Number |
getNumberInternal(Object obj,
Joins joins) |
Object |
getObject(Column col,
Object arg,
Joins joins)
Return the value stored in the given column.
|
Object |
getObject(Object obj,
int metaType,
Object arg)
Return the value stored in the given column or id.
|
protected abstract Object |
getObjectInternal(Object obj,
int metaType,
Object arg,
Joins joins)
Return the value stored in the given id or column.
|
OffsetDateTime |
getOffsetDateTime(Object obj)
Return the value stored in the given column or id.
|
protected OffsetDateTime |
getOffsetDateTimeInternal(Object obj,
Joins joins) |
OffsetTime |
getOffsetTime(Object obj)
Return the value stored in the given column or id.
|
protected OffsetTime |
getOffsetTimeInternal(Object obj,
Joins joins) |
Ref |
getRef(Column col,
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.
|
Ref |
getRef(Object obj,
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 Ref |
getRefInternal(Object obj,
Map map,
Joins joins) |
short |
getShort(Column col,
Joins joins)
Return the value stored in the given column.
|
short |
getShort(Object obj)
Return the value stored in the given column or id.
|
protected short |
getShortInternal(Object obj,
Joins joins) |
Object |
getSQLObject(Column col,
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.
|
Object |
getSQLObject(Object obj,
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 Object |
getSQLObjectInternal(Object obj,
Map map,
Joins joins) |
protected abstract Object |
getStreamInternal(JDBCStore store,
Object obj,
int metaType,
Object arg,
Joins joins) |
String |
getString(Column col,
Joins joins)
Return the value stored in the given column.
|
String |
getString(Object obj)
Return the value stored in the given column or id.
|
protected String |
getStringInternal(Object obj,
Joins joins,
boolean isClobString) |
Time |
getTime(Column col,
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.
|
Time |
getTime(Object obj,
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 Time |
getTimeInternal(Object obj,
Calendar cal,
Joins joins) |
Timestamp |
getTimestamp(Column col,
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.
|
Timestamp |
getTimestamp(Object obj,
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 Timestamp |
getTimestampInternal(Object obj,
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.
|
Object |
load(ClassMapping mapping,
JDBCStore store,
JDBCFetchConfiguration fetch)
Load a pc object using the given store manager.
|
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,
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(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(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(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 Object |
translate(Object obj,
Joins joins)
Translate the user-given id or column.
|
boolean |
wasNull()
Return true if the last value fetched was null.
|
public Object getEager(FieldMapping key)
Resultpublic void putEager(FieldMapping key, Object res)
Resultprotected Map getEagerMap(boolean client)
client - whether the client is accessing eager informationprotected void setEagerMap(Map eager)
public void close()
protected void closeEagerMap(Map eager)
public boolean supportsRandomAccess()
throws SQLException
supportsRandomAccess in interface ResultSQLExceptionpublic boolean absolute(int row)
throws SQLException
Resultabsolute in interface ResultSQLExceptionprotected boolean absoluteInternal(int row)
throws SQLException
SQLExceptionpublic boolean next()
throws SQLException
Resultnext in interface ResultSQLExceptionprotected abstract boolean nextInternal()
throws SQLException
SQLExceptionpublic void pushBack()
throws 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.pushBack in interface ResultSQLExceptionpublic Joins newJoins()
public boolean contains(Object obj) throws SQLException
Resultcontains in interface ResultSQLExceptionpublic boolean containsAll(Object[] objs) throws SQLException
ResultcontainsAll in interface ResultSQLExceptionpublic boolean contains(Column col, Joins joins) throws SQLException
Resultcontains in interface ResultSQLExceptionpublic boolean containsAll(Column[] cols, Joins joins) throws SQLException
ResultcontainsAll in interface ResultSQLExceptionprotected abstract boolean containsInternal(Object obj, Joins joins) throws SQLException
translate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins).SQLExceptionprotected boolean containsAllInternal(Object[] objs, Joins joins) throws 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.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 Object getMappedByValue()
ResultgetMappedByValue in interface Resultpublic void setMappedByValue(Object mappedByValue)
ResultsetMappedByValue in interface Resultpublic int indexOf()
Resultpublic void setIndexOf(int idx)
public Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException
Resultload in interface ResultSQLExceptionpublic Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws SQLException
Resultload in interface ResultSQLExceptionpublic Array getArray(Object obj) throws SQLException
ResultgetArray in interface ResultSQLExceptionpublic Array getArray(Column col, Joins joins) throws SQLException
ResultgetArray in interface ResultSQLExceptionprotected Array getArrayInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic InputStream getAsciiStream(Object obj) throws SQLException
ResultgetAsciiStream in interface ResultSQLExceptionpublic InputStream getAsciiStream(Column col, Joins joins) throws SQLException
ResultgetAsciiStream in interface ResultSQLExceptionprotected InputStream getAsciiStreamInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic BigDecimal getBigDecimal(Object obj) throws SQLException
ResultgetBigDecimal in interface ResultSQLExceptionpublic BigDecimal getBigDecimal(Column col, Joins joins) throws SQLException
ResultgetBigDecimal in interface ResultSQLExceptionprotected BigDecimal getBigDecimalInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic BigInteger getBigInteger(Object obj) throws SQLException
ResultgetBigInteger in interface ResultSQLExceptionpublic BigInteger getBigInteger(Column col, Joins joins) throws SQLException
ResultgetBigInteger in interface ResultSQLExceptionprotected BigInteger getBigIntegerInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic InputStream getBinaryStream(Object obj) throws SQLException
ResultgetBinaryStream in interface ResultSQLExceptionpublic InputStream getBinaryStream(Column col, Joins joins) throws SQLException
ResultgetBinaryStream in interface ResultSQLExceptionpublic InputStream getLOBStream(JDBCStore store, Object obj) throws SQLException
getLOBStream in interface ResultSQLExceptionprotected InputStream getBinaryStreamInternal(Object obj, Joins joins) throws SQLException
SQLExceptionprotected InputStream getLOBStreamInternal(JDBCStore store, Object obj, Joins joins) throws SQLException
SQLExceptionpublic Blob getBlob(Object obj) throws SQLException
ResultgetBlob in interface ResultSQLExceptionpublic Blob getBlob(Column col, Joins joins) throws SQLException
ResultgetBlob in interface ResultSQLExceptionprotected Blob getBlobInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic boolean getBoolean(Object obj) throws SQLException
ResultgetBoolean in interface ResultSQLExceptionpublic boolean getBoolean(Column col, Joins joins) throws SQLException
ResultgetBoolean in interface ResultSQLExceptionprotected boolean getBooleanInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic byte getByte(Object obj) throws SQLException
ResultgetByte in interface ResultSQLExceptionpublic byte getByte(Column col, Joins joins) throws SQLException
ResultgetByte in interface ResultSQLExceptionprotected byte getByteInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic byte[] getBytes(Object obj) throws SQLException
ResultgetBytes in interface ResultSQLExceptionpublic byte[] getBytes(Column col, Joins joins) throws SQLException
ResultgetBytes in interface ResultSQLExceptionprotected byte[] getBytesInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Calendar getCalendar(Object obj) throws SQLException
ResultgetCalendar in interface ResultSQLExceptionpublic Calendar getCalendar(Column col, Joins joins) throws SQLException
ResultgetCalendar in interface ResultSQLExceptionprotected Calendar getCalendarInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic LocalDate getLocalDate(Object obj) throws SQLException
ResultgetLocalDate in interface ResultSQLExceptionprotected LocalDate getLocalDateInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic LocalTime getLocalTime(Object obj) throws SQLException
ResultgetLocalTime in interface ResultSQLExceptionprotected LocalTime getLocalTimeInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic LocalDateTime getLocalDateTime(Object obj) throws SQLException
ResultgetLocalDateTime in interface ResultSQLExceptionprotected LocalDateTime getLocalDateTimeInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic OffsetTime getOffsetTime(Object obj) throws SQLException
ResultgetOffsetTime in interface ResultSQLExceptionprotected OffsetTime getOffsetTimeInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic OffsetDateTime getOffsetDateTime(Object obj) throws SQLException
ResultgetOffsetDateTime in interface ResultSQLExceptionprotected OffsetDateTime getOffsetDateTimeInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic char getChar(Object obj) throws SQLException
ResultgetChar in interface ResultSQLExceptionpublic char getChar(Column col, Joins joins) throws SQLException
ResultgetChar in interface ResultSQLExceptionprotected char getCharInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Reader getCharacterStream(Object obj) throws SQLException
ResultgetCharacterStream in interface ResultSQLExceptionpublic Reader getCharacterStream(Column col, Joins joins) throws SQLException
ResultgetCharacterStream in interface ResultSQLExceptionprotected Reader getCharacterStreamInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Clob getClob(Object obj) throws SQLException
ResultgetClob in interface ResultSQLExceptionpublic Clob getClob(Column col, Joins joins) throws SQLException
ResultgetClob in interface ResultSQLExceptionprotected Clob getClobInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Date getDate(Object obj) throws SQLException
ResultgetDate in interface ResultSQLExceptionpublic Date getDate(Column col, Joins joins) throws SQLException
ResultgetDate in interface ResultSQLExceptionprotected Date getDateInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Date getDate(Object obj, Calendar cal) throws SQLException
ResultgetDate in interface ResultSQLExceptionpublic Date getDate(Column col, Calendar cal, Joins joins) throws SQLException
ResultgetDate in interface ResultSQLExceptionprotected Date getDateInternal(Object obj, Calendar cal, Joins joins) throws SQLException
SQLExceptionpublic double getDouble(Object obj) throws SQLException
ResultgetDouble in interface ResultSQLExceptionpublic double getDouble(Column col, Joins joins) throws SQLException
ResultgetDouble in interface ResultSQLExceptionprotected double getDoubleInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic float getFloat(Object obj) throws SQLException
ResultgetFloat in interface ResultSQLExceptionpublic float getFloat(Column col, Joins joins) throws SQLException
ResultgetFloat in interface ResultSQLExceptionprotected float getFloatInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic int getInt(Object obj) throws SQLException
ResultgetInt in interface ResultSQLExceptionpublic int getInt(Column col, Joins joins) throws SQLException
ResultgetInt in interface ResultSQLExceptionprotected int getIntInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Locale getLocale(Object obj) throws SQLException
ResultgetLocale in interface ResultSQLExceptionpublic Locale getLocale(Column col, Joins joins) throws SQLException
ResultgetLocale in interface ResultSQLExceptionprotected Locale getLocaleInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic long getLong(Object obj) throws SQLException
ResultgetLong in interface ResultSQLExceptionpublic long getLong(Column col, Joins joins) throws SQLException
ResultgetLong in interface ResultSQLExceptionprotected long getLongInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Number getNumber(Object obj) throws SQLException
ResultgetNumber in interface ResultSQLExceptionpublic Number getNumber(Column col, Joins joins) throws SQLException
ResultgetNumber in interface ResultSQLExceptionprotected Number getNumberInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic Object getObject(Object obj, int metaType, Object arg) throws 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 MapSQLExceptionpublic Object getObject(Column col, Object arg, Joins joins) throws SQLException
ResultgetObject in interface Resultcol - the column whose data to fetcharg - some JDBC data access methods use an argument, such
as a Calendar or MapSQLExceptionprotected abstract Object getObjectInternal(Object obj, int metaType, Object arg, Joins joins) throws SQLException
SQLExceptionprotected abstract Object getStreamInternal(JDBCStore store, Object obj, int metaType, Object arg, Joins joins) throws SQLException
SQLExceptionpublic Object getSQLObject(Object obj, Map map) throws SQLException
ResultgetSQLObject in interface ResultSQLExceptionpublic Object getSQLObject(Column col, Map map, Joins joins) throws SQLException
ResultgetSQLObject in interface ResultSQLExceptionprotected Object getSQLObjectInternal(Object obj, Map map, Joins joins) throws SQLException
SQLExceptionpublic Ref getRef(Object obj, Map map) throws SQLException
ResultgetRef in interface ResultSQLExceptionpublic Ref getRef(Column col, Map map, Joins joins) throws SQLException
ResultgetRef in interface ResultSQLExceptionprotected Ref getRefInternal(Object obj, Map map, Joins joins) throws SQLException
SQLExceptionpublic short getShort(Object obj) throws SQLException
ResultgetShort in interface ResultSQLExceptionpublic short getShort(Column col, Joins joins) throws SQLException
ResultgetShort in interface ResultSQLExceptionprotected short getShortInternal(Object obj, Joins joins) throws SQLException
SQLExceptionpublic String getString(Object obj) throws SQLException
ResultgetString in interface ResultSQLExceptionpublic String getString(Column col, Joins joins) throws SQLException
ResultgetString in interface ResultSQLExceptionprotected String getStringInternal(Object obj, Joins joins, boolean isClobString) throws SQLException
SQLExceptionpublic Time getTime(Object obj, Calendar cal) throws SQLException
ResultgetTime in interface ResultSQLExceptionpublic Time getTime(Column col, Calendar cal, Joins joins) throws SQLException
ResultgetTime in interface ResultSQLExceptionprotected Time getTimeInternal(Object obj, Calendar cal, Joins joins) throws SQLException
SQLExceptionpublic Timestamp getTimestamp(Object obj, Calendar cal) throws SQLException
ResultgetTimestamp in interface ResultSQLExceptionpublic Timestamp getTimestamp(Column col, Calendar cal, Joins joins) throws SQLException
ResultgetTimestamp in interface ResultSQLExceptionprotected Timestamp getTimestampInternal(Object obj, Calendar cal, Joins joins) throws SQLException
SQLExceptionpublic boolean wasNull()
throws SQLException
ResultwasNull in interface ResultSQLExceptionpublic void setLocking(boolean locking)
ResultsetLocking in interface Resultpublic boolean isLocking()
Resultpublic void startDataRequest(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 Object translate(Object obj, Joins joins) throws SQLException
get*Internal methods with the exception of
getObjectInternal. Return the
original value by default.SQLExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.