All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shardingsphere.core.merger.MergedResult Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/*
 * Copyright 2016-2018 shardingsphere.io.
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *

*/ package io.shardingsphere.core.merger; import java.io.InputStream; import java.sql.SQLException; import java.util.Calendar; /** * Merged result after merge engine. * * @author zhangliang */ public interface MergedResult { /** * iterate next data. * * @return has next data * @throws SQLException SQL Exception */ boolean next() throws SQLException; /** * Get data value. * * @param columnIndex column index * @param type class type of data value * @return data value * @throws SQLException SQL Exception */ Object getValue(int columnIndex, Class type) throws SQLException; /** * Get data value. * * @param columnLabel column label * @param type class type of data value * @return data value * @throws SQLException SQL Exception */ Object getValue(String columnLabel, Class type) throws SQLException; /** * Get calendar value. * * @param columnIndex column index * @param type class type of data value * @param calendar calendar * @return calendar value * @throws SQLException SQL Exception */ Object getCalendarValue(int columnIndex, Class type, Calendar calendar) throws SQLException; /** * Get calendar value. * * @param columnLabel column label * @param type class type of data value * @param calendar calendar * @return calendar value * @throws SQLException SQL Exception */ Object getCalendarValue(String columnLabel, Class type, Calendar calendar) throws SQLException; /** * Get InputStream. * * @param columnIndex column index * @param type class type of data value * @return InputStream * @throws SQLException SQL Exception */ InputStream getInputStream(int columnIndex, String type) throws SQLException; /** * Get InputStream. * * @param columnLabel column label * @param type class type of data value * @return InputStream * @throws SQLException SQL Exception */ InputStream getInputStream(String columnLabel, String type) throws SQLException; /** * Adjust ResultSet is null or not. * * @return ResultSet is null or not * @throws SQLException SQL Exception */ boolean wasNull() throws SQLException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy