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

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

?? indextable.java

?? iiitAccessServer是一個用Java編寫的基于規則的企業鑒別系統。它作為一個服務器工作
?? JAVA
字號:
/******************************************************************************* * Copyright (C) 2002, 2003 * ingenieurbuero fuer innovative informationstechnik (iiit) * Dipl.-Ing. Joerg Beckmann, Dortmund, Germany * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. *  * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * * version $Id: IndexTable.java,v 1.13 2003/04/13 20:16:42 joerg Exp $ ******************************************************************************/package de.iiit.access.server.util.db.cachedb;import de.iiit.jdbc.*;import java.util.*;/** For every expression or group found in the LDAP database there will be exactly * on table in the cache database. The cache tables are numbered consecutively when * they are created. The index table holds the relation between the name of the * expression or group - represented by its MD5 checksum - and the table containig * the data. */public class IndexTable{    /** CVS Version Tag */    private static final String vcid = "$Id: IndexTable.java,v 1.13 2003/04/13 20:16:42 joerg Exp $";    private static final String indexTable = "indextable";    private static final String createStmt =         "create table " + indexTable + "("         +            "exprkey      char(33) primary key, "   +             "tablename    char(20),"                +            "creationtime bigint)";        private static final String searchStmt =         "select count(*) " +             "from " + indexTable + " " +             "where exprkey = ?";        private static final String searchStmt2 =         "select count(*) " +             "from " + indexTable + " " +             "where tablename = ?";        private static final String selectStmt =         "select exprkey, tablename, "   +             "creationtime "             +             "from " + indexTable + " "  +            "where exprkey = ?";        private static final String selectStmt2 =         "select tablename "   +             "from " + indexTable;        private static final String insertStmt =         "insert into " + indexTable + " " +             "(exprkey, tablename, creationtime) " +             " values (?, ?, ?)";    private static final String updateStmt =         "update " + indexTable + " "    +             "set tableName = ?, "       +             "creationTime = ? "         +            "where exprKey = ?";        private static final String deleteStmt =         "delete from " + indexTable + " " +             "where exprKey = ?";        private String exprKey;    private String tableName;    private long   creationTime;        /** Creates a new instance of IndexTable */    private IndexTable()    {    }    /** Creates a new instance of IndexTable     * @param exprKey the MD5 sum of the name of the expression or group     * @param tableName the name of the table     * @param creationTime the creation time of the cache table in milliseconds since January, 1st 1970.     */        public IndexTable(String exprKey, String tableName, long creationTime)    {        this.exprKey = exprKey;        this.tableName = tableName;        this.creationTime = creationTime;    }    /** Creates a new database table todolist.     * Returns     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     * @return true if table had to be created, false is table was already there     */    public static boolean createIndexTable(JdbcConnectionPool pool) throws JdbcException    {        boolean result = false;                JdbcDatabaseMetaData md = pool.getMetaData();        JdbcResultSet rs = md.getTables(null, null, indexTable, new String[] { "TABLE" });        if (! rs.next())        {            result = true;            JdbcStatement stmt = pool.createStatement();            stmt.execute(createStmt);                        stmt.close();        }                rs.close();        return result;    }        /** Searches the index for a name of an expression or group     * @param pool The database handle to use     * @param expressionName The name to search for     * @throws JdbcException if a JDBC error occurs     * @return True if the name was found or false if not.     */        public static boolean searchIndex(JdbcConnectionPool pool, String expressionName) throws JdbcException    {        JdbcPreparedStatement search = pool.prepareStatement(searchStmt);                    search.setString(1, expressionName);                    JdbcResultSet rs = search.executeQuery();                                    rs.first();        int count = rs.getInt(1);        rs.close();        search.close();        return (count != 0);    }    /** Searches the index for a name of a cache table     * @param pool The database handle to use     * @param tablename The name to search for     * @throws JdbcException if a JDBC error occurs     * @return True if the name was found or false if not.     */        public static boolean searchIndex2(JdbcConnectionPool pool, String tablename) throws JdbcException    {        JdbcPreparedStatement search = pool.prepareStatement(searchStmt2);                    search.setString(1, tablename);                    JdbcResultSet rs = search.executeQuery();                                    rs.first();        int count = rs.getInt(1);        rs.close();        search.close();        return (count != 0);    }    /** Reads one record from the index table     * @param pool The database handle to use     * @param name The name to search for     * @throws JdbcException if a JDBC error occurs     * @return The read record or null if there was no one found.     */        public static IndexTable selectIndex(JdbcConnectionPool pool, String name) throws JdbcException    {        IndexTable result = null;        JdbcPreparedStatement select = pool.prepareStatement(selectStmt);                    select.setString(1, name);        JdbcResultSet rs = select.executeQuery();                                    if (rs.first())        {            result = new IndexTable();                        result.setExprKey(rs.getString(1));            result.setTableName(rs.getString(2));            result.setCreationTime(rs.getLong(3));        }        rs.close();        select.close();        return result;    }    /** Reads all table names from the index table     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     * @return All table names contained in the index table     */        public static Set selectAllTableNames(JdbcConnectionPool pool) throws JdbcException    {        HashSet result = new HashSet();                JdbcPreparedStatement select = pool.prepareStatement(selectStmt2);                    JdbcResultSet rs = select.executeQuery();                while (rs.next())        {            result.add(rs.getString(1));        }                rs.close();        select.close();        return result;    }        /** Inserts the current object into the index table     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     */        public void insertIndex(JdbcConnectionPool pool) throws JdbcException    {        JdbcPreparedStatement insert = pool.prepareStatement(insertStmt);                insert.setString(1, exprKey);        insert.setString(2, tableName);        insert.setLong  (3, creationTime);        insert.executeUpdate();        insert.close();    }    /** Writes the content of the current object back to the database     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     */        public void updateIndex(JdbcConnectionPool pool) throws JdbcException    {        JdbcPreparedStatement update = pool.prepareStatement(updateStmt);        update.setString(1, tableName);        update.setLong  (2, creationTime);        update.setString(3, exprKey);        update.executeUpdate();        update.close();    }    /** Deletes the current object from the database.     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     */        public void deleteIndex(JdbcConnectionPool pool) throws JdbcException    {        JdbcPreparedStatement delete = pool.prepareStatement(deleteStmt);                delete.setString(1, exprKey);        delete.executeUpdate();        delete.close();    }    /** Writes the content of the current object back to the database.     * If it is new it will be inserted, otherwise the record will be updated.     * @param pool The database handle to use     * @throws JdbcException if a JDBC error occurs     */        public void writeIndex(JdbcConnectionPool pool) throws JdbcException    {        if (! searchIndex(pool, exprKey))            insertIndex(pool);        else            updateIndex(pool);    }    /** Sets the exprkey-field of the current object.     * @param exprKey the MD5 sum of the name of the expression or group     */        public void setExprKey(String exprKey)    {        this.exprKey = exprKey;    }        /** Sets the tablename-field of the current object.     * @param tableName the name of the cache table     */        public void setTableName(String tableName)    {        this.tableName = tableName;    }        /** Sets the creationtime-field of the current object     * @param creationTime the creation time of the cache table in milliseconds since January, 1st 1970.     */        public void setCreationTime(long creationTime)    {        this.creationTime = creationTime;    }                /** Retrieves the exprkey-field of the current object.     * @return the MD5 sum of the name of the expression or group     */        public String getExprKey()    {        return exprKey;    }        /** Retrieves the tablename-field of the current object.     * @return the name of the cache table     */        public String getTableName()    {        return tableName;    }        /** Retrieves the creationtime-field of the current object     * @return the creation time of the cache table in milliseconds since January, 1st 1970.     */        public long getCreationTime()    {        return creationTime;    }}/** * $Log: IndexTable.java,v $ * Revision 1.13  2003/04/13 20:16:42  joerg * Package structure modified * * Revision 1.12  2003/01/01 21:04:18  joerg * Copyright-Statement aktualisiert * * Revision 1.11  2002/12/23 11:28:23  joerg * no message * * Revision 1.10  2002/12/21 19:55:04  joerg * Nicht mehr benoetigte Methoden entfernt, interne Methoden auf * private oder protected geaendert. * JavaDoc Kommentare ergaenzt. * * Revision 1.9  2002/12/19 15:54:33  joerg * Paket umbenannt in iiitLdapPlugin * * Revision 1.8  2002/12/08 16:09:46  joerg * Paket-Struktur ueberarbeitet * * Revision 1.7  2002/11/21 21:49:45  joerg * Umstellung auf JdbcConnectionPool * * Revision 1.6  2002/11/21 09:11:53  joerg * Neue Methode selectAllTableNames() * * Revision 1.5  2002/11/20 20:41:29  joerg * Klassen fuer das HAndling der DB-Tabellen in Packages * de.iiit.AccessServer.db.* verschoben * * Revision 1.4  2002/11/20 20:24:12  joerg * Reste der Spalte 'inverted' entfernt * * Revision 1.3  2002/11/20 12:42:07  joerg * Spalte 'inverted' entfernt * * Revision 1.2  2002/11/18 22:09:00  joerg * CacheManager ausgelagert als PlugIn * * Revision 1.1  2002/11/18 10:17:49  joerg * Klassen des CacheManagers in eigenes Package verschoben * * Revision 1.1  2002/11/17 22:03:26  joerg * Neue Klassen fuer 2nd-level Cache * */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区成人在线视频| 欧美视频日韩视频在线观看| 天堂资源在线中文精品| 中文字幕一区不卡| 欧美国产禁国产网站cc| 国产人妖乱国产精品人妖| 久久夜色精品一区| 久久久久久久久久久99999| 亚洲精品在线免费观看视频| 26uuu亚洲综合色| 精品久久久久香蕉网| 久久久久久免费毛片精品| 久久久久国产精品厨房| 国产精品久久久久久亚洲毛片 | 日韩精品一区第一页| 亚洲超碰精品一区二区| 樱花草国产18久久久久| 亚洲亚洲精品在线观看| 婷婷亚洲久悠悠色悠在线播放| 日本美女一区二区| 国产精品一区二区男女羞羞无遮挡| 黄一区二区三区| 成人av影院在线| jizz一区二区| 欧美精品日日鲁夜夜添| 久久综合久色欧美综合狠狠| 国产精品三级视频| 亚洲一卡二卡三卡四卡无卡久久| 日本美女视频一区二区| 成人h动漫精品一区二| 欧美视频完全免费看| 精品国产乱码久久久久久久 | 日本道在线观看一区二区| 欧美日韩视频第一区| 久久久精品蜜桃| 亚洲韩国精品一区| 成人手机在线视频| 51精品国自产在线| 综合久久久久综合| 久久国产免费看| 欧美视频在线不卡| 日本一区二区电影| 麻豆视频观看网址久久| 91丨九色丨蝌蚪富婆spa| 日韩精品一区二区三区在线播放| 国产精品福利电影一区二区三区四区| 亚洲国产三级在线| 99久久伊人精品| 久久精品网站免费观看| 亚洲成人综合视频| 91丨九色丨蝌蚪丨老版| 精品日韩在线观看| 日韩电影在线看| 在线观看亚洲a| 亚洲同性同志一二三专区| 九九国产精品视频| 欧美日韩精品福利| 亚洲一区二区3| 91丨porny丨首页| 国产精品国产自产拍在线| 国产精品一级片在线观看| 日韩一级二级三级| 精品一区二区三区免费观看| 一本到三区不卡视频| 国产精品久久午夜| 国产suv精品一区二区6| 2023国产一二三区日本精品2022| 同产精品九九九| 538prom精品视频线放| 亚洲r级在线视频| 欧美日韩精品专区| 日日夜夜精品视频天天综合网| 欧美午夜电影网| 一区二区三区欧美日韩| 欧美专区在线观看一区| 一区二区三区四区中文字幕| 色综合久久天天| 亚洲精品精品亚洲| 欧美在线观看你懂的| 亚洲a一区二区| 欧美肥妇bbw| 久热成人在线视频| 久久综合精品国产一区二区三区 | 色综合视频一区二区三区高清| 国产精品久久二区二区| 99久久99久久免费精品蜜臀| 一区二区在线看| 在线播放91灌醉迷j高跟美女 | 亚洲男人的天堂av| 欧美在线一区二区三区| 日韩vs国产vs欧美| 亚洲精品一区二区在线观看| 高清成人免费视频| 一区二区三区四区高清精品免费观看 | 欧美视频在线不卡| 理论片日本一区| 国产精品视频yy9299一区| 日本韩国欧美在线| 国产精品一二三四五| 亚洲国产精品成人久久综合一区| av动漫一区二区| 日韩电影在线看| 国产精品久久毛片av大全日韩| 欧美三级视频在线播放| 精品一区二区在线免费观看| 国产精品国产三级国产有无不卡 | 欧美日韩一级二级| 久久成人免费日本黄色| 国产精品乱码一区二区三区软件| 欧美亚洲丝袜传媒另类| 国产一区二区不卡| 亚洲精品成人少妇| 久久久一区二区| 欧美手机在线视频| 成人一区二区三区中文字幕| 亚洲电影中文字幕在线观看| 精品sm捆绑视频| 欧美日韩国产综合久久 | 国产精品日产欧美久久久久| 欧美四级电影网| 成人av电影在线| 久久aⅴ国产欧美74aaa| 亚洲一区二区成人在线观看| 国产欧美一区二区三区网站| 欧美精品色一区二区三区| av影院午夜一区| 国产乱码精品一区二区三区五月婷| 亚洲男人天堂一区| 国产色产综合色产在线视频| 欧美丰满高潮xxxx喷水动漫| 色婷婷综合久久久中文字幕| 国产大陆精品国产| 蜜桃免费网站一区二区三区 | 欧美伦理影视网| 色诱视频网站一区| 国产**成人网毛片九色 | 久久中文字幕电影| 5566中文字幕一区二区电影| 欧美专区亚洲专区| 一本久久a久久免费精品不卡| 国产精品99久久久久久久vr| 麻豆精品视频在线观看| 天天色图综合网| 亚洲成人中文在线| 亚洲国产sm捆绑调教视频 | 欧美精品欧美精品系列| 91福利视频久久久久| 91免费视频网| 色综合天天综合色综合av| 成人激情综合网站| av一区二区三区黑人| 粉嫩欧美一区二区三区高清影视| 国产一区欧美一区| 国产精品77777竹菊影视小说| 麻豆成人91精品二区三区| 欧美bbbbb| 美女诱惑一区二区| 激情五月播播久久久精品| 久草在线在线精品观看| 国产一区二区影院| 狠狠色丁香婷婷综合久久片| 国产中文一区二区三区| 国产不卡视频在线播放| 成人av片在线观看| 日本精品裸体写真集在线观看| 在线免费亚洲电影| 欧美一区二区在线免费播放| 欧美成人欧美edvon| 久久影院视频免费| 成人免费视频在线观看| 一区二区成人在线视频| 天堂资源在线中文精品| 精品一区二区免费| 成人免费va视频| 色综合天天性综合| 91精品在线麻豆| 国产片一区二区| 亚洲精品一卡二卡| 日本免费新一区视频| 国产激情一区二区三区桃花岛亚洲| 成人黄色av电影| 欧美乱妇15p| 久久婷婷一区二区三区| 亚洲精品国产品国语在线app| 日韩1区2区3区| 不卡视频在线看| 911精品国产一区二区在线| 国产亚洲va综合人人澡精品| 伊人色综合久久天天| 激情文学综合插| 在线一区二区三区做爰视频网站| 日韩欧美久久一区| 亚洲免费毛片网站| 国产在线麻豆精品观看| 欧美综合亚洲图片综合区| 精品剧情在线观看| 丝袜脚交一区二区| 91视频免费播放| 精品国产精品一区二区夜夜嗨| 亚洲女爱视频在线|