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 CmpFieldJdbcMappingRuleSet extends JRuleSetBase { 39 40 44 public CmpFieldJdbcMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "cmp-field-jdbc-mapping", 54 "org.objectweb.jonas_ejb.deployment.xml.CmpFieldJdbcMapping"); 55 digester.addSetNext(prefix + "cmp-field-jdbc-mapping", 56 "addCmpFieldJdbcMapping", 57 "org.objectweb.jonas_ejb.deployment.xml.CmpFieldJdbcMapping"); 58 digester.addCallMethod(prefix + "cmp-field-jdbc-mapping/field-name", 59 "setFieldName", 0); 60 digester.addCallMethod(prefix + "cmp-field-jdbc-mapping/jdbc-field-name", 61 "setJdbcFieldName", 0); 62 digester.addCallMethod(prefix + "cmp-field-jdbc-mapping/sql-type", 63 "setSqlType", 0); 64 } 65 } 66 | Popular Tags |