Class TransparentMergedResult
- java.lang.Object
-
- org.apache.shardingsphere.infra.merge.result.impl.transparent.TransparentMergedResult
-
- All Implemented Interfaces:
MergedResult
public final class TransparentMergedResult extends Object implements MergedResult
Transparent merged result.
-
-
Constructor Summary
Constructors Constructor Description TransparentMergedResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCalendarValue(int columnIndex, Class<?> type, Calendar calendar)Get calendar value.ReadergetCharacterStream(int columnIndex)Get CharacterStream.InputStreamgetInputStream(int columnIndex, String type)Get InputStream.ObjectgetValue(int columnIndex, Class<?> type)Get data value.booleannext()Iterate next data.booleanwasNull()Judge ResultSet is null or not.
-
-
-
Method Detail
-
next
public boolean next() throws SQLExceptionDescription copied from interface:MergedResultIterate next data.- Specified by:
nextin interfaceMergedResult- Returns:
- has next data
- Throws:
SQLException- SQL exception
-
getValue
public Object getValue(int columnIndex, Class<?> type) throws SQLException
Description copied from interface:MergedResultGet data value.- Specified by:
getValuein interfaceMergedResult- Parameters:
columnIndex- column indextype- class type of data value- Returns:
- data value
- Throws:
SQLException- SQL exception
-
getCalendarValue
public Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) throws SQLException
Description copied from interface:MergedResultGet calendar value.- Specified by:
getCalendarValuein interfaceMergedResult- Parameters:
columnIndex- column indextype- class type of data valuecalendar- calendar- Returns:
- calendar value
- Throws:
SQLException- SQL exception
-
getInputStream
public InputStream getInputStream(int columnIndex, String type) throws SQLException
Description copied from interface:MergedResultGet InputStream.- Specified by:
getInputStreamin interfaceMergedResult- Parameters:
columnIndex- column indextype- class type of data value- Returns:
- InputStream
- Throws:
SQLException- SQL exception
-
getCharacterStream
public Reader getCharacterStream(int columnIndex) throws SQLException
Description copied from interface:MergedResultGet CharacterStream.- Specified by:
getCharacterStreamin interfaceMergedResult- Parameters:
columnIndex- column index- Returns:
- Reader
- Throws:
SQLException- SQL exception
-
wasNull
public boolean wasNull() throws SQLExceptionDescription copied from interface:MergedResultJudge ResultSet is null or not.- Specified by:
wasNullin interfaceMergedResult- Returns:
- ResultSet is null or not
- Throws:
SQLException- SQL exception
-
-