1 32 33 package com.knowgate.hipergate; 34 35 import java.sql.SQLException ; 36 37 import com.knowgate.debug.DebugFile; 38 import com.knowgate.jdc.JDCConnection; 39 import com.knowgate.dataobjs.DB; 40 import com.knowgate.dataobjs.DBBind; 41 import com.knowgate.dataobjs.DBPersist; 42 43 public class Keyword extends DBPersist { 44 45 public Keyword() { 46 super(DB.k_keywords, "Keyword"); 47 } 48 49 public boolean store(JDCConnection oConn) throws SQLException { 50 if (!AllVals.containsKey(DB.id_key)) put(DB.id_key, DBBind.nextVal(oConn, "seq_" + DB.k_keywords)); 51 return super.store(oConn); 52 } 53 } | Popular Tags |