tools.dynamia.domain.jdbc.JdbcDataSet Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2023 Dynamia Soluciones IT S.A.S - NIT 900302344-1
* Colombia / South America
*
* 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 tools.dynamia.domain.jdbc;
import tools.dynamia.domain.query.DataSet;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* The Class JdbcDataSet.
*
* @author Mario A. Serrano Leones
*/
public class JdbcDataSet extends DataSet implements Iterable {
/**
* The statement.
*/
private Statement statement;
private String name;
private List rows;
private List cols;
/**
* Instantiates a new jdbc data set.
*
* @param rs the rs
*/
public JdbcDataSet(ResultSet rs) {
super(rs);
}
/**
* Instantiates a new jdbc data set.
*
* @param statement the statement
* @param rs the rs
*/
public JdbcDataSet(Statement statement, ResultSet rs) {
super(rs);
this.statement = statement;
}
public JdbcDataSet(List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy