public final class StreamQueryResult extends Object implements QueryResult
| Constructor and Description |
|---|
StreamQueryResult(ResultSet resultSet) |
StreamQueryResult(ResultSet resultSet,
org.apache.shardingsphere.core.rule.ShardingRule shardingRule,
org.apache.shardingsphere.core.strategy.encrypt.ShardingEncryptorEngine shardingEncryptorEngine) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCalendarValue(int columnIndex,
Class<?> type,
Calendar calendar)
Get calendar value.
|
Object |
getCalendarValue(String columnLabel,
Class<?> type,
Calendar calendar)
Get calendar value.
|
int |
getColumnCount()
Get column count.
|
String |
getColumnLabel(int columnIndex)
Get column label.
|
InputStream |
getInputStream(int columnIndex,
String type)
Get InputStream.
|
InputStream |
getInputStream(String columnLabel,
String type)
Get InputStream.
|
Object |
getValue(int columnIndex,
Class<?> type)
Get data value.
|
Object |
getValue(String columnLabel,
Class<?> type)
Get data value.
|
boolean |
next()
iterate next data.
|
boolean |
wasNull()
Judge ResultSet is null or not.
|
public StreamQueryResult(ResultSet resultSet, org.apache.shardingsphere.core.rule.ShardingRule shardingRule, org.apache.shardingsphere.core.strategy.encrypt.ShardingEncryptorEngine shardingEncryptorEngine)
public StreamQueryResult(ResultSet resultSet)
public boolean next()
throws SQLException
QueryResultnext in interface QueryResultSQLException - SQL Exceptionpublic Object getValue(int columnIndex, Class<?> type) throws SQLException
QueryResultgetValue in interface QueryResultcolumnIndex - column indextype - class type of data valueSQLException - SQL Exceptionpublic Object getValue(String columnLabel, Class<?> type) throws SQLException
QueryResultgetValue in interface QueryResultcolumnLabel - column labeltype - class type of data valueSQLException - SQL Exceptionpublic Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) throws SQLException
QueryResultgetCalendarValue in interface QueryResultcolumnIndex - column indextype - class type of data valuecalendar - calendarSQLException - SQL Exceptionpublic Object getCalendarValue(String columnLabel, Class<?> type, Calendar calendar) throws SQLException
QueryResultgetCalendarValue in interface QueryResultcolumnLabel - column labeltype - class type of data valuecalendar - calendarSQLException - SQL Exceptionpublic InputStream getInputStream(int columnIndex, String type) throws SQLException
QueryResultgetInputStream in interface QueryResultcolumnIndex - column indextype - class type of data valueSQLException - SQL Exceptionpublic InputStream getInputStream(String columnLabel, String type) throws SQLException
QueryResultgetInputStream in interface QueryResultcolumnLabel - column labeltype - class type of data valueSQLException - SQL Exceptionpublic boolean wasNull()
throws SQLException
QueryResultwasNull in interface QueryResultSQLException - SQL Exceptionpublic int getColumnCount()
QueryResultgetColumnCount in interface QueryResultpublic String getColumnLabel(int columnIndex)
QueryResultgetColumnLabel in interface QueryResultcolumnIndex - column indexCopyright © 2019 The Apache Software Foundation. All rights reserved.