亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? query.java

?? 一套JAVA的CA證書簽發系統.
?? JAVA
字號:
/************************************************************************* *                                                                       * *  EJBCA: The OpenSource Certificate Authority                          * *                                                                       * *  This software is free software; you can redistribute it and/or       * *  modify it under the terms of the GNU Lesser General Public           * *  License as published by the Free Software Foundation; either         * *  version 2.1 of the License, or any later version.                    * *                                                                       * *  See terms of license at gnu.org.                                     * *                                                                       * *************************************************************************/ /* * Query.java * * Created on den 23 juli 2002, 01:24 */package se.anatom.ejbca.util.query;import java.util.Date;import java.util.Iterator;import java.util.Vector;/** * A class used to produce advanced querys from the log and user data tables. It's main function is * getQueryString which returns a string which should be placed in the 'WHERE' clause of a SQL * statement. * * @author tomselleck */public class Query implements java.io.Serializable {    // Public Constants.    public static final int TYPE_LOGQUERY = 0;    public static final int TYPE_USERQUERY = 1;    public static final int CONNECTOR_AND = 0;    public static final int CONNECTOR_OR = 1;    public static final int CONNECTOR_ANDNOT = 2;    public static final int CONNECTOR_ORNOT = 3;    // Public methods.    /**     * Creates a new instance of Query     *     * @param type is the typ of query to produce. Should be one of the 'TYPE' constants of this     *        class.     */    public Query(int type) {        matches = new Vector();        connectors = new Vector();        this.type = type;    }    /**     * Adds a time restraint to the query. Both parameter cannot be null This method should only be     * used in ra user queries.     *     * @param startdate gives the start date of the query or null if it no startdate.     * @param enddate gives the end date of the query or null if it no startdate.     */    public void add(Date startdate, Date enddate) {        matches.addElement(new TimeMatch(type, startdate, enddate));    }    /**     * Adds a time restraint to the query. Both start and enddate parameters cannot be null This     * method should only be used in ra user queries.     *     * @param matchwith should indicate which field to match with, on of the TimeMatch.MATCH_WITH     *        constants.     * @param startdate gives the start date of the query or null if it no startdate.     * @param enddate gives the end date of the query or null if it no startdate.     */    public void add(int matchwith, Date startdate, Date enddate) {        matches.addElement(new TimeMatch(type, matchwith, startdate, enddate));    }    /**     * Adds a time restraint and a connector to the query. Both parameter cannot be null. This     * method should only be used in log queries.     *     * @param startdate gives the start date of the query or null if it no startdate.     * @param enddate gives the end date of the query or null if it no startdate.     * @param connector should be one of the 'CONNECTOR' constants.     */    public void add(Date startdate, Date enddate, int connector) {        matches.addElement(new TimeMatch(type, startdate, enddate));        connectors.addElement(new Integer(connector));    }    /**     * Adds a time restraint and a connector to the query. Both start and enddate parameters cannot     * be null. This method should only be used in ra user queries.     *     * @param matchwith should indicate which field to match with, on of the TimeMatch.MATCH_WITH     *        constants.     * @param startdate gives the start date of the query or null if it no startdate.     * @param enddate gives the end date of the query or null if it no startdate.     * @param connector should be one of the 'CONNECTOR' constants.     */    public void add(int matchwith, Date startdate, Date enddate, int connector) {        matches.addElement(new TimeMatch(type, matchwith, startdate, enddate));        connectors.addElement(new Integer(connector));    }    /**     * Adds a match ot type UserMatch or LogMatch to the query.     *     * @param matchwith should be one of the the UserMatch.MATCH_WITH or LogMatch.MATCH_WITH     *        connstants depending on query type.     * @param matchtype should be one of BasicMatch.MATCH_TYPE constants.     * @param matchvalue should be a string representation to match against.     *     * @throws NumberFormatException if there is an illegal character in matchvalue string.     */    public void add(int matchwith, int matchtype, String matchvalue)        throws NumberFormatException {        switch (this.type) {        case TYPE_LOGQUERY:            matches.addElement(new LogMatch(matchwith, matchtype, matchvalue));            break;        case TYPE_USERQUERY:            matches.addElement(new UserMatch(matchwith, matchtype, matchvalue));            break;        }    }    /**     * Adds a match ot type UserMatch or LogMatch ant a connector to the query.     *     * @param matchwith should be one of the the UserMatch.MATCH_WITH or LogMatch.MATCH_WITH     *        connstants depending on query type.     * @param matchtype should be one of BasicMatch.MATCH_TYPE constants.     * @param matchvalue should be a string representation to match against.     * @param connector should be one of the 'CONNECTOR' constants.     *     * @throws NumberFormatException if there is an illegal character in matchvalue string.     */    public void add(int matchwith, int matchtype, String matchvalue, int connector)        throws NumberFormatException {        switch (this.type) {        case TYPE_LOGQUERY:            matches.addElement(new LogMatch(matchwith, matchtype, matchvalue));            break;        case TYPE_USERQUERY:            matches.addElement(new UserMatch(matchwith, matchtype, matchvalue));            break;        }        connectors.addElement(new Integer(connector));    }    /**     * Adds a connector to the query.     *     * @param connector should be one of the 'CONNECTOR' constants.     *     * @throws NumberFormatException if there is an illegal character in matchvalue string.     */    public void add(int connector) {        connectors.addElement(new Integer(connector));    }    /**     * Gives the string to be used in the 'WHERE' clause int the SQL-statement.     *     * @return the string to be used in the 'WHERE'-clause.     */    public String getQueryString() {        String returnval = "";        for (int i = 0; i < (matches.size() - 1); i++) {            returnval += ((BasicMatch) matches.elementAt(i)).getQueryString();            returnval += CONNECTOR_SQL_NAMES[((Integer) connectors.elementAt(i)).intValue()];        }        returnval += ((BasicMatch) matches.elementAt(matches.size() - 1)).getQueryString();        return returnval;    }    /**     * Checks if the present query is legal by checking if every match is legal and that the number     * of connectors is one less than matches.     *     * @return true if the query is legal, false otherwise     */    public boolean isLegalQuery() {        boolean returnval = true;        Iterator i = matches.iterator();        while (i.hasNext()) {            returnval = returnval && ((BasicMatch) i.next()).isLegalQuery();        }        returnval = returnval && ((matches.size() - 1) == connectors.size());        returnval = returnval && (matches.size() > 0);        return returnval;    }    // Private Constants.    static final String[] CONNECTOR_SQL_NAMES = { " AND ", " OR ", " AND NOT ", " OR NOT " };    // Private fields.    private Vector matches = null; // Should only contain BasicMatch objects.    private Vector connectors = null; // Should only containg CONNECTOR constants.    private int type = 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91一区二区三区在线观看| 日韩理论片在线| 久久婷婷成人综合色| 激情五月激情综合网| 人人狠狠综合久久亚洲| www.日本不卡| 蜜臀久久99精品久久久久久9| 国产日韩欧美综合一区| 欧美日韩国产综合久久 | 中文字幕免费在线观看视频一区| 色就色 综合激情| 国产成人99久久亚洲综合精品| 亚洲精品伦理在线| 国产性做久久久久久| 欧美午夜精品一区二区三区| 国产一区二区免费在线| 天天综合色天天综合色h| 国产精品久久久久精k8| 久久综合久久鬼色| 日韩一级在线观看| 欧美丰满美乳xxx高潮www| 欧美韩国日本不卡| 一二三区精品福利视频| 国产午夜精品久久久久久久| 欧美日韩国产综合一区二区三区| 99国产精品久久久久久久久久久| 国产一本一道久久香蕉| 久久激情五月婷婷| 日韩国产高清影视| 亚洲电影一区二区三区| 中文字幕一区二区三区不卡在线 | 色诱视频网站一区| 成人精品视频一区二区三区| 精品制服美女久久| 麻豆精品一区二区| 蜜臀a∨国产成人精品| 日本午夜精品视频在线观看| 亚洲免费av高清| 久久精子c满五个校花| 2020国产精品久久精品美国| 精品国产电影一区二区| 精品国产电影一区二区| 精品美女一区二区| 精品国产一区二区亚洲人成毛片| 欧美一级理论片| 成人高清视频在线| 国产精品综合二区| 成人午夜在线免费| 91视频精品在这里| 欧美中文字幕一区二区三区| 欧美天堂亚洲电影院在线播放| 99re热视频这里只精品| 国产成都精品91一区二区三| 国产iv一区二区三区| 国产福利一区二区三区在线视频| 国产精品一区免费视频| 成人久久视频在线观看| 国产 日韩 欧美大片| 国产99久久久国产精品| 在线视频国内一区二区| 欧美日韩色综合| 色中色一区二区| 欧美性videosxxxxx| 欧美日韩三级在线| 精品国产91乱码一区二区三区 | 亚洲精品在线三区| 欧美精品一区二区不卡| 国产欧美日韩精品a在线观看| 国产色产综合色产在线视频| 中文字幕中文字幕一区二区| 亚洲特黄一级片| 亚洲一区二区三区三| 日韩精品国产欧美| 一区二区三区四区激情| 首页国产丝袜综合| 日本欧美肥老太交大片| 国产在线乱码一区二区三区| 国产精品一区二区三区99| 成人动漫视频在线| 成人动漫精品一区二区| 欧美日韩亚洲综合在线| 亚洲精品在线观看网站| 国产精品九色蝌蚪自拍| 亚洲成年人影院| 国产在线精品一区二区| 国产乱码精品一区二区三区五月婷| 成人黄色软件下载| 欧美一卡二卡三卡四卡| 久久精品免视看| 亚洲图片欧美视频| 国产一区二区影院| 综合在线观看色| 久久综合九色综合欧美98| 国产精品美女www爽爽爽| 亚洲精品午夜久久久| 韩国精品主播一区二区在线观看| 亚洲一区国产视频| 精品成人私密视频| 亚洲激情自拍偷拍| 国产精品一区一区| 欧美日本韩国一区| 国产精品女主播在线观看| 爽好久久久欧美精品| 成人sese在线| 26uuu另类欧美亚洲曰本| 午夜精品久久久久久久99樱桃| 国产乱人伦精品一区二区在线观看 | 欧洲精品一区二区| 国产人久久人人人人爽| 婷婷久久综合九色国产成人| 99re成人在线| 国产亚洲综合在线| 免费成人在线观看| 欧美午夜精品一区二区蜜桃| 中文字幕一区二区三区四区 | 精品成人一区二区三区| 亚洲一区在线免费观看| 成人性生交大片免费| 日韩欧美中文一区二区| 日本一区二区三区在线观看| 强制捆绑调教一区二区| 欧美午夜不卡视频| 亚洲综合色丁香婷婷六月图片| 国产不卡高清在线观看视频| 久久这里只有精品视频网| 一区二区三区精品| 国产麻豆成人传媒免费观看| 欧美精品一级二级三级| 亚洲最大色网站| fc2成人免费人成在线观看播放 | 亚洲一区二区三区中文字幕在线| 波多野结衣视频一区| 在线观看一区二区视频| 色婷婷综合五月| 亚洲欧美日韩国产综合在线| 极品少妇xxxx精品少妇| 欧美一级高清大全免费观看| 亚洲午夜一区二区| 欧美在线三级电影| 精品国产电影一区二区| 国产精品77777| 欧美一区二区私人影院日本| 国产精品三级av在线播放| 成人永久aaa| 国产精品久久久久久福利一牛影视 | 亚洲人成7777| 播五月开心婷婷综合| 国产精品少妇自拍| 国产电影一区在线| 久久婷婷色综合| 国产成人在线视频播放| 国产欧美日韩综合精品一区二区| 成人精品鲁一区一区二区| 亚洲视频网在线直播| 在线免费av一区| 日韩vs国产vs欧美| 久久一留热品黄| 不卡高清视频专区| 亚洲午夜视频在线观看| 日韩一卡二卡三卡国产欧美| 极品少妇xxxx精品少妇偷拍| 中文欧美字幕免费| 在线看国产一区二区| 五月天精品一区二区三区| 欧美tickling挠脚心丨vk| 久久成人精品无人区| 欧美国产日韩在线观看| 色天天综合久久久久综合片| 日韩国产成人精品| 国产色婷婷亚洲99精品小说| 91福利国产精品| 另类人妖一区二区av| 国产日韩精品一区二区三区在线| 丰满岳乱妇一区二区三区| 亚洲老司机在线| 日韩欧美中文字幕制服| 在线免费不卡电影| 国产美女精品在线| 国产精品情趣视频| 欧美色视频一区| 日本欧美一区二区在线观看| 国产欧美一区二区三区在线老狼| 一本高清dvd不卡在线观看| 欧美a级理论片| 国产精品不卡一区| 精品日本一线二线三线不卡 | 717成人午夜免费福利电影| 国产精品一区二区三区乱码| 一区二区在线免费| 久久蜜桃av一区二区天堂| 一本大道久久a久久综合| 狠狠色丁香久久婷婷综合丁香| 亚洲精品视频在线观看网站| 久久久亚洲午夜电影| 欧美熟乱第一页| 波多野结衣一区二区三区| 久久91精品久久久久久秒播| 一区二区三区91| 国产精品伦理在线| 精品国产一区二区三区不卡|