Package org.apache.openjpa.jdbc.sql
Class MergedResult
- java.lang.Object
-
- org.apache.openjpa.jdbc.sql.MergedResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MergedResult.ResultComparator
Comparator for ordering result rows.
-
Constructor Summary
Constructors Constructor Description MergedResult(Result[] res)
Constructor; supply delegates.MergedResult(Result[] res, MergedResult.ResultComparator comp)
Constructor; supply delegates and comparator for ordering results.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
absolute(int row)
Move to the given 0-based row in the result, or return false if the row does not exist.void
close()
Free the resources used by this result; do not close the SQL connection.boolean
contains(Object obj)
Return true if the given id or column is available in the result.boolean
contains(Column col, Joins joins)
Return true if the given column is available in the result.boolean
containsAll(Object[] objs)
Return true if all the given ids or columns are available in the result.boolean
containsAll(Column[] cols, Joins joins)
Return true if all the given columns are available in the result.void
endDataRequest()
Ends a data request.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.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.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.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.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(Object obj)
Return the value stored in the given column or id.BigDecimal
getBigDecimal(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.BigInteger
getBigInteger(Column col, Joins joins)
Return the value stored in the given column.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.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.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.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.boolean
getBoolean(Object obj)
Return the value stored in the given column or id.boolean
getBoolean(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.byte
getByte(Column col, Joins joins)
Return the value stored in the given column.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.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.Calendar
getCalendar(Object obj)
Return the value stored in the given column or id.Calendar
getCalendar(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.char
getChar(Column col, Joins joins)
Return the value stored in the given column.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.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.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.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.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.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.double
getDouble(Object obj)
Return the value stored in the given column or id.double
getDouble(Column col, Joins joins)
Return the value stored in the given column.Object
getEager(FieldMapping key)
The eager result for the given key, or null if none.float
getFloat(Object obj)
Return the value stored in the given column or id.float
getFloat(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.int
getInt(Column col, Joins joins)
Return the value stored in the given column.InputStream
getLOBStream(JDBCStore store, Object obj)
LocalDate
getLocalDate(Object obj)
Return the value stored in the given column or id.LocalDateTime
getLocalDateTime(Object obj)
Return the value stored in the given column or id.Locale
getLocale(Object obj)
Return the value stored in the given column or id.Locale
getLocale(Column col, Joins joins)
Return the value stored in the given column.LocalTime
getLocalTime(Object obj)
Return the value stored in the given column or id.long
getLong(Object obj)
Return the value stored in the given column or id.long
getLong(Column col, Joins joins)
Return the value stored in the given column.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(Object obj)
Return the value stored in the given column or id.Number
getNumber(Column col, 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.Object
getObject(Column col, Object arg, Joins joins)
Return the value stored in the given column.OffsetDateTime
getOffsetDateTime(Object obj)
Return the value stored in the given column or id.OffsetTime
getOffsetTime(Object obj)
Return the value stored in the given column or id.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.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.short
getShort(Object obj)
Return the value stored in the given column or id.short
getShort(Column col, Joins joins)
Return the value stored in the given column.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.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.String
getString(Object obj)
Return the value stored in the given column or id.String
getString(Column col, Joins joins)
Return the value stored in the given column.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.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.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.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.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()
Return a new joins instance to use for traversing to related data.boolean
next()
Advance to the next row, or return false if there are no more rows in the result.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 mapping)
If this is the result of a UNION used to select a hierarchy of mappings, the base mapping represented by the current row.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.int
size()
Return the number of rows in this result.void
startDataRequest(Object mapping)
Informs this receiver about the application element for which a subsequent data request will be made.boolean
supportsRandomAccess()
Return true if the result supports random access.boolean
wasNull()
Return true if the last value fetched was null.
-
-
-
Constructor Detail
-
MergedResult
public MergedResult(Result[] res)
Constructor; supply delegates.
-
MergedResult
public MergedResult(Result[] res, MergedResult.ResultComparator comp)
Constructor; supply delegates and comparator for ordering results.
-
-
Method Detail
-
getEager
public Object getEager(FieldMapping key)
Description copied from interface:Result
The eager result for the given key, or null if none.
-
putEager
public void putEager(FieldMapping key, Object res)
Description copied from interface:Result
The eager result for the given key, or null if none.
-
newJoins
public Joins newJoins()
Description copied from interface:Result
Return a new joins instance to use for traversing to related data.
-
close
public void close()
Description copied from interface:Result
Free the resources used by this result; do not close the SQL connection.
-
setLocking
public void setLocking(boolean locking)
Description copied from interface:Result
Set to true if row locking has been issued for the row.- Specified by:
setLocking
in interfaceResult
-
isLocking
public boolean isLocking()
Description copied from interface:Result
If true, then any results loaded from this Result will be locked in the database.
-
supportsRandomAccess
public boolean supportsRandomAccess() throws SQLException
Description copied from interface:Result
Return true if the result supports random access.- Specified by:
supportsRandomAccess
in interfaceResult
- Throws:
SQLException
-
absolute
public boolean absolute(int row) throws SQLException
Description copied from interface:Result
Move 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:
absolute
in interfaceResult
- Throws:
SQLException
-
next
public boolean next() throws SQLException
Description copied from interface:Result
Advance to the next row, or return false if there are no more rows in the result.- Specified by:
next
in interfaceResult
- Throws:
SQLException
-
pushBack
public void pushBack() throws SQLException
Description copied from interface:Result
Push 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:
pushBack
in interfaceResult
- Throws:
SQLException
-
size
public int size() throws SQLException
Description copied from interface:Result
Return the number of rows in this result.- Specified by:
size
in interfaceResult
- Throws:
SQLException
-
contains
public boolean contains(Object obj) throws SQLException
Description copied from interface:Result
Return true if the given id or column is available in the result.- Specified by:
contains
in interfaceResult
- Throws:
SQLException
-
containsAll
public boolean containsAll(Object[] objs) throws SQLException
Description copied from interface:Result
Return true if all the given ids or columns are available in the result.- Specified by:
containsAll
in interfaceResult
- Throws:
SQLException
-
contains
public boolean contains(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return true if the given column is available in the result.- Specified by:
contains
in interfaceResult
- Throws:
SQLException
-
containsAll
public boolean containsAll(Column[] cols, Joins joins) throws SQLException
Description copied from interface:Result
Return true if all the given columns are available in the result.- Specified by:
containsAll
in interfaceResult
- Throws:
SQLException
-
getBaseMapping
public ClassMapping getBaseMapping()
Description copied from interface:Result
If 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:
getBaseMapping
in interfaceResult
-
setBaseMapping
public void setBaseMapping(ClassMapping mapping)
Description copied from interface:Result
If 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:
setBaseMapping
in interfaceResult
-
getMappedByFieldMapping
public FieldMapping getMappedByFieldMapping()
Description copied from interface:Result
If 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:
getMappedByFieldMapping
in interfaceResult
-
setMappedByFieldMapping
public void setMappedByFieldMapping(FieldMapping fieldMapping)
Description copied from interface:Result
If 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:
setMappedByFieldMapping
in interfaceResult
-
getMappedByValue
public Object getMappedByValue()
Description copied from interface:Result
If 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:
getMappedByValue
in interfaceResult
-
setMappedByValue
public void setMappedByValue(Object mappedByValue)
Description copied from interface:Result
If 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:
setMappedByValue
in interfaceResult
-
indexOf
public int indexOf()
Description copied from interface:Result
The index of the select within the UNION that the current row corresponds to, or 0.
-
load
public Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException
Description copied from interface:Result
Load a pc object using the given store manager.- Specified by:
load
in interfaceResult
- Throws:
SQLException
-
load
public Object load(ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) throws SQLException
Description copied from interface:Result
Load a pc object using the given store manager.- Specified by:
load
in interfaceResult
- Throws:
SQLException
-
getArray
public Array getArray(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getArray
in interfaceResult
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getAsciiStream
in interfaceResult
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getBigDecimal
in interfaceResult
- Throws:
SQLException
-
getBigInteger
public BigInteger getBigInteger(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getBigInteger
in interfaceResult
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getBinaryStream
in interfaceResult
- Throws:
SQLException
-
getLOBStream
public InputStream getLOBStream(JDBCStore store, Object obj) throws SQLException
- Specified by:
getLOBStream
in interfaceResult
- Throws:
SQLException
-
getBlob
public Blob getBlob(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getBlob
in interfaceResult
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getBoolean
in interfaceResult
- Throws:
SQLException
-
getByte
public byte getByte(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getByte
in interfaceResult
- Throws:
SQLException
-
getBytes
public byte[] getBytes(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getBytes
in interfaceResult
- Throws:
SQLException
-
getCalendar
public Calendar getCalendar(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getCalendar
in interfaceResult
- Throws:
SQLException
-
getLocalDate
public LocalDate getLocalDate(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getLocalDate
in interfaceResult
- Throws:
SQLException
-
getLocalTime
public LocalTime getLocalTime(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getLocalTime
in interfaceResult
- Throws:
SQLException
-
getLocalDateTime
public LocalDateTime getLocalDateTime(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getLocalDateTime
in interfaceResult
- Throws:
SQLException
-
getOffsetTime
public OffsetTime getOffsetTime(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getOffsetTime
in interfaceResult
- Throws:
SQLException
-
getOffsetDateTime
public OffsetDateTime getOffsetDateTime(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getOffsetDateTime
in interfaceResult
- Throws:
SQLException
-
getChar
public char getChar(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getChar
in interfaceResult
- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getCharacterStream
in interfaceResult
- Throws:
SQLException
-
getClob
public Clob getClob(Object obj) throws SQLException
Description copied from interface:Result
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.- Specified by:
getClob
in interfaceResult
- Throws:
SQLException
-
getDate
public Date getDate(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getDate
in interfaceResult
- Throws:
SQLException
-
getDate
public Date getDate(Object obj, Calendar cal) throws SQLException
Description copied from interface:Result
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.- Specified by:
getDate
in interfaceResult
- Throws:
SQLException
-
getDouble
public double getDouble(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getDouble
in interfaceResult
- Throws:
SQLException
-
getFloat
public float getFloat(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getFloat
in interfaceResult
- Throws:
SQLException
-
getInt
public int getInt(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getInt
in interfaceResult
- Throws:
SQLException
-
getLocale
public Locale getLocale(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getLocale
in interfaceResult
- Throws:
SQLException
-
getLong
public long getLong(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getLong
in interfaceResult
- Throws:
SQLException
-
getNumber
public Number getNumber(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getNumber
in interfaceResult
- Throws:
SQLException
-
getObject
public Object getObject(Object obj, int metaType, Object arg) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getObject
in interfaceResult
- Parameters:
obj
- the column or id whose data to fetchmetaType
- the type code fromJavaTypes
orJavaSQLTypes
for the type of the data; ifobj
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 aCalendar
orMap
- Throws:
SQLException
-
getSQLObject
public Object getSQLObject(Object obj, Map map) throws SQLException
Description copied from interface:Result
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.- Specified by:
getSQLObject
in interfaceResult
- Throws:
SQLException
-
getRef
public Ref getRef(Object obj, Map map) throws SQLException
Description copied from interface:Result
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.- Specified by:
getRef
in interfaceResult
- Throws:
SQLException
-
getShort
public short getShort(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getShort
in interfaceResult
- Throws:
SQLException
-
getString
public String getString(Object obj) throws SQLException
Description copied from interface:Result
Return the value stored in the given column or id.- Specified by:
getString
in interfaceResult
- Throws:
SQLException
-
getTime
public Time getTime(Object obj, Calendar cal) throws SQLException
Description copied from interface:Result
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.- Specified by:
getTime
in interfaceResult
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(Object obj, Calendar cal) throws SQLException
Description copied from interface:Result
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.- Specified by:
getTimestamp
in interfaceResult
- Throws:
SQLException
-
getArray
public Array getArray(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getArray
in interfaceResult
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getAsciiStream
in interfaceResult
- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getBigDecimal
in interfaceResult
- Throws:
SQLException
-
getBigInteger
public BigInteger getBigInteger(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getBigInteger
in interfaceResult
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBinaryStream
in interfaceResult
- Throws:
SQLException
-
getBlob
public Blob getBlob(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBlob
in interfaceResult
- Throws:
SQLException
-
getBoolean
public boolean getBoolean(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getBoolean
in interfaceResult
- Throws:
SQLException
-
getByte
public byte getByte(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getByte
in interfaceResult
- Throws:
SQLException
-
getBytes
public byte[] getBytes(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getBytes
in interfaceResult
- Throws:
SQLException
-
getCalendar
public Calendar getCalendar(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getCalendar
in interfaceResult
- Throws:
SQLException
-
getChar
public char getChar(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getChar
in interfaceResult
- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getCharacterStream
in interfaceResult
- Throws:
SQLException
-
getClob
public Clob getClob(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getClob
in interfaceResult
- Throws:
SQLException
-
getDate
public Date getDate(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getDate
in interfaceResult
- Throws:
SQLException
-
getDate
public Date getDate(Column col, Calendar cal, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getDate
in interfaceResult
- Throws:
SQLException
-
getDouble
public double getDouble(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getDouble
in interfaceResult
- Throws:
SQLException
-
getFloat
public float getFloat(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getFloat
in interfaceResult
- Throws:
SQLException
-
getInt
public int getInt(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getInt
in interfaceResult
- Throws:
SQLException
-
getLocale
public Locale getLocale(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getLocale
in interfaceResult
- Throws:
SQLException
-
getLong
public long getLong(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getLong
in interfaceResult
- Throws:
SQLException
-
getNumber
public Number getNumber(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getNumber
in interfaceResult
- Throws:
SQLException
-
getObject
public Object getObject(Column col, Object arg, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getObject
in interfaceResult
- Parameters:
col
- the column whose data to fetcharg
- some JDBC data access methods use an argument, such as aCalendar
orMap
- Throws:
SQLException
-
getSQLObject
public Object getSQLObject(Column col, Map map, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getSQLObject
in interfaceResult
- Throws:
SQLException
-
getRef
public Ref getRef(Column col, Map map, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getRef
in interfaceResult
- Throws:
SQLException
-
getShort
public short getShort(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getShort
in interfaceResult
- Throws:
SQLException
-
getString
public String getString(Column col, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column.- Specified by:
getString
in interfaceResult
- Throws:
SQLException
-
getTime
public Time getTime(Column col, Calendar cal, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTime
in interfaceResult
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(Column col, Calendar cal, Joins joins) throws SQLException
Description copied from interface:Result
Return the value stored in the given column; may not be supported by results that are not backed by a SQL result set.- Specified by:
getTimestamp
in interfaceResult
- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException
Description copied from interface:Result
Return true if the last value fetched was null.- Specified by:
wasNull
in interfaceResult
- Throws:
SQLException
-
startDataRequest
public void startDataRequest(Object mapping)
Description copied from interface:Result
Informs this receiver about the application element for which a subsequent data request will be made.- Specified by:
startDataRequest
in interfaceResult
-
endDataRequest
public void endDataRequest()
Description copied from interface:Result
Ends 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:
endDataRequest
in interfaceResult
-
-