org.sql2o.data.LazyTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anima Show documentation
Show all versions of anima Show documentation
Operate the database like a stream
package org.sql2o.data;
import org.sql2o.ResultSetIterable;
import java.util.List;
/**
* @author [email protected]
*/
public class LazyTable implements AutoCloseable {
private String name;
private ResultSetIterable rows;
private List columns;
public String getName() {
return name;
}
void setName(String name) {
this.name = name;
}
public Iterable rows() {
return rows;
}
public void setRows(ResultSetIterable rows) {
this.rows = rows;
}
public List columns() {
return columns;
}
void setColumns(List columns) {
this.columns = columns;
}
public void close() {
this.rows.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy