1 32 33 package com.knowgate.hipergate; 34 35 import java.math.BigDecimal ; 36 37 import java.sql.Types ; 38 import java.sql.PreparedStatement ; 39 import java.sql.SQLException ; 40 41 import com.knowgate.jdc.JDCConnection; 42 import com.knowgate.dataobjs.DBPersist; 43 import com.knowgate.dataobjs.DB; 44 import com.knowgate.dataobjs.DBBind; 45 46 51 53 public class DespatchAdviceLine extends DBPersist { 54 public DespatchAdviceLine() { 55 super(DB.k_despatch_lines, "DespatchAdviceLine"); 56 } 57 58 60 67 public boolean store (JDCConnection oConn) throws SQLException { 68 PreparedStatement oStmt = oConn.prepareStatement("UPDATE "+DB.k_despatch_advices+" SET "+DB.dt_modified+"="+DBBind.Functions.GETDATE+" WHERE "+DB.gu_despatch+"=?"); 69 oStmt.setObject(1, get(DB.gu_despatch), Types.CHAR); 70 oStmt.executeUpdate(); 71 oStmt.close(); 72 return super.store(oConn); 73 } 74 75 } 76 | Popular Tags |