// Path: Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/mappers/Mapper.java
// public abstract class Mapper<T> {
//     public abstract T mapRow(Object c);
// }
// 
// Path: Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/model/ExperienceDebuff.java
// public class ExperienceDebuff extends CommonModel {
//     public CreatureType type;
//     public CreatureDebuff debuff;
//     public double modifier;
// }


import java.util.List;
import com.redditandroiddevelopers.tamagotchi.mappers.Mapper;
import com.redditandroiddevelopers.tamagotchi.model.ExperienceDebuff;
package com.redditandroiddevelopers.tamagotchi.dao;



public class ExperienceDebuffDao {
    private CommonDatabase<ExperienceDebuff> db;
    private Mapper<ExperienceDebuff> rowMapper;
    
    public ExperienceDebuffDao(CommonDatabase<ExperienceDebuff> database,
            Mapper<ExperienceDebuff> mapper) {
        db = database;
        rowMapper = mapper;
    }
    
    public ExperienceDebuff create(ExperienceDebuff exp) {
        return db.insert(exp, CommonDatabase.EXPERIENCE_DEBUFF_TABLE_NAME);
    }
    
    public ExperienceDebuff update(ExperienceDebuff exp) {
        db.update(CommonDatabase.EXPERIENCE_DEBUFF_TABLE_NAME, 
                exp, 
                "ED_ID = " + exp.id, 
// Path: Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/mappers/Mapper.java
// public abstract class Mapper<T> {
//     public abstract T mapRow(Object c);
// }
// 
// Path: Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/model/ExperienceDebuff.java
// public class ExperienceDebuff extends CommonModel {
//     public CreatureType type;
//     public CreatureDebuff debuff;
//     public double modifier;
// }


// Path: Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/dao/ExperienceDebuffDao.java
import java.util.List;
import com.redditandroiddevelopers.tamagotchi.mappers.Mapper;
import com.redditandroiddevelopers.tamagotchi.model.ExperienceDebuff;

package com.redditandroiddevelopers.tamagotchi.dao;



public class ExperienceDebuffDao {
    private CommonDatabase<ExperienceDebuff> db;
    private Mapper<ExperienceDebuff> rowMapper;
    
    public ExperienceDebuffDao(CommonDatabase<ExperienceDebuff> database,
            Mapper<ExperienceDebuff> mapper) {
        db = database;
        rowMapper = mapper;
    }
    
    public ExperienceDebuff create(ExperienceDebuff exp) {
        return db.insert(exp, CommonDatabase.EXPERIENCE_DEBUFF_TABLE_NAME);
    }
    
    public ExperienceDebuff update(ExperienceDebuff exp) {
        db.update(CommonDatabase.EXPERIENCE_DEBUFF_TABLE_NAME, 
                exp, 
                "ED_ID = " + exp.id, 
                null);