类 RestfulResultSet
- java.lang.Object
-
- com.taosdata.jdbc.WrapperImpl
-
- com.taosdata.jdbc.AbstractResultSet
-
- com.taosdata.jdbc.rs.RestfulResultSet
-
- 所有已实现的接口:
AutoCloseable,ResultSet,Wrapper
public class RestfulResultSet extends AbstractResultSet
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classRestfulResultSet.Field
-
字段概要
字段 修饰符和类型 字段 说明 static DateTimeFormatterrfc3339Parser-
从类继承的字段 com.taosdata.jdbc.AbstractResultSet
timestampPrecision, wasNull
-
-
构造器概要
构造器 构造器 说明 RestfulResultSet(String database, Statement statement, com.alibaba.fastjson.JSONObject resultJson)由一个result的Json构造结果集,对应执行show databases, show tables等这些语句,返回结果集,但无法获取结果集对应的meta,统一当成String处理
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanabsolute(int row)voidafterLast()voidbeforeFirst()voidclose()intfindColumn(String columnLabel)booleanfirst()BigDecimalgetBigDecimal(int columnIndex)booleangetBoolean(int columnIndex)bytegetByte(int columnIndex)byte[]getBytes(int columnIndex)DategetDate(int columnIndex)doublegetDouble(int columnIndex)floatgetFloat(int columnIndex)intgetInt(int columnIndex)longgetLong(int columnIndex)ResultSetMetaDatagetMetaData()StringgetNString(int columnIndex)ObjectgetObject(int columnIndex)intgetRow()shortgetShort(int columnIndex)StatementgetStatement()StringgetString(int columnIndex)TimegetTime(int columnIndex)TimestampgetTimestamp(int columnIndex)TimestampgetTimestamp(int columnIndex, Calendar cal)booleanisAfterLast()booleanisBeforeFirst()booleanisClosed()booleanisFirst()booleanisLast()booleanlast()booleannext()booleanprevious()booleanrelative(int rows)-
从类继承的方法 com.taosdata.jdbc.AbstractResultSet
cancelRowUpdates, checkAvailability, clearWarnings, deleteRow, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getHoldability, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getString, getTime, getTime, getTime, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, moveToCurrentRow, moveToInsertRow, refreshRow, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, setTimestampPrecision, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
-
从类继承的方法 com.taosdata.jdbc.WrapperImpl
isWrapperFor, unwrap
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
从接口继承的方法 java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
字段详细资料
-
rfc3339Parser
public static DateTimeFormatter rfc3339Parser
-
-
构造器详细资料
-
RestfulResultSet
public RestfulResultSet(String database, Statement statement, com.alibaba.fastjson.JSONObject resultJson) throws SQLException
由一个result的Json构造结果集,对应执行show databases, show tables等这些语句,返回结果集,但无法获取结果集对应的meta,统一当成String处理- 参数:
resultJson- : 包含data信息的结果集,有sql返回的结果集- 抛出:
SQLException
-
-
方法详细资料
-
next
public boolean next() throws SQLException- 指定者:
next在接口中ResultSet- 指定者:
next在类中AbstractResultSet- 抛出:
SQLException
-
close
public void close() throws SQLException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中ResultSet- 指定者:
close在类中AbstractResultSet- 抛出:
SQLException
-
getString
public String getString(int columnIndex) throws SQLException
- 指定者:
getString在接口中ResultSet- 指定者:
getString在类中AbstractResultSet- 抛出:
SQLException
-
getBoolean
public boolean getBoolean(int columnIndex) throws SQLException- 指定者:
getBoolean在接口中ResultSet- 指定者:
getBoolean在类中AbstractResultSet- 抛出:
SQLException
-
getByte
public byte getByte(int columnIndex) throws SQLException- 指定者:
getByte在接口中ResultSet- 指定者:
getByte在类中AbstractResultSet- 抛出:
SQLException
-
getShort
public short getShort(int columnIndex) throws SQLException- 指定者:
getShort在接口中ResultSet- 指定者:
getShort在类中AbstractResultSet- 抛出:
SQLException
-
getInt
public int getInt(int columnIndex) throws SQLException- 指定者:
getInt在接口中ResultSet- 指定者:
getInt在类中AbstractResultSet- 抛出:
SQLException
-
getLong
public long getLong(int columnIndex) throws SQLException- 指定者:
getLong在接口中ResultSet- 指定者:
getLong在类中AbstractResultSet- 抛出:
SQLException
-
getFloat
public float getFloat(int columnIndex) throws SQLException- 指定者:
getFloat在接口中ResultSet- 指定者:
getFloat在类中AbstractResultSet- 抛出:
SQLException
-
getDouble
public double getDouble(int columnIndex) throws SQLException- 指定者:
getDouble在接口中ResultSet- 指定者:
getDouble在类中AbstractResultSet- 抛出:
SQLException
-
getBytes
public byte[] getBytes(int columnIndex) throws SQLException- 指定者:
getBytes在接口中ResultSet- 指定者:
getBytes在类中AbstractResultSet- 抛出:
SQLException
-
getDate
public Date getDate(int columnIndex) throws SQLException
- 指定者:
getDate在接口中ResultSet- 覆盖:
getDate在类中AbstractResultSet- 抛出:
SQLException
-
getTime
public Time getTime(int columnIndex) throws SQLException
- 指定者:
getTime在接口中ResultSet- 覆盖:
getTime在类中AbstractResultSet- 抛出:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException
- 指定者:
getTimestamp在接口中ResultSet- 指定者:
getTimestamp在类中AbstractResultSet- 抛出:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- 指定者:
getMetaData在接口中ResultSet- 指定者:
getMetaData在类中AbstractResultSet- 抛出:
SQLException
-
getObject
public Object getObject(int columnIndex) throws SQLException
- 指定者:
getObject在接口中ResultSet- 指定者:
getObject在类中AbstractResultSet- 抛出:
SQLException
-
findColumn
public int findColumn(String columnLabel) throws SQLException
- 指定者:
findColumn在接口中ResultSet- 指定者:
findColumn在类中AbstractResultSet- 抛出:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
- 指定者:
getBigDecimal在接口中ResultSet- 指定者:
getBigDecimal在类中AbstractResultSet- 抛出:
SQLException
-
isBeforeFirst
public boolean isBeforeFirst() throws SQLException- 指定者:
isBeforeFirst在接口中ResultSet- 指定者:
isBeforeFirst在类中AbstractResultSet- 抛出:
SQLException
-
isAfterLast
public boolean isAfterLast() throws SQLException- 指定者:
isAfterLast在接口中ResultSet- 指定者:
isAfterLast在类中AbstractResultSet- 抛出:
SQLException
-
isFirst
public boolean isFirst() throws SQLException- 指定者:
isFirst在接口中ResultSet- 指定者:
isFirst在类中AbstractResultSet- 抛出:
SQLException
-
isLast
public boolean isLast() throws SQLException- 指定者:
isLast在接口中ResultSet- 指定者:
isLast在类中AbstractResultSet- 抛出:
SQLException
-
beforeFirst
public void beforeFirst() throws SQLException- 指定者:
beforeFirst在接口中ResultSet- 指定者:
beforeFirst在类中AbstractResultSet- 抛出:
SQLException
-
afterLast
public void afterLast() throws SQLException- 指定者:
afterLast在接口中ResultSet- 指定者:
afterLast在类中AbstractResultSet- 抛出:
SQLException
-
first
public boolean first() throws SQLException- 指定者:
first在接口中ResultSet- 指定者:
first在类中AbstractResultSet- 抛出:
SQLException
-
last
public boolean last() throws SQLException- 指定者:
last在接口中ResultSet- 指定者:
last在类中AbstractResultSet- 抛出:
SQLException
-
getRow
public int getRow() throws SQLException- 指定者:
getRow在接口中ResultSet- 指定者:
getRow在类中AbstractResultSet- 抛出:
SQLException
-
absolute
public boolean absolute(int row) throws SQLException- 指定者:
absolute在接口中ResultSet- 指定者:
absolute在类中AbstractResultSet- 抛出:
SQLException
-
relative
public boolean relative(int rows) throws SQLException- 指定者:
relative在接口中ResultSet- 指定者:
relative在类中AbstractResultSet- 抛出:
SQLException
-
previous
public boolean previous() throws SQLException- 指定者:
previous在接口中ResultSet- 指定者:
previous在类中AbstractResultSet- 抛出:
SQLException
-
getNString
public String getNString(int columnIndex) throws SQLException
- 指定者:
getNString在接口中ResultSet- 指定者:
getNString在类中AbstractResultSet- 抛出:
SQLException
-
getStatement
public Statement getStatement() throws SQLException
- 指定者:
getStatement在接口中ResultSet- 指定者:
getStatement在类中AbstractResultSet- 抛出:
SQLException
-
getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
- 指定者:
getTimestamp在接口中ResultSet- 指定者:
getTimestamp在类中AbstractResultSet- 抛出:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- 指定者:
isClosed在接口中ResultSet- 指定者:
isClosed在类中AbstractResultSet- 抛出:
SQLException
-
-