Package org.apache.openjpa.jdbc.sql
Class AbstractResult
java.lang.Object
org.apache.openjpa.jdbc.sql.AbstractResult
- Direct Known Subclasses:
ResultSetResult
A
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.- Author:
- Abe White
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) Move to the given 0-based row in the result, or return false if the row does not exist.protected booleanabsoluteInternal(int row) Throws an exception by default.protected Objectvoidclose()Closes all eager results.protected voidcloseEagerMap(Map eager) Close all results in eager map.booleanReturn true if the given id or column is available in the result.booleanReturn true if the given column is available in the result.booleancontainsAll(Object[] objs) Return true if all the given ids or columns are available in the result.booleancontainsAll(Column[] cols, Joins joins) Return true if all the given columns are available in the result.protected booleancontainsAllInternal(Object[] objs, Joins joins) Return whether this result contains data for all the given ids or columns.protected abstract booleancontainsInternal(Object obj, Joins joins) Return whether this result contains data for the given id or column.voidEnds a data request.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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected ArraygetArrayInternal(Object obj, Joins joins) 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.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.protected InputStreamgetAsciiStreamInternal(Object obj, Joins joins) If this is the result of a UNION used to select a hierarchy of mappings, the base mapping represented by the current row.getBigDecimal(Object obj) Return the value stored in the given column or id.getBigDecimal(Column col, Joins joins) Return the value stored in the given column.protected BigDecimalgetBigDecimalInternal(Object obj, Joins joins) getBigInteger(Object obj) Return the value stored in the given column or id.getBigInteger(Column col, Joins joins) Return the value stored in the given column.protected BigIntegergetBigIntegerInternal(Object obj, Joins joins) 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.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.protected InputStreamgetBinaryStreamInternal(Object obj, Joins joins) 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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected BlobgetBlobInternal(Object obj, Joins joins) booleangetBoolean(Object obj) Return the value stored in the given column or id.booleangetBoolean(Column col, Joins joins) Return the value stored in the given column.protected booleangetBooleanInternal(Object obj, Joins joins) byteReturn the value stored in the given column or id.byteReturn the value stored in the given column.protected bytegetByteInternal(Object obj, Joins joins) byte[]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.byte[]Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected byte[]getBytesInternal(Object obj, Joins joins) getCalendar(Object obj) Return the value stored in the given column or id.getCalendar(Column col, Joins joins) Return the value stored in the given column.protected CalendargetCalendarInternal(Object obj, Joins joins) charReturn the value stored in the given column or id.charReturn the value stored in the given column.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.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.protected ReadergetCharacterStreamInternal(Object obj, Joins joins) protected chargetCharInternal(Object obj, Joins joins) 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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected ClobgetClobInternal(Object obj, Joins joins) Return the value stored in the given column or id.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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.Return the value stored in the given column.protected DategetDateInternal(Object obj, Calendar cal, Joins joins) protected DategetDateInternal(Object obj, Joins joins) doubleReturn the value stored in the given column or id.doubleReturn the value stored in the given column.protected doublegetDoubleInternal(Object obj, Joins joins) getEager(FieldMapping key) The eager result for the given key, or null if none.protected MapgetEagerMap(boolean client) Raw eager information.floatReturn the value stored in the given column or id.floatReturn the value stored in the given column.protected floatgetFloatInternal(Object obj, Joins joins) intReturn the value stored in the given column or id.intReturn the value stored in the given column.protected intgetIntInternal(Object obj, Joins joins) getLOBStream(JDBCStore store, Object obj) protected InputStreamgetLOBStreamInternal(JDBCStore store, Object obj, Joins joins) getLocalDate(Object obj) Return the value stored in the given column or id.protected LocalDategetLocalDateInternal(Object obj, Joins joins) getLocalDateTime(Object obj) Return the value stored in the given column or id.protected LocalDateTimegetLocalDateTimeInternal(Object obj, Joins joins) Return the value stored in the given column or id.Return the value stored in the given column.protected LocalegetLocaleInternal(Object obj, Joins joins) getLocalTime(Object obj) Return the value stored in the given column or id.protected LocalTimegetLocalTimeInternal(Object obj, Joins joins) longReturn the value stored in the given column or id.longReturn the value stored in the given column.protected longgetLongInternal(Object obj, Joins joins) If this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship.If this is the result used to select a toMany relationship, the mappedByValue is value of the owner of the toMany relationship.Return the value stored in the given column or id.Return the value stored in the given column.protected NumbergetNumberInternal(Object obj, Joins joins) Return the value stored in the given column or id.Return the value stored in the given column.protected abstract ObjectgetObjectInternal(Object obj, int metaType, Object arg, Joins joins) Return the value stored in the given id or column.getOffsetDateTime(Object obj) Return the value stored in the given column or id.protected OffsetDateTimegetOffsetDateTimeInternal(Object obj, Joins joins) getOffsetTime(Object obj) Return the value stored in the given column or id.protected OffsetTimegetOffsetTimeInternal(Object obj, Joins joins) 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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected RefgetRefInternal(Object obj, Map map, Joins joins) shortReturn the value stored in the given column or id.shortReturn the value stored in the given column.protected shortgetShortInternal(Object obj, Joins joins) 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.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.protected ObjectgetSQLObjectInternal(Object obj, Map map, Joins joins) protected abstract ObjectgetStreamInternal(JDBCStore store, Object obj, int metaType, Object arg, Joins joins) Return the value stored in the given column or id.Return the value stored in the given column.protected StringgetStringInternal(Object obj, Joins joins, boolean isClobString) 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.Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.protected TimegetTimeInternal(Object obj, Calendar cal, Joins joins) 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.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.protected TimestampgetTimestampInternal(Object obj, Calendar cal, Joins joins) intindexOf()The index of the select within the UNION that the current row corresponds to, or 0.booleanIf true, then any results loaded from this Result will be locked in the database.load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) Load a pc object using the given store manager.load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) Load a pc object using the given store manager.newJoins()Returns a no-op joins object by default.booleannext()Advance to the next row, or return false if there are no more rows in the result.protected abstract booleanAdvance this row.voidpushBack()Push back the last result.voidputEager(FieldMapping key, Object res) The eager result for the given key, or null if none.voidsetBaseMapping(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 voidsetEagerMap(Map eager) Raw eager information.voidsetIndexOf(int idx) voidsetLocking(boolean locking) Set to true if row locking has been issued for the row.voidsetMappedByFieldMapping(FieldMapping fieldMapping) If this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship.voidsetMappedByValue(Object mappedByValue) If this is the result used to select a toMany relationship, the mappedByValue is value of the owner of the toMany relationship.voidstartDataRequest(Object mapping) Informs this receiver about the application element for which a subsequent data request will be made.booleanReturns false by default.protected ObjectTranslate the user-given id or column.booleanwasNull()Return true if the last value fetched was null.
-
Constructor Details
-
AbstractResult
public AbstractResult()
-
-
Method Details
-
getEager
Description copied from interface:ResultThe eager result for the given key, or null if none. -
putEager
Description copied from interface:ResultThe eager result for the given key, or null if none. -
getEagerMap
Raw eager information. May be null.- Parameters:
client- whether the client is accessing eager information
-
setEagerMap
Raw eager information. -
close
public void close()Closes all eager results. -
closeEagerMap
Close all results in eager map. -
supportsRandomAccess
Returns false by default.- Specified by:
supportsRandomAccessin interfaceResult- Throws:
SQLException
-
absolute
Description copied from interface:ResultMove to the given 0-based row in the result, or return false if the row does not exist. This method will only be called if the result supports random access.- Specified by:
absolutein interfaceResult- Throws:
SQLException
-
absoluteInternal
Throws an exception by default.- Throws:
SQLException
-
next
Description copied from interface:ResultAdvance to the next row, or return false if there are no more rows in the result.- Specified by:
nextin interfaceResult- Throws:
SQLException
-
nextInternal
Advance this row.- Throws:
SQLException
-
pushBack
Description copied from interface:ResultPush back the last result. In other words, just ignore the next call toResult.next(). After the first time this method is called, additional calls before a call toResult.next()orResult.absolute(int)should have no further affect.- Specified by:
pushBackin interfaceResult- Throws:
SQLException
-
newJoins
Returns a no-op joins object by default. -
contains
Description copied from interface:ResultReturn true if the given id or column is available in the result.- Specified by:
containsin interfaceResult- Throws:
SQLException
-
containsAll
Description copied from interface:ResultReturn true if all the given ids or columns are available in the result.- Specified by:
containsAllin interfaceResult- Throws:
SQLException
-
contains
Description copied from interface:ResultReturn true if the given column is available in the result.- Specified by:
containsin interfaceResult- Throws:
SQLException
-
containsAll
Description copied from interface:ResultReturn true if all the given columns are available in the result.- Specified by:
containsAllin interfaceResult- Throws:
SQLException
-
containsInternal
Return whether this result contains data for the given id or column. The id or column has not beed passed throughtranslate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins).- Throws:
SQLException
-
containsAllInternal
Return whether this result contains data for all the given ids or columns. The ids or columns have not been passed throughtranslate(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins). Delegates tocontainsInternal(java.lang.Object, org.apache.openjpa.jdbc.sql.Joins)by default.- Throws:
SQLException
-
getBaseMapping
Description copied from interface:ResultIf this is the result of a UNION used to select a hierarchy of mappings, the base mapping represented by the current row. This information is not available after getting any eager results from the row.- Specified by:
getBaseMappingin interfaceResult
-
setBaseMapping
Description copied from interface:ResultIf this is the result of a UNION used to select a hierarchy of mappings, the base mapping represented by the current row. This information is not available after getting any eager results from the row.- Specified by:
setBaseMappingin interfaceResult
-
getMappedByFieldMapping
Description copied from interface:ResultIf this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship. This is to avoid unneeded extra sql to retrieve the eager inverse field.- Specified by:
getMappedByFieldMappingin interfaceResult
-
setMappedByFieldMapping
Description copied from interface:ResultIf this is the result used to select a toMany relationship, the mappedByFieldMapping is field mapping representing the inverse relationship. This is to avoid unneeded extra sql to retrieve the eager inverse field.- Specified by:
setMappedByFieldMappingin interfaceResult
-
getMappedByValue
Description copied from interface:ResultIf this is the result used to select a toMany relationship, the mappedByValue is value of the owner of the toMany relationship. This is to avoid unneeded extra sql to retrieve the eager inverse field.- Specified by:
getMappedByValuein interfaceResult
-
setMappedByValue
Description copied from interface:ResultIf this is the result used to select a toMany relationship, the mappedByValue is value of the owner of the toMany relationship. This is to avoid unneeded extra sql to retrieve the eager inverse field.- Specified by:
setMappedByValuein interfaceResult
-
indexOf
public int indexOf()Description copied from interface:ResultThe index of the select within the UNION that the current row corresponds to, or 0. -
setIndexOf
public void setIndexOf(int idx) -
load
public Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException Description copied from interface:ResultLoad a pc object using the given store manager.- Specified by:
loadin interfaceResult- Throws:
SQLException
-
load
public Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws SQLException Description copied from interface:ResultLoad a pc object using the given store manager.- Specified by:
loadin interfaceResult- Throws:
SQLException
-
getArray
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getArrayin interfaceResult- Throws:
SQLException
-
getArray
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getArrayin interfaceResult- Throws:
SQLException
-
getArrayInternal
- Throws:
SQLException
-
getAsciiStream
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getAsciiStreamin interfaceResult- Throws:
SQLException
-
getAsciiStream
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getAsciiStreamin interfaceResult- Throws:
SQLException
-
getAsciiStreamInternal
- Throws:
SQLException
-
getBigDecimal
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getBigDecimalin interfaceResult- Throws:
SQLException
-
getBigDecimal
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getBigDecimalin interfaceResult- Throws:
SQLException
-
getBigDecimalInternal
- Throws:
SQLException
-
getBigInteger
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getBigIntegerin interfaceResult- Throws:
SQLException
-
getBigInteger
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getBigIntegerin interfaceResult- Throws:
SQLException
-
getBigIntegerInternal
- Throws:
SQLException
-
getBinaryStream
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBinaryStreamin interfaceResult- Throws:
SQLException
-
getBinaryStream
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBinaryStreamin interfaceResult- Throws:
SQLException
-
getLOBStream
- Specified by:
getLOBStreamin interfaceResult- Throws:
SQLException
-
getBinaryStreamInternal
- Throws:
SQLException
-
getLOBStreamInternal
protected InputStream getLOBStreamInternal(JDBCStore store, Object obj, Joins joins) throws SQLException - Throws:
SQLException
-
getBlob
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBlobin interfaceResult- Throws:
SQLException
-
getBlob
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBlobin interfaceResult- Throws:
SQLException
-
getBlobInternal
- Throws:
SQLException
-
getBoolean
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getBooleanin interfaceResult- Throws:
SQLException
-
getBoolean
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getBooleanin interfaceResult- Throws:
SQLException
-
getBooleanInternal
- Throws:
SQLException
-
getByte
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getBytein interfaceResult- Throws:
SQLException
-
getByte
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getBytein interfaceResult- Throws:
SQLException
-
getByteInternal
- Throws:
SQLException
-
getBytes
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBytesin interfaceResult- Throws:
SQLException
-
getBytes
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBytesin interfaceResult- Throws:
SQLException
-
getBytesInternal
- Throws:
SQLException
-
getCalendar
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getCalendarin interfaceResult- Throws:
SQLException
-
getCalendar
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getCalendarin interfaceResult- Throws:
SQLException
-
getCalendarInternal
- Throws:
SQLException
-
getLocalDate
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getLocalDatein interfaceResult- Throws:
SQLException
-
getLocalDateInternal
- Throws:
SQLException
-
getLocalTime
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getLocalTimein interfaceResult- Throws:
SQLException
-
getLocalTimeInternal
- Throws:
SQLException
-
getLocalDateTime
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getLocalDateTimein interfaceResult- Throws:
SQLException
-
getLocalDateTimeInternal
- Throws:
SQLException
-
getOffsetTime
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getOffsetTimein interfaceResult- Throws:
SQLException
-
getOffsetTimeInternal
- Throws:
SQLException
-
getOffsetDateTime
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getOffsetDateTimein interfaceResult- Throws:
SQLException
-
getOffsetDateTimeInternal
- Throws:
SQLException
-
getChar
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getCharin interfaceResult- Throws:
SQLException
-
getChar
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getCharin interfaceResult- Throws:
SQLException
-
getCharInternal
- Throws:
SQLException
-
getCharacterStream
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getCharacterStreamin interfaceResult- Throws:
SQLException
-
getCharacterStream
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getCharacterStreamin interfaceResult- Throws:
SQLException
-
getCharacterStreamInternal
- Throws:
SQLException
-
getClob
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getClobin interfaceResult- Throws:
SQLException
-
getClob
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getClobin interfaceResult- Throws:
SQLException
-
getClobInternal
- Throws:
SQLException
-
getDate
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getDatein interfaceResult- Throws:
SQLException
-
getDate
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getDatein interfaceResult- Throws:
SQLException
-
getDateInternal
- Throws:
SQLException
-
getDate
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getDatein interfaceResult- Throws:
SQLException
-
getDate
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getDatein interfaceResult- Throws:
SQLException
-
getDateInternal
- Throws:
SQLException
-
getDouble
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getDoublein interfaceResult- Throws:
SQLException
-
getDouble
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getDoublein interfaceResult- Throws:
SQLException
-
getDoubleInternal
- Throws:
SQLException
-
getFloat
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getFloatin interfaceResult- Throws:
SQLException
-
getFloat
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getFloatin interfaceResult- Throws:
SQLException
-
getFloatInternal
- Throws:
SQLException
-
getInt
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getIntin interfaceResult- Throws:
SQLException
-
getInt
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getIntin interfaceResult- Throws:
SQLException
-
getIntInternal
- Throws:
SQLException
-
getLocale
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getLocalein interfaceResult- Throws:
SQLException
-
getLocale
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getLocalein interfaceResult- Throws:
SQLException
-
getLocaleInternal
- Throws:
SQLException
-
getLong
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getLongin interfaceResult- Throws:
SQLException
-
getLong
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getLongin interfaceResult- Throws:
SQLException
-
getLongInternal
- Throws:
SQLException
-
getNumber
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getNumberin interfaceResult- Throws:
SQLException
-
getNumber
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getNumberin interfaceResult- Throws:
SQLException
-
getNumberInternal
- Throws:
SQLException
-
getObject
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getObjectin interfaceResult- Parameters:
obj- the column or id whose data to fetchmetaType- the type code fromJavaTypesorJavaSQLTypesfor the type of the data; ifobjis a column, you may specify -1 to use the column's recorded java typearg- some JDBC data access methods use an argument, such as aCalendarorMap- Throws:
SQLException
-
getObject
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getObjectin interfaceResult- Parameters:
col- the column whose data to fetcharg- some JDBC data access methods use an argument, such as aCalendarorMap- Throws:
SQLException
-
getObjectInternal
protected abstract Object getObjectInternal(Object obj, int metaType, Object arg, Joins joins) throws SQLException Return the value stored in the given id or column.- Throws:
SQLException
-
getStreamInternal
protected abstract Object getStreamInternal(JDBCStore store, Object obj, int metaType, Object arg, Joins joins) throws SQLException - Throws:
SQLException
-
getSQLObject
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getSQLObjectin interfaceResult- Throws:
SQLException
-
getSQLObject
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getSQLObjectin interfaceResult- Throws:
SQLException
-
getSQLObjectInternal
- Throws:
SQLException
-
getRef
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getRefin interfaceResult- Throws:
SQLException
-
getRef
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getRefin interfaceResult- Throws:
SQLException
-
getRefInternal
- Throws:
SQLException
-
getShort
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getShortin interfaceResult- Throws:
SQLException
-
getShort
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getShortin interfaceResult- Throws:
SQLException
-
getShortInternal
- Throws:
SQLException
-
getString
Description copied from interface:ResultReturn the value stored in the given column or id.- Specified by:
getStringin interfaceResult- Throws:
SQLException
-
getString
Description copied from interface:ResultReturn the value stored in the given column.- Specified by:
getStringin interfaceResult- Throws:
SQLException
-
getStringInternal
protected String getStringInternal(Object obj, Joins joins, boolean isClobString) throws SQLException - Throws:
SQLException
-
getTime
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTimein interfaceResult- Throws:
SQLException
-
getTime
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTimein interfaceResult- Throws:
SQLException
-
getTimeInternal
- Throws:
SQLException
-
getTimestamp
Description copied from interface:ResultReturn the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTimestampin interfaceResult- Throws:
SQLException
-
getTimestamp
Description copied from interface:ResultReturn the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTimestampin interfaceResult- Throws:
SQLException
-
getTimestampInternal
- Throws:
SQLException
-
wasNull
Description copied from interface:ResultReturn true if the last value fetched was null.- Specified by:
wasNullin interfaceResult- Throws:
SQLException
-
checkNull
-
setLocking
public void setLocking(boolean locking) Description copied from interface:ResultSet to true if row locking has been issued for the row.- Specified by:
setLockingin interfaceResult
-
isLocking
public boolean isLocking()Description copied from interface:ResultIf true, then any results loaded from this Result will be locked in the database. -
startDataRequest
Description copied from interface:ResultInforms this receiver about the application element for which a subsequent data request will be made.- Specified by:
startDataRequestin interfaceResult
-
endDataRequest
public void endDataRequest()Description copied from interface:ResultEnds a data request. Must be called in conjunction withResult.startDataRequest(java.lang.Object). The calls can be nested as follws
startDataRequest (relation); startDataRequest (relationsField); getObject("COLUMN_Y"); endDataRequest (); endDataRequest ();- Specified by:
endDataRequestin interfaceResult
-
translate
Translate the user-given id or column. This method is called before delegating to anyget*Internalmethods with the exception ofgetObjectInternal. Return the original value by default.- Throws:
SQLException
-