SelectMaxProperty.java :  » Content-Management-System » webman » com » teamkonzept » webman » mainint » db » queries » properties » Java Open Source

Java Open Source » Content Management System » webman 
webman » com » teamkonzept » webman » mainint » db » queries » properties » SelectMaxProperty.java
package com.teamkonzept.webman.mainint.db.queries.properties;

import java.sql.Connection;
import java.sql.Types;
import com.teamkonzept.db.*;

/**
 * 
 * @author
 * @version
 */
public class SelectMaxProperty extends TKPrepQuery
{

  public final static boolean PREPARED = true;

  public final static String[] ORDER = null;

  public final static Object[][] TYPES = null;

  public final static boolean[] RELEVANTS = { true };

  public final static String SQLSTRING = "SELECT " + DBStringFactory.nvl() + "(MAX(PROPERTY_ID)+1, 0) AS PROPERTY_MAX FROM PROPERTY";

  public void initQuery(Connection con) {
    super.initQuery(
      con,
      PREPARED,
      ORDER,
      TYPES,
      RELEVANTS,
      SQLSTRING );
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.