Search in sources :

Example 1 with FactoryBatchInvariant

use of org.cerberus.crud.factory.impl.FactoryBatchInvariant in project cerberus-source by cerberustesting.

the class BatchInvariantDAO method loadFromResultSet.

private BatchInvariant loadFromResultSet(ResultSet rs) throws SQLException {
    String system = ParameterParserUtil.parseStringParam(rs.getString("System"), "");
    String batch = ParameterParserUtil.parseStringParam(rs.getString("Batch"), "");
    String description = ParameterParserUtil.parseStringParam(rs.getString("Description"), "");
    // TODO remove when working in test with mockito and autowired
    factoryBatchInvariant = new FactoryBatchInvariant();
    return factoryBatchInvariant.create(system, batch, description);
}
Also used : IFactoryBatchInvariant(org.cerberus.crud.factory.IFactoryBatchInvariant) FactoryBatchInvariant(org.cerberus.crud.factory.impl.FactoryBatchInvariant)

Aggregations

IFactoryBatchInvariant (org.cerberus.crud.factory.IFactoryBatchInvariant)1 FactoryBatchInvariant (org.cerberus.crud.factory.impl.FactoryBatchInvariant)1