Search in sources :

Example 1 with StatementBuilder

use of org.nextprot.commons.statements.StatementBuilder in project nextprot-api by calipho-sib.

the class StatementMapper method mapRow.

public Statement mapRow(ResultSet rs, int rowNum) throws SQLException {
    StatementBuilder sfbuilder = StatementBuilder.createNew();
    for (StatementField key : StatementField.values()) {
        String value = rs.getString(key.name());
        sfbuilder.addField(key, value);
    }
    return sfbuilder.build();
}
Also used : StatementBuilder(org.nextprot.commons.statements.StatementBuilder) StatementField(org.nextprot.commons.statements.StatementField)

Aggregations

StatementBuilder (org.nextprot.commons.statements.StatementBuilder)1 StatementField (org.nextprot.commons.statements.StatementField)1