Package org.apache.calcite.avatica
Class AvaticaSite
java.lang.Object
org.apache.calcite.avatica.AvaticaSite
A location that a value can be written to or read from.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectValue that means the parameter has been set to null. -
Constructor Summary
ConstructorsConstructorDescriptionAvaticaSite(AvaticaParameter parameter, Calendar calendar, int index, TypedValue[] slots) -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectget(Cursor.Accessor accessor, int targetSqlType, Calendar localCalendar) Similar logic tosetObject(java.lang.Object, int).booleanisSet(int index) voidvoidvoidsetAsciiStream(InputStream x, long length) voidvoidvoidsetBinaryStream(InputStream x, long length) voidsetBlob(InputStream inputStream) voidsetBlob(InputStream inputStream, long length) voidvoidsetBoolean(boolean o) voidsetByte(byte o) voidsetBytes(byte[] x) voidsetChar(char o) voidsetCharacterStream(Reader reader) voidsetCharacterStream(Reader reader, long length) voidvoidvoidvoidvoidsetDouble(double x) voidsetFloat(float x) voidsetInt(int o) voidsetLong(long o) voidsetNCharacterStream(Reader value) voidsetNCharacterStream(Reader value, long length) voidvoidvoidvoidsetNString(String o) voidsetNull(int sqlType) voidvoidvoidvoidvoidvoidvoidsetShort(short o) voidvoidvoidvoidsetTimestamp(Timestamp x, Calendar calendar) voidsetUnicodeStream(InputStream x, int length) voidstatic BigDecimal
-
Field Details
-
DUMMY_VALUE
Value that means the parameter has been set to null. If value is null, parameter has not been set.
-
-
Constructor Details
-
AvaticaSite
-
-
Method Details
-
isSet
public boolean isSet(int index) -
setByte
public void setByte(byte o) -
setChar
public void setChar(char o) -
setShort
public void setShort(short o) -
setInt
public void setInt(int o) -
setLong
public void setLong(long o) -
setBoolean
public void setBoolean(boolean o) -
setRowId
-
setNString
-
setNCharacterStream
-
setNClob
-
setClob
-
setBlob
-
setNClob
-
setSQLXML
-
setAsciiStream
-
setBinaryStream
-
setCharacterStream
-
setAsciiStream
-
setBinaryStream
-
setCharacterStream
-
setNCharacterStream
-
setClob
-
setBlob
-
setNClob
-
setUnicodeStream
-
setFloat
public void setFloat(float x) -
setDouble
public void setDouble(double x) -
setBigDecimal
-
setString
-
setBytes
public void setBytes(byte[] x) -
setTimestamp
-
setTime
-
setDate
-
setObject
-
get
public static Object get(Cursor.Accessor accessor, int targetSqlType, Calendar localCalendar) throws SQLException Similar logic tosetObject(java.lang.Object, int).- Throws:
SQLException
-
setObject
-
setNull
public void setNull(int sqlType) -
setRef
-
setBlob
-
setClob
-
setArray
-
setNull
-
setURL
-
setObject
-
toBigDecimal
-