Package org.apache.calcite.avatica.util
Class AbstractCursor.DateAccessor
- java.lang.Object
-
- org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
-
- org.apache.calcite.avatica.util.AbstractCursor.ObjectAccessor
-
- org.apache.calcite.avatica.util.AbstractCursor.DateAccessor
-
- All Implemented Interfaces:
Cursor.Accessor
- Enclosing class:
- AbstractCursor
private static class AbstractCursor.DateAccessor extends AbstractCursor.ObjectAccessor
Accessor that assumes that the underlying value is a DATE, represented as a java.sql.Date; corresponds toTypes.DATE.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDateAccessor(AbstractCursor.Getter getter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.DategetDate(java.util.Calendar calendar)longgetLong()java.lang.StringgetString()-
Methods inherited from class org.apache.calcite.avatica.util.AbstractCursor.AccessorImpl
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDouble, getFloat, getInt, getNCharacterStream, getNClob, getNString, getObject, getObject, getObject, getRef, getShort, getSQLXML, getStruct, getTime, getTimestamp, getUnicodeStream, getURL, wasNull
-
-
-
-
Constructor Detail
-
DateAccessor
private DateAccessor(AbstractCursor.Getter getter)
-
-
Method Detail
-
getDate
public java.sql.Date getDate(java.util.Calendar calendar) throws java.sql.SQLException- Specified by:
getDatein interfaceCursor.Accessor- Overrides:
getDatein classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException- Specified by:
getStringin interfaceCursor.Accessor- Overrides:
getStringin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException- Specified by:
getLongin interfaceCursor.Accessor- Overrides:
getLongin classAbstractCursor.AccessorImpl- Throws:
java.sql.SQLException
-
-