// 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/CreatureEvolution.java
// public class CreatureEvolution extends CommonModel {
// 
//     public CreatureType type;
//     public String name;
//     public int maxHealth;
//     public int maxBowel;
//     public int maxDiscipline;
//     public int maxHunger;
//     public int maxHappy;
//     public int currentXp;
// }


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



public class CreatureEvolutionDao {
    private CommonDatabase<CreatureEvolution> db;
    Mapper<CreatureEvolution> rowMapper;

    public CreatureEvolutionDao(CommonDatabase<CreatureEvolution> database,
            Mapper<CreatureEvolution> mapper) {
        db = database;
        rowMapper = mapper;
    }

    public CreatureEvolution create(CreatureEvolution evo) {
        return db.insert(evo, CommonDatabase.EVOLUTION_TABLE_NAME);
    }

    public CreatureEvolution update(CreatureEvolution evo) {
        db.update(CommonDatabase.EVOLUTION_TABLE_NAME, evo, "CE_ID = "
                + evo.id, null);
        return evo;
    }

    public void delete(CreatureEvolution evo) {
        db.delete(CommonDatabase.EVOLUTION_TABLE_NAME, "CE_ID = " + evo.id,
                null);
    }

    public List<CreatureEvolution> getAll() {
        return db
// 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/CreatureEvolution.java
// public class CreatureEvolution extends CommonModel {
// 
//     public CreatureType type;
//     public String name;
//     public int maxHealth;
//     public int maxBowel;
//     public int maxDiscipline;
//     public int maxHunger;
//     public int maxHappy;
//     public int currentXp;
// }


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

package com.redditandroiddevelopers.tamagotchi.dao;



public class CreatureEvolutionDao {
    private CommonDatabase<CreatureEvolution> db;
    Mapper<CreatureEvolution> rowMapper;

    public CreatureEvolutionDao(CommonDatabase<CreatureEvolution> database,
            Mapper<CreatureEvolution> mapper) {
        db = database;
        rowMapper = mapper;
    }

    public CreatureEvolution create(CreatureEvolution evo) {
        return db.insert(evo, CommonDatabase.EVOLUTION_TABLE_NAME);
    }

    public CreatureEvolution update(CreatureEvolution evo) {
        db.update(CommonDatabase.EVOLUTION_TABLE_NAME, evo, "CE_ID = "
                + evo.id, null);
        return evo;
    }

    public void delete(CreatureEvolution evo) {
        db.delete(CommonDatabase.EVOLUTION_TABLE_NAME, "CE_ID = " + evo.id,
                null);
    }

    public List<CreatureEvolution> getAll() {
        return db
                .queryList(