
br.com.objectos.db.Result Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2014 Objectos, Fábrica de Software LTDA.
*
* 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 br.com.objectos.db;
import java.sql.ResultSet;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.stream.Stream;
/**
* @author [email protected] (Marcio Endo)
*/
public interface Result extends AutoCloseable {
static Result of(ResultSet resultSet) {
return new ResultResultSet(resultSet);
}
boolean booleanValue(int index);
boolean booleanValue(String columnName);
@Override
void close();
double doubleValue(int index);
float floatValue(int index);
int intValue(int index);
int intValue(String columnName);
LocalDate localDate(int index);
LocalDateTime localDateTime(int index);
long longValue(int index);
long longValue(String columnName);
String string(int index);
String string(String columnName);
boolean next();
Stream stream();
boolean wasNull();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy