public interface SqlAccessor
Each rowOffset parameter specifies the (zero-based) offset (in rows)
of the requested value.
When the requested value is logically a SQL NULL:
isNull(int) to check for null before calling
such methods)
null
(the caller does not need to call isNull(int) to check for nulls)
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getBigDecimal(int rowOffset)
(See
class description.) |
boolean |
getBoolean(int rowOffset)
(See
class description.) |
byte |
getByte(int rowOffset)
(See
class description.) |
byte[] |
getBytes(int rowOffset)
(See
class description.) |
char |
getChar(int rowOffset)
(See
class description.) |
Date |
getDate(int rowOffset)
(See
class description.) |
double |
getDouble(int rowOffset)
(See
class description.) |
float |
getFloat(int rowOffset)
(See
class description.) |
int |
getInt(int rowOffset)
(See
class description.) |
long |
getLong(int rowOffset)
(See
class description.) |
Object |
getObject(int rowOffset)
(See
class description.) |
Class<?> |
getObjectClass()
Reports the class returned by getObject() of this accessor.
|
Reader |
getReader(int rowOffset)
(See
class description.) |
short |
getShort(int rowOffset)
(See
class description.) |
InputStream |
getStream(int rowOffset)
(See
class description.) |
String |
getString(int rowOffset)
(See
class description.) |
Time |
getTime(int rowOffset)
(See
class description.) |
Timestamp |
getTimestamp(int rowOffset)
(See
class description.) |
TypeProtos.MajorType |
getType()
Reports the (native) type of data accessed by this accessor.
|
boolean |
isNull(int rowOffset)
Reports whether the logical value is a SQL NULL.
|
TypeProtos.MajorType getType()
(Some implementations may support more than just the minimum
getType(...) method implied by the type.
Class<?> getObjectClass()
(Is for ResultSetMetaData#getColumnClassName(...).)
boolean isNull(int rowOffset)
BigDecimal getBigDecimal(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionboolean getBoolean(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionbyte getByte(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionbyte[] getBytes(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionDate getDate(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptiondouble getDouble(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionfloat getFloat(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionchar getChar(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionint getInt(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionlong getLong(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionshort getShort(int rowOffset)
throws InvalidAccessException
class description.)InvalidAccessExceptionInputStream getStream(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionReader getReader(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionString getString(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionTime getTime(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionTimestamp getTimestamp(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionObject getObject(int rowOffset) throws InvalidAccessException
class description.)InvalidAccessExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.