Maker disassembly info to MakerInfoProvider
MakerProcessor is such a mess...
This commit is contained in:
17
src/main/java/database/maker/MakerIngredientRowMapper.java
Normal file
17
src/main/java/database/maker/MakerIngredientRowMapper.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package database.maker;
|
||||
|
||||
import org.jdbi.v3.core.mapper.RowMapper;
|
||||
import org.jdbi.v3.core.statement.StatementContext;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class MakerIngredientRowMapper implements RowMapper<MakerIngredient> {
|
||||
|
||||
@Override
|
||||
public MakerIngredient map(ResultSet rs, StatementContext ctx) throws SQLException {
|
||||
int itemId = rs.getInt("item_id");
|
||||
short count = rs.getShort("count");
|
||||
return new MakerIngredient(itemId, count);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user