package no.nordicsemi.db;

import android.content.Context;

import org.droidparts.persist.sql.EntityManager;
import org.droidparts.persist.sql.stmt.Is;

import java.util.ArrayList;

import no.nordicsemi.models.Rule;
import no.nordicsemi.triggers.Trigger;

public class RuleManager extends EntityManager<Rule> {

    public RuleManager(Class<Rule> cls, Context ctx) {
        super(cls, ctx);
    }

    public ArrayList<Rule> getRulesForTrigger(Trigger trigger) {
        return readAll(select().where("trigger", Is.EQUAL, this.getClass()));
    }
}

@@ -332,25 +332,8 @@
 ger(
-Class%3CRule%3E cls, 
 Cont
@@ -357,18 +357,25 @@
   super(
-cl
+Rule.clas
 s, ctx);

Change RuleManager constructor