Package net.snowflake.client.core
Class BaseSqlInput
- java.lang.Object
-
- net.snowflake.client.core.BaseSqlInput
-
- All Implemented Interfaces:
SQLInput,SFSqlInput
- Direct Known Subclasses:
ArrowSqlInput,JsonSqlInput
@SnowflakeJdbcInternalApi public abstract class BaseSqlInput extends Object implements SFSqlInput
-
-
Field Summary
Fields Modifier and Type Field Description protected Convertersconvertersprotected List<FieldMetadata>fieldsprotected SFBaseSessionsession
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseSqlInput(SFBaseSession session, Converters converters, List<FieldMetadata> fields)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.snowflake.client.core.SFSqlInput
readArray, readList, readMap, readObject, readTimestamp
-
Methods inherited from interface java.sql.SQLInput
readBigDecimal, readBoolean, readByte, readBytes, readDate, readDouble, readFloat, readInt, readLong, readObject, readObject, readShort, readString, readTime
-
-
-
-
Field Detail
-
session
protected final SFBaseSession session
-
converters
protected final Converters converters
-
fields
protected final List<FieldMetadata> fields
-
-
Constructor Detail
-
BaseSqlInput
protected BaseSqlInput(SFBaseSession session, Converters converters, List<FieldMetadata> fields)
-
-
Method Detail
-
readTimestamp
public Timestamp readTimestamp() throws SQLException
- Specified by:
readTimestampin interfaceSQLInput- Throws:
SQLException
-
readCharacterStream
public Reader readCharacterStream() throws SQLException
- Specified by:
readCharacterStreamin interfaceSQLInput- Throws:
SQLException
-
readAsciiStream
public InputStream readAsciiStream() throws SQLException
- Specified by:
readAsciiStreamin interfaceSQLInput- Throws:
SQLException
-
readBinaryStream
public InputStream readBinaryStream() throws SQLException
- Specified by:
readBinaryStreamin interfaceSQLInput- Throws:
SQLException
-
readRef
public Ref readRef() throws SQLException
- Specified by:
readRefin interfaceSQLInput- Throws:
SQLException
-
readBlob
public Blob readBlob() throws SQLException
- Specified by:
readBlobin interfaceSQLInput- Throws:
SQLException
-
readClob
public Clob readClob() throws SQLException
- Specified by:
readClobin interfaceSQLInput- Throws:
SQLException
-
readArray
public Array readArray() throws SQLException
- Specified by:
readArrayin interfaceSQLInput- Throws:
SQLException
-
wasNull
public boolean wasNull() throws SQLException- Specified by:
wasNullin interfaceSQLInput- Throws:
SQLException
-
readURL
public URL readURL() throws SQLException
- Specified by:
readURLin interfaceSQLInput- Throws:
SQLException
-
readNClob
public NClob readNClob() throws SQLException
- Specified by:
readNClobin interfaceSQLInput- Throws:
SQLException
-
readNString
public String readNString() throws SQLException
- Specified by:
readNStringin interfaceSQLInput- Throws:
SQLException
-
readSQLXML
public SQLXML readSQLXML() throws SQLException
- Specified by:
readSQLXMLin interfaceSQLInput- Throws:
SQLException
-
readRowId
public RowId readRowId() throws SQLException
- Specified by:
readRowIdin interfaceSQLInput- Throws:
SQLException
-
convertString
protected String convertString(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertBoolean
protected Boolean convertBoolean(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertShort
protected Short convertShort(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertInt
protected Integer convertInt(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertLong
protected Long convertLong(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertFloat
protected Float convertFloat(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertDouble
protected Double convertDouble(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertBigDecimal
protected BigDecimal convertBigDecimal(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
convertBytes
protected byte[] convertBytes(Object value, FieldMetadata fieldMetadata) throws SQLException
- Throws:
SQLException
-
-