1 19 package org.openharmonise.rm.resources.publishing; 20 21 import java.util.*; 22 23 import org.openharmonise.commons.dsi.*; 24 import org.openharmonise.rm.dsi.DatabaseInfo; 25 import org.openharmonise.rm.resources.xml.*; 26 27 28 29 36 public class TemplateGroup extends XMLResourceGroup { 37 38 private static final String TBL_TEMPLATEGROUP = "template_group"; 40 41 public static final String TAG_TEMPLATEGROUP = "TemplateGroup"; 43 44 private static List CHILD_CLASS_NAMES = null; 45 46 static { 47 DatabaseInfo.getInstance().registerTableName(TemplateGroup.class.getName(),TBL_TEMPLATEGROUP); 48 49 try { 50 CHILD_CLASS_NAMES = new Vector(); 51 CHILD_CLASS_NAMES.add(TemplateGroup.class.getName()); 52 CHILD_CLASS_NAMES.add(Template.class.getName()); 53 54 } catch (Exception e) { 55 throw new RuntimeException (e.getMessage()); 56 } 57 } 58 59 62 public TemplateGroup() { 63 super(); 64 } 65 66 71 public TemplateGroup(AbstractDataStoreInterface dbintrf) { 72 super(dbintrf); 73 } 74 75 82 public TemplateGroup( 83 AbstractDataStoreInterface dbintrf, 84 int nId, 85 int nKey, 86 boolean bIsHist) { 87 super(dbintrf, nId, nKey, bIsHist); 88 } 89 90 96 public TemplateGroup(AbstractDataStoreInterface dbintrf, int nId) { 97 super(dbintrf, nId); 98 } 99 100 101 104 public String getDBTableName() { 105 106 return TBL_TEMPLATEGROUP; 107 } 108 109 112 public String getTagName() { 113 return TAG_TEMPLATEGROUP; 114 } 115 116 119 public List getChildClassNames() { 120 121 return CHILD_CLASS_NAMES; 122 } 123 124 } 125 | Popular Tags |