Class DecoratorMergedResult
- java.lang.Object
-
- org.apache.shardingsphere.infra.merge.result.impl.decorator.DecoratorMergedResult
-
- All Implemented Interfaces:
MergedResult
public abstract class DecoratorMergedResult extends Object implements MergedResult
Decorator merged result.
-
-
Constructor Summary
Constructors Constructor Description DecoratorMergedResult()
-
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.booleanwasNull()Judge ResultSet is null or not.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.infra.merge.result.MergedResult
next
-
-
-
-
Method Detail
-
getValue
public final 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 final 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 final 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 final 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
-
-