1 27 package org.objectweb.jonas_ejb.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class FinderMethodJdbcMappingRuleSet extends JRuleSetBase { 39 40 44 public FinderMethodJdbcMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "finder-method-jdbc-mapping", 54 "org.objectweb.jonas_ejb.deployment.xml.FinderMethodJdbcMapping"); 55 digester.addSetNext(prefix + "finder-method-jdbc-mapping", 56 "addFinderMethodJdbcMapping", 57 "org.objectweb.jonas_ejb.deployment.xml.FinderMethodJdbcMapping"); 58 digester.addRuleSet(new JonasMethodRuleSet(prefix + "finder-method-jdbc-mapping/")); 59 digester.addCallMethod(prefix + "finder-method-jdbc-mapping/jdbc-where-clause", 60 "setJdbcWhereClause", 0); 61 } 62 } 63 | Popular Tags |