1 package de.webman.acl.db; 2 3 import java.sql.*; 4 5 import com.teamkonzept.db.*; 6 7 12 public class TKDBGetNodeInfo extends TKPrepQuery{ 13 14 public final static boolean IS_PREPARED = 15 true; 16 17 public final static String [] PARAM_ORDER = 18 {"CONTENT_NODE_ID"}; 19 20 public final static Object [][] PARAM_TYPES = 21 {{"CONTENT_NODE_ID", new Integer (Types.INTEGER)}}; 22 23 public final static boolean[] SET_RELEVANTS = 24 { true }; 25 26 public final static String SQL_STRING = 27 "SELECT " + 28 " CONTENT_NODE_ID, CONTENT_NODE_NAME, CONTENT_NODE_SHORTNAME, CONTENT_NODE_TYPE " + 29 "FROM " + 30 " CONTENT_TREE where " + 31 " CONTENT_NODE_ID = ? "; 32 33 34 public void initQuery(Connection con) { 35 super.initQuery( 36 con, 37 IS_PREPARED, 38 PARAM_ORDER, 39 PARAM_TYPES, 40 SET_RELEVANTS, 41 SQL_STRING ); 42 } 43 } 44 45 | Popular Tags |