01: package de.webman.content.workflow.db.queries;
02:
03: import com.teamkonzept.db.*;
04: import java.sql.*;
05:
06: /**
07: updatet Workflow Status
08: * @author $Author: alex $
09: * @version $Revision: 1.1 $
10: */
11: public class UpdateStatus extends TKPrepQuery {
12:
13: public final static boolean IS_PREPARED = true;
14:
15: public final static String[] PARAM_ORDER = { "STATUS",
16: "STATUS_ATTRIBUTES", "STATUS_ID" };
17:
18: public final static Object[][] PARAM_TYPES = null;
19:
20: public final static boolean[] SET_RELEVANTS = { true };
21:
22: public final static String SQL_STRING =
23:
24: "UPDATE " + "VERSION_STATUS SET "
25: + " STATUS= ?, STATUS_ATTRIBUTES= ? "
26: + "WHERE STATUS_ID= ?";
27:
28: public void initQuery(Connection con) {
29: super.initQuery(con, IS_PREPARED, PARAM_ORDER, PARAM_TYPES,
30: SET_RELEVANTS, SQL_STRING);
31: }
32: }
|