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 ForeignKeyJdbcMappingRuleSet extends JRuleSetBase { 39 40 44 public ForeignKeyJdbcMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "foreign-key-jdbc-mapping", 54 "org.objectweb.jonas_ejb.deployment.xml.ForeignKeyJdbcMapping"); 55 digester.addSetNext(prefix + "foreign-key-jdbc-mapping", 56 "addForeignKeyJdbcMapping", 57 "org.objectweb.jonas_ejb.deployment.xml.ForeignKeyJdbcMapping"); 58 digester.addCallMethod(prefix + "foreign-key-jdbc-mapping/foreign-key-jdbc-name", 59 "setForeignKeyJdbcName", 0); 60 digester.addCallMethod(prefix + "foreign-key-jdbc-mapping/key-jdbc-name", 61 "setKeyJdbcName", 0); 62 } 63 } 64 | Popular Tags |