1 package de.webman.content.db.queries; 2 3 import java.sql.Connection ; 4 import java.sql.Types ; 5 import com.teamkonzept.db.TKPrepQuery; 6 import de.webman.content.db.ContentConstants; 7 8 30 public class XMLContentDelete 31 extends TKPrepQuery 32 { 33 35 37 40 private final static boolean IS_PREPARED = true; 41 42 45 private final static String [] PARAMETER_ORDER = 46 { 47 ContentConstants.CONTENT_ID 48 }; 49 50 53 private final static Object [][] PARAMETER_TYPES = 54 { 55 {ContentConstants.CONTENT_ID, new Integer (Types.INTEGER)} 56 }; 57 58 61 private final static boolean[] SET_RELEVANTS = 62 { 63 false 64 }; 65 66 69 private final static String SQL_STRING = "DELETE FROM CONTENT WHERE CONTENT_ID = ?"; 70 71 72 74 79 public void initQuery (Connection connection) 80 { 81 super.initQuery(connection, 82 IS_PREPARED, 83 PARAMETER_ORDER, 84 PARAMETER_TYPES, 85 SET_RELEVANTS, 86 SQL_STRING); 87 } 88 89 } 90 | Popular Tags |