Package org.apache.calcite.avatica.util
Class AbstractCursor.AccessorImpl
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- All Implemented Interfaces:
Cursor.Accessor
- Direct Known Subclasses:
AbstractCursor.ApproximateNumericAccessor,AbstractCursor.ArrayAccessor,AbstractCursor.BigNumberAccessor,AbstractCursor.BinaryAccessor,AbstractCursor.ExactNumericAccessor,AbstractCursor.ObjectAccessor,AbstractCursor.StringAccessor,AbstractCursor.StructAccessor
- Enclosing class:
- AbstractCursor
static class AbstractCursor.AccessorImpl extends java.lang.Object implements Cursor.Accessor
Implementation ofCursor.Accessor.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractCursor.Gettergetter
-
Constructor Summary
Constructors Constructor Description AccessorImpl(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.sql.SQLExceptioncannotConvert(java.lang.String targetType)java.sql.ArraygetArray()java.io.InputStreamgetAsciiStream()java.math.BigDecimalgetBigDecimal()java.math.BigDecimalgetBigDecimal(int scale)java.io.InputStreamgetBinaryStream()java.sql.BlobgetBlob()booleangetBoolean()bytegetByte()byte[]getBytes()java.io.ReadergetCharacterStream()java.sql.ClobgetClob()java.sql.DategetDate(java.util.Calendar calendar)doublegetDouble()floatgetFloat()intgetInt()longgetLong()java.io.ReadergetNCharacterStream()java.sql.NClobgetNClob()java.lang.StringgetNString()java.lang.ObjectgetObject()<T> TgetObject(java.lang.Class<T> type)java.lang.ObjectgetObject(java.util.Map<java.lang.String,java.lang.Class<?>> map)java.sql.RefgetRef()shortgetShort()java.sql.SQLXMLgetSQLXML()java.lang.StringgetString()java.sql.StructgetStruct()java.sql.TimegetTime(java.util.Calendar calendar)java.sql.TimestampgetTimestamp(java.util.Calendar calendar)java.io.InputStreamgetUnicodeStream()java.net.URLgetURL()booleanwasNull()
-
-
-
Field Detail
-
getter
protected final AbstractCursor.Getter getter
-
-
Constructor Detail
-
AccessorImpl
AccessorImpl(AbstractCursor.Getter getter)
-
-
Method Detail
-
wasNull
public boolean wasNull() throws java.sql.SQLException- Specified by:
wasNullin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException- Specified by:
getStringin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean() throws java.sql.SQLException- Specified by:
getBooleanin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getByte
public byte getByte() throws java.sql.SQLException- Specified by:
getBytein interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getShort
public short getShort() throws java.sql.SQLException- Specified by:
getShortin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getInt
public int getInt() throws java.sql.SQLException- Specified by:
getIntin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException- Specified by:
getLongin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getFloat
public float getFloat() throws java.sql.SQLException- Specified by:
getFloatin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getDouble
public double getDouble() throws java.sql.SQLException- Specified by:
getDoublein interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLException- Specified by:
getBigDecimalin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int scale) throws java.sql.SQLException- Specified by:
getBigDecimalin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes() throws java.sql.SQLException- Specified by:
getBytesin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream() throws java.sql.SQLException- Specified by:
getAsciiStreamin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getUnicodeStream
public java.io.InputStream getUnicodeStream() throws java.sql.SQLException- Specified by:
getUnicodeStreamin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream() throws java.sql.SQLException- Specified by:
getBinaryStreamin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject() throws java.sql.SQLException- Specified by:
getObjectin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream() throws java.sql.SQLException- Specified by:
getCharacterStreamin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
cannotConvert
private java.sql.SQLException cannotConvert(java.lang.String targetType) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException- Specified by:
getObjectin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef() throws java.sql.SQLException- Specified by:
getRefin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getBlob
public java.sql.Blob getBlob() throws java.sql.SQLException- Specified by:
getBlobin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getClob
public java.sql.Clob getClob() throws java.sql.SQLException- Specified by:
getClobin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getArray
public java.sql.Array getArray() throws java.sql.SQLException- Specified by:
getArrayin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getStruct
public java.sql.Struct getStruct() throws java.sql.SQLException- Specified by:
getStructin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(java.util.Calendar calendar) throws java.sql.SQLException- Specified by:
getDatein interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getTime
public java.sql.Time getTime(java.util.Calendar calendar) throws java.sql.SQLException- Specified by:
getTimein interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.util.Calendar calendar) throws java.sql.SQLException- Specified by:
getTimestampin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL() throws java.sql.SQLException- Specified by:
getURLin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob() throws java.sql.SQLException- Specified by:
getNClobin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getSQLXML
public java.sql.SQLXML getSQLXML() throws java.sql.SQLException- Specified by:
getSQLXMLin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getNString
public java.lang.String getNString() throws java.sql.SQLException- Specified by:
getNStringin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getNCharacterStream
public java.io.Reader getNCharacterStream() throws java.sql.SQLException- Specified by:
getNCharacterStreamin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
getObject
public <T> T getObject(java.lang.Class<T> type) throws java.sql.SQLException- Specified by:
getObjectin interfaceCursor.Accessor- Throws:
java.sql.SQLException
-
-