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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? dbgroupiterator.java

?? Jvie論壇的程序
?? JAVA
字號(hào):
/**
 * Copyright (C) 2001 Yasna.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL YASNA.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL COOLSERVLETS.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.Yasna.forum.database;

import java.util.*;
//JDK1.1// import com.sun.java.util.collections.*;
import java.sql.*;
import com.Yasna.forum.*;

/**
 * Iterates through all the groups in the system.
 */
public class DbGroupIterator implements Iterator, ListIterator {

    /** DATABASE QUERIES **/
    private static final String ALL_GROUPS = "SELECT groupID from yazdGroup";

    private int currentIndex = -1;
    private int [] groups;

    private ProfileManager profileManager;

    protected DbGroupIterator(ProfileManager profileManager) {
        this.profileManager = profileManager;
        //We don't know how many results will be returned, so store them
        //in an ArrayList.
        ArrayList tempGroups = new ArrayList();
        Connection con = null;
        PreparedStatement pstmt = null;
        try {
            con = DbConnectionManager.getConnection();
            pstmt = con.prepareStatement(ALL_GROUPS);
            ResultSet rs = pstmt.executeQuery();
            while (rs.next()) {
                tempGroups.add(new Integer(rs.getInt("groupID")));
            }
        }
        catch( SQLException sqle ) {
            System.err.println("Error in DbGroupIterator:constructor()-" + sqle);
        }
        finally {
            try {  pstmt.close(); }
            catch (Exception e) { e.printStackTrace(); }
            try {  con.close();   }
            catch (Exception e) { e.printStackTrace(); }
        }
        groups = new int[tempGroups.size()];
        for (int i=0; i<groups.length; i++) {
            groups[i] = ((Integer)tempGroups.get(i)).intValue();
        }
    }

    protected DbGroupIterator(ProfileManager profileManager, int startIndex,
            int numResults)
    {
        this.profileManager = profileManager;

        int[] tempResults = new int[numResults];
        //It's very possible that there might not be as many results to get
        //as we requested. Therefore, we keep track of how many results we
        //get by keeping a count.
        int resultCount = 0;

        Connection con = null;
        PreparedStatement pstmt = null;

        try {
            con = DbConnectionManager.getConnection();
            pstmt = con.prepareStatement(ALL_GROUPS);
            ResultSet rs = pstmt.executeQuery();
            //Move to start of index
            for (int i=0; i<startIndex; i++) {
                rs.next();
            }
            //Now read in desired number of results
            for (int i=0; i<numResults; i++) {
                if (rs.next()) {
                    tempResults[resultCount] = rs.getInt("groupID");
                    resultCount++;
                }
                else {
                    break;
                }
            }
        }
        catch( SQLException sqle ) {
            System.err.println("Error in DbGroupIterator:constructor()-" + sqle);
        }
        finally {
            try {  pstmt.close(); }
            catch (Exception e) { e.printStackTrace(); }
            try {  con.close();   }
            catch (Exception e) { e.printStackTrace(); }
        }
        groups = new int[resultCount];
        for (int i=0; i<resultCount; i++) {
            groups[i] = tempResults[i];
        }
    }

    /**
     * Returns true if there are more groups left to iteratate through.
     */
    public boolean hasNext() {
        return (currentIndex+1 < groups.length);
    }

    /**
     * Returns the next Group.
     */
    public Object next() throws java.util.NoSuchElementException {
        Group group = null;
        currentIndex++;
        if (currentIndex >= groups.length) {
            throw new java.util.NoSuchElementException();
        }
        try {
            group = profileManager.getGroup(groups[currentIndex]);
        }
        catch (GroupNotFoundException gnfe) {
            System.err.println(gnfe);
        }
        return group;
    }

    /**
     * For security reasons, the remove operation is not supported. Use
     * ProfileManager.deleteGroup() instead.
     *
     * @see ProfileManager
     */
    public void remove() {
        throw new UnsupportedOperationException();
    }

    /**
     * Returns true if there are more groups left to iterate through backwards.
     */
    public boolean hasPrevious() {
        return (currentIndex > 0);
    }

    /**
     * For security reasons, the add operation is not supported. Use
     * ProfileManager instead.
     *
     * @see ProfileManager
     */
    public void add(Object o) throws UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }

    /**
     * For security reasons, the set operation is not supported. Use
     * ProfileManager instead.
     *
     * @see ProfileManager
     */
    public void set(Object o) throws UnsupportedOperationException {
        throw new UnsupportedOperationException();
    }

    /**
     * Returns the index number that would be returned with a call to next().
     */
    public int nextIndex() {
        return currentIndex+1;
    }

    /**
     * Returns the previous group.
     */
    public Object previous() throws java.util.NoSuchElementException {
        Group group = null;
        currentIndex--;
        if (currentIndex < 0) {
            currentIndex++;
            throw new java.util.NoSuchElementException();
        }
        try {
            group = profileManager.getGroup(groups[currentIndex]);
        }
        catch (GroupNotFoundException gnfe) {
            System.err.println(gnfe);
        }
        return group;
    }

    /**
     * Returns the index number that would be returned with a call to previous().
     */
    public int previousIndex() {
        return currentIndex-1;
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91看片淫黄大片一级在线观看| 午夜欧美在线一二页| 亚洲三级小视频| 午夜精品福利一区二区蜜股av| 久久99久久精品欧美| 成人免费va视频| 欧美日韩免费电影| www日韩大片| 国产精品美女视频| 肉色丝袜一区二区| 国产91丝袜在线观看| 欧美日韩久久久久久| 国产校园另类小说区| 亚洲电影在线免费观看| 国产夫妻精品视频| 欧美日韩精品欧美日韩精品一 | 天天综合天天综合色| 国模冰冰炮一区二区| 99riav一区二区三区| 欧美一区二区在线看| 中文一区在线播放| 日本午夜精品一区二区三区电影| 国产成人精品亚洲777人妖| 欧美性大战久久久久久久| 久久综合久久综合亚洲| 同产精品九九九| 丁香婷婷综合色啪| 欧美videossexotv100| 亚洲女与黑人做爰| 国产成人在线观看免费网站| 欧美日韩一区成人| 自拍偷自拍亚洲精品播放| 久久精品av麻豆的观看方式| 欧美亚洲综合另类| 国产精品欧美精品| 九九热在线视频观看这里只有精品| 91国在线观看| 中文字幕制服丝袜一区二区三区| 免费观看日韩av| 欧美午夜免费电影| ...av二区三区久久精品| 韩国精品一区二区| 91精品中文字幕一区二区三区| 亚洲人成网站在线| 成人午夜av电影| 久久日韩粉嫩一区二区三区| 午夜一区二区三区视频| 色一情一乱一乱一91av| 国产精品丝袜久久久久久app| 国精产品一区一区三区mba桃花| 欧美综合色免费| 亚洲欧美激情在线| eeuss国产一区二区三区| 国产亚洲1区2区3区| 国产乱码精品一区二区三区av| 91精品欧美综合在线观看最新| 亚洲午夜私人影院| 在线亚洲一区观看| 亚洲欧美日韩国产成人精品影院 | 中文字幕一区二区不卡| 国产乱子伦一区二区三区国色天香| 5858s免费视频成人| 日日夜夜精品免费视频| 欧美性一区二区| 亚洲国产精品一区二区久久 | 亚洲同性gay激情无套| 高清国产一区二区三区| 国产丝袜在线精品| 国产很黄免费观看久久| 欧美国产成人在线| 成人听书哪个软件好| 中文字幕高清一区| 欧美一区二区女人| 天天综合色天天| 91精品国模一区二区三区| 日本成人在线看| 91麻豆精品国产无毒不卡在线观看 | 久久精品国产精品亚洲精品| 日韩女优制服丝袜电影| 麻豆精品一二三| 欧美videos大乳护士334| 国产又黄又大久久| 中文字幕高清不卡| 91麻豆高清视频| 一级女性全黄久久生活片免费| 色国产综合视频| 亚洲成av人片一区二区三区| 欧美福利电影网| 久久成人免费电影| 国产欧美va欧美不卡在线 | 亚洲精品国产一区二区精华液 | 亚洲在线一区二区三区| 欧美午夜一区二区三区 | 精品国产一区二区国模嫣然| 国产米奇在线777精品观看| 中文字幕精品一区| 色播五月激情综合网| 婷婷激情综合网| 2021中文字幕一区亚洲| 成人小视频免费观看| 亚洲黄色av一区| 欧美一区二区三区视频免费播放| 狠狠色狠狠色综合日日91app| 国产精品国产三级国产三级人妇| 一本大道久久精品懂色aⅴ| 日韩av电影免费观看高清完整版在线观看 | 一区二区在线观看免费| 日韩午夜av一区| 成人深夜视频在线观看| 亚洲成人午夜电影| 久久久精品免费网站| 91女神在线视频| 美女网站在线免费欧美精品| 国产欧美日韩久久| 精品视频123区在线观看| 精品一区二区免费在线观看| 自拍av一区二区三区| 91.麻豆视频| 成人黄色在线网站| 偷拍与自拍一区| 欧美国产欧美亚州国产日韩mv天天看完整 | 日韩视频免费观看高清在线视频| 国产成人综合亚洲91猫咪| 亚洲国产裸拍裸体视频在线观看乱了| 欧美xxx久久| 日本高清视频一区二区| 九九国产精品视频| 亚洲人成小说网站色在线| 欧美电影免费观看高清完整版| 91伊人久久大香线蕉| 久草这里只有精品视频| 夜夜嗨av一区二区三区| 国产区在线观看成人精品 | 丝袜亚洲另类欧美| 国产精品私人自拍| 欧美zozo另类异族| 在线观看视频一区| 成人晚上爱看视频| 精品亚洲免费视频| 亚洲电影在线免费观看| 国产精品国产三级国产a | 成人激情综合网站| 久色婷婷小香蕉久久| 亚洲一区二区四区蜜桃| 国产精品久久久久aaaa| 日韩精品资源二区在线| 欧美曰成人黄网| av午夜精品一区二区三区| 精品一区免费av| 日韩 欧美一区二区三区| 亚洲欧洲综合另类| 国产精品大尺度| 久久毛片高清国产| 日韩一区二区中文字幕| 欧美日韩精品高清| 欧美主播一区二区三区| 99久久精品99国产精品| 粉嫩蜜臀av国产精品网站| 国产一区二区三区av电影| 日本免费在线视频不卡一不卡二| 亚洲国产乱码最新视频| 国产毛片精品视频| 久久精品久久综合| 日本视频在线一区| 天天影视色香欲综合网老头| 亚洲激情六月丁香| 亚洲男同性恋视频| 国产精品久久777777| 国产精品美女www爽爽爽| 国产欧美一二三区| 国产人成一区二区三区影院| 亚洲精品在线一区二区| 欧美xingq一区二区| 欧美成人vps| 精品国产一二三| 精品成人在线观看| 精品日韩在线一区| 精品国产123| 2020国产精品自拍| 久久女同性恋中文字幕| 久久久久国产精品免费免费搜索| 精品国产免费久久| 国产亚洲婷婷免费| 国产欧美一区二区精品久导航| 久久久不卡网国产精品一区| 精品国产免费视频| 国产女人水真多18毛片18精品视频| 国产亚洲一区字幕| 国产日韩av一区| 亚洲欧洲99久久| 亚洲精品久久7777| 亚洲123区在线观看| 日本成人在线看| 国产一区二区三区不卡在线观看| 高清国产午夜精品久久久久久| 成人avav影音| 欧美三级在线播放| 日韩欧美一区在线| 欧美极品美女视频| 一区二区三区中文在线观看|