1 32 33 package com.knowgate.hipergate; 34 35 import java.sql.SQLException ; 36 37 import com.knowgate.jdc.JDCConnection; 38 import com.knowgate.dataobjs.DB; 39 import com.knowgate.dataobjs.DBBind; 40 import com.knowgate.dataobjs.DBPersist; 41 42 46 47 public class ProductKeyword extends DBPersist { 48 49 public ProductKeyword() { 50 super(DB.k_prod_keywords, "ProductKeyword"); 51 } 52 53 public ProductKeyword(String sProductId) { 54 super(DB.k_prod_keywords, "ProductKeyword"); 55 56 put (DB.gu_product, sProductId); 57 } 58 59 61 public boolean store(JDCConnection oConn) throws SQLException { 62 java.sql.Timestamp dtNow = new java.sql.Timestamp (DBBind.getTime()); 63 64 replace(DB.dt_modified, dtNow); 66 67 return super.store(oConn); 68 } 69 70 73 public static final short ClassId = 18; 74 75 } | Popular Tags |