use of org.cerberus.crud.factory.impl.FactorySqlLibrary in project cerberus-source by cerberustesting.
the class SqlLibraryDAO method loadFromResultSet.
@Override
public SqlLibrary loadFromResultSet(ResultSet rs) throws SQLException {
String name = ParameterParserUtil.parseStringParam(rs.getString("Name"), "");
String type = ParameterParserUtil.parseStringParam(rs.getString("Type"), "");
String db = ParameterParserUtil.parseStringParam(rs.getString("Database"), "");
String script = ParameterParserUtil.parseStringParam(rs.getString("Script"), "");
String description = ParameterParserUtil.parseStringParam(rs.getString("Description"), "");
// TODO remove when working in test with mockito and autowired
factorySqlLib = new FactorySqlLibrary();
return factorySqlLib.create(name, type, db, script, description);
}
Aggregations