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

com.firefly.db.RowIterator Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.db;

import com.firefly.utils.lang.AbstractLookaheadIterator;

/**
 * @author Pengtao Qiu
 */
public class RowIterator extends AbstractLookaheadIterator {

    private final SQLResultSet sqlResultSet;

    public RowIterator(SQLResultSet sqlResultSet) {
        this.sqlResultSet = sqlResultSet;
    }

    @Override
    protected Row loadNext() {
        return sqlResultSet.next() ? sqlResultSet : null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy