KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > content > ContGetMaxID


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/content/ContGetMaxID.java,v 1.5 2001/11/09 16:08:50 markus Exp $
3  *
4  */

5 package com.teamkonzept.webman.mainint.db.queries.content;
6
7 import java.sql.*;
8
9 import com.teamkonzept.db.*;
10
11 /**
12  *
13  * @author
14  * @version
15  */

16
17 public class ContGetMaxID extends TKPrepQuery{
18
19     public final static boolean ISPREPARED =true;
20     public final static String JavaDoc[] PARAMORDER = null;
21     public final static Object JavaDoc[][] PARAMTYPES = null;
22     public final static boolean[] SETRELEVANTS = {true};
23
24     public final static String JavaDoc SQLSTRING =
25         "SELECT MAX(CONTENT_ID) AS CONTENT_ID FROM CONTENT";
26
27     public void initQuery(Connection con) {
28         super.initQuery(
29             con,
30             ISPREPARED,
31             PARAMORDER,
32             PARAMTYPES,
33             SETRELEVANTS,
34             SQLSTRING );
35     }
36 }
37
Popular Tags