Search in sources :

Example 1 with FactorySqlLibrary

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);
}
Also used : IFactorySqlLibrary(org.cerberus.crud.factory.IFactorySqlLibrary) FactorySqlLibrary(org.cerberus.crud.factory.impl.FactorySqlLibrary)

Aggregations

IFactorySqlLibrary (org.cerberus.crud.factory.IFactorySqlLibrary)1 FactorySqlLibrary (org.cerberus.crud.factory.impl.FactorySqlLibrary)1