1 32 33 package com.knowgate.hipergate; 34 35 import com.knowgate.jdc.JDCConnection; 36 import com.knowgate.dataobjs.DB; 37 import com.knowgate.dataobjs.DBPersist; 38 39 import java.sql.SQLException ; 40 41 46 public class CategoryLabel extends DBPersist { 47 48 51 public CategoryLabel() { 52 super(DB.k_cat_labels, "CategoryLabel"); 53 } 54 55 60 public CategoryLabel(String sCatId, String sLanguage) { 61 super(DB.k_cat_labels, "CategoryLabel"); 62 put(DB.gu_category, sCatId); 63 put(DB.id_language, sLanguage); 64 } 65 66 69 76 public static void create(JDCConnection oConn, Object [] Values) throws SQLException { 77 CategoryLabel oLbl = new CategoryLabel(); 78 79 oLbl.put(DB.gu_category, Values[0]); 80 oLbl.put(DB.id_language, Values[1]); 81 oLbl.put(DB.tr_category, Values[2]); 82 oLbl.put(DB.url_category, Values[3]); 83 84 if (Values.length>4) oLbl.put(DB.de_category, Values[4]); 85 86 oLbl.store(oConn); 87 } 88 89 92 public static final short ClassId = 11; 93 } | Popular Tags |