Interface SqlAccessor
- All Known Implementing Classes:
AbstractSqlAccessor
,BigIntAccessor
,BitAccessor
,BoundCheckingAccessor
,DateAccessor
,Decimal18Accessor
,Decimal28DenseAccessor
,Decimal28SparseAccessor
,Decimal38DenseAccessor
,Decimal38SparseAccessor
,Decimal9Accessor
,Float4Accessor
,Float8Accessor
,GenericAccessor
,IntAccessor
,IntervalAccessor
,IntervalDayAccessor
,IntervalYearAccessor
,NullableBigIntAccessor
,NullableBitAccessor
,NullableDateAccessor
,NullableDecimal18Accessor
,NullableDecimal28DenseAccessor
,NullableDecimal28SparseAccessor
,NullableDecimal38DenseAccessor
,NullableDecimal38SparseAccessor
,NullableDecimal9Accessor
,NullableFloat4Accessor
,NullableFloat8Accessor
,NullableIntAccessor
,NullableIntervalAccessor
,NullableIntervalDayAccessor
,NullableIntervalYearAccessor
,NullableSmallIntAccessor
,NullableTimeAccessor
,NullableTimeStampAccessor
,NullableTinyIntAccessor
,NullableUInt1Accessor
,NullableUInt2Accessor
,NullableUInt4Accessor
,NullableUInt8Accessor
,NullableVar16CharAccessor
,NullableVarBinaryAccessor
,NullableVarCharAccessor
,NullableVarDecimalAccessor
,SmallIntAccessor
,TimeAccessor
,TimeStampAccessor
,TinyIntAccessor
,UInt1Accessor
,UInt2Accessor
,UInt4Accessor
,UInt8Accessor
,UnionSqlAccessor
,Var16CharAccessor
,VarBinaryAccessor
,VarCharAccessor
,VarDecimalAccessor
public interface SqlAccessor
Column-data accessor that implements JDBC's Java-null--when--SQL-NULL mapping.
a get method that return primitive type throws an exception (callers are
responsible for calling
a get method that returns a non-primitive type returns Java
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)
-
Method Summary
Modifier and TypeMethodDescriptiongetBigDecimal
(int rowOffset) (Seeclass description
.)boolean
getBoolean
(int rowOffset) (Seeclass description
.)byte
getByte
(int rowOffset) (Seeclass description
.)byte[]
getBytes
(int rowOffset) (Seeclass description
.)char
getChar
(int rowOffset) (Seeclass description
.)getDate
(int rowOffset) (Seeclass description
.)double
getDouble
(int rowOffset) (Seeclass description
.)float
getFloat
(int rowOffset) (Seeclass description
.)int
getInt
(int rowOffset) (Seeclass description
.)long
getLong
(int rowOffset) (Seeclass description
.)getObject
(int rowOffset) (Seeclass description
.)Class<?>
Reports the class returned by getObject() of this accessor.getReader
(int rowOffset) (Seeclass description
.)short
getShort
(int rowOffset) (Seeclass description
.)getStream
(int rowOffset) (Seeclass description
.)getString
(int rowOffset) (Seeclass description
.)getTime
(int rowOffset) (Seeclass description
.)getTimestamp
(int rowOffset) (Seeclass description
.)getType()
Reports the (native) type of data accessed by this accessor.boolean
isNull
(int rowOffset) Reports whether the logical value is a SQL NULL.
-
Method Details
-
getType
TypeProtos.MajorType getType()Reports the (native) type of data accessed by this accessor.(Some implementations may support more than just the minimum
getType(...)
method implied by the type. -
getObjectClass
Class<?> getObjectClass()Reports the class returned by getObject() of this accessor.(Is for {@link ResultSetMetaData#getColumnClassName(...)}.)
-
isNull
boolean isNull(int rowOffset) Reports whether the logical value is a SQL NULL. -
getBigDecimal
(Seeclass description
.)- Throws:
InvalidAccessException
-
getBoolean
(Seeclass description
.)- Throws:
InvalidAccessException
-
getByte
(Seeclass description
.)- Throws:
InvalidAccessException
-
getBytes
(Seeclass description
.)- Throws:
InvalidAccessException
-
getDate
(Seeclass description
.)- Throws:
InvalidAccessException
-
getDouble
(Seeclass description
.)- Throws:
InvalidAccessException
-
getFloat
(Seeclass description
.)- Throws:
InvalidAccessException
-
getChar
(Seeclass description
.)- Throws:
InvalidAccessException
-
getInt
(Seeclass description
.)- Throws:
InvalidAccessException
-
getLong
(Seeclass description
.)- Throws:
InvalidAccessException
-
getShort
(Seeclass description
.)- Throws:
InvalidAccessException
-
getStream
(Seeclass description
.)- Throws:
InvalidAccessException
-
getReader
(Seeclass description
.)- Throws:
InvalidAccessException
-
getString
(Seeclass description
.)- Throws:
InvalidAccessException
-
getTime
(Seeclass description
.)- Throws:
InvalidAccessException
-
getTimestamp
(Seeclass description
.)- Throws:
InvalidAccessException
-
getObject
(Seeclass description
.)- Throws:
InvalidAccessException
-