1 package de.webman.acl.db.queries; 2 3 import java.sql.Connection ; 4 import java.sql.Types ; 5 import com.teamkonzept.db.TKPrepQuery; 6 7 14 public class ActionUpdate 15 extends TKPrepQuery 16 { 17 18 20 public static final String [] ORDER = 21 { 22 "NAME", 23 "WM_ACTION_ID" 24 }; 25 26 public static final Object [][] TYPES = 27 { 28 {"NAME", new Integer (Types.VARCHAR)}, 29 {"WM_ACTION_ID", new Integer (Types.INTEGER)} 30 }; 31 32 public static final boolean[] RELEVANTS = 33 { 34 false 35 }; 36 37 public static final String SQL = "UPDATE WM_ACTION SET NAME = ? WHERE WM_ACTION_ID = ?"; 38 39 40 42 public void initQuery (Connection connection) 43 { 44 super.initQuery(connection, 45 true, 46 ORDER, 47 TYPES, 48 RELEVANTS, 49 SQL); 50 } 51 52 } 53 | Popular Tags |