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

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

?? mvnforumthreadxml.java

?? 解觖java技術中后臺無法上傳數(shù)給的情況
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/importexport/mvnforum/MvnForumThreadXML.java,v 1.7 2006/04/14 17:36:29 minhnn Exp $
 * $Author: minhnn $
 * $Revision: 1.7 $
 * $Date: 2006/04/14 17:36:29 $
 *
 * ====================================================================
 *
 * Copyright (C) 2002-2006 by MyVietnam.net
 *
 * All copyright notices regarding mvnForum MUST remain 
 * intact in the scripts and in the outputted HTML.
 * The "powered by" text/logo with a link back to
 * http://www.mvnForum.com and http://www.MyVietnam.net in 
 * the footer of the pages MUST remain visible when the pages
 * are viewed on the internet or intranet.
 *
 * 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
 * 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
 *
 * Support can be obtained from support forums at:
 * http://www.mvnForum.com/mvnforum/index
 *
 * Correspondence and Marketing Questions can be sent to:
 * info at MyVietnam net
 *
 * @author: Igor Manic   
 */
package com.mvnforum.admin.importexport.mvnforum;

import com.mvnforum.admin.ThreadXML;
import net.myvietnam.mvncore.exception.*;

/**
 * @author Igor Manic
 * @version $Revision: 1.7 $, $Date: 2006/04/14 17:36:29 $
 * <br/>
 * <code>MvnForumThreadXML</code> class encapsulates processing of
 * threads' definitions found in the backup XML file. It implements
 * methods to be called from XML parsing routine, adds some additional
 * processing and checking, and calls corresponding methods of
 * <code>ThreadXML</code> and other neccessary classes in order to perform
 * the actual creation of a thread, as well as other related items (like
 * favorite threads and thread watches).
 */
public class MvnForumThreadXML {

    private ThreadXML threadXML=null;
    private boolean threadCreated=false;
    private MvnForumForumXML parentForum =null;

    String threadMemberName          =null;
    String threadLastPostMemberName  =null;
    String threadTopic               =null;
    String threadBody                =null;
    String threadVoteCount           =null;
    String threadVoteTotalStars      =null;
    String threadCreationDate        =null;
    String threadLastPostDate        =null;
    String threadType                =null;
    String threadOption              =null;
    String threadStatus              =null;
    String threadHasPoll             =null;
    String threadViewCount           =null;
    String threadReplyCount          =null;
    String threadIcon                =null;
    String threadDuration            =null;
    String threadAttachCount         =null;

    public MvnForumThreadXML() {
        super();
        threadXML=new ThreadXML();
        threadCreated=false;
        parentForum=null;
    }

    public int getThreadID() {
        return threadXML.getThreadID();
    }

    public void setThreadID(String id) {
        threadXML.setThreadID(id);
    }

    /**
     * This method simply calls <code>setThreadID()</code>.
     * It's defined only to avoid property-setter problems with digester
     * (since it doesn't seem to recognize <code>setThreadID()</code> as a setter
     * method for <code>threadID</code> property).
     */
    public void setThreadId(String id) {
        setThreadID(id);
    }

    public int getParentCategoryID() {
        return threadXML.getParentCategoryID(); //==parentForum.getParentCategoryID();
    }

    public int getParentForumID() {
        return threadXML.getParentForumID(); //==parentForum.getForumID();
    }

    public void setParentForum(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof MvnForumForumXML) {
            parentForum=(MvnForumForumXML)o;
            //warning: parent forum might be not added to database yet
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent forum.");
        }
    }

    public void setThreadMemberName(String value) {
        threadMemberName=value;
    }

    public void setThreadLastPostMemberName(String value) {
        threadLastPostMemberName=value;
    }

    public void setThreadTopic(String value) {
        threadTopic=value;
    }

    public void setThreadBody(String value) {
        threadBody=value;
    }

    public void setThreadVoteCount(String value) {
        threadVoteCount=value;
    }

    public void setThreadVoteTotalStars(String value) {
        threadVoteTotalStars=value;
    }

    public void setThreadCreationDate(String value) {
        threadCreationDate=value;
    }

    public void setThreadLastPostDate(String value) {
        threadLastPostDate=value;
    }

    public void setThreadType(String value) {
        threadType=value;
    }

    public void setThreadOption(String value) {
        threadOption=value;
    }

    public void setThreadStatus(String value) {
        threadStatus=value;
    }

    public void setThreadHasPoll(String value) {
        threadHasPoll=value;
    }

    public void setThreadViewCount(String value) {
        threadViewCount=value;
    }

    public void setThreadReplyCount(String value) {
        threadReplyCount=value;
    }

    public void setThreadIcon(String value) {
        threadIcon=value;
    }

    public void setThreadDuration(String value) {
        threadDuration=value;
    }

    public void setThreadAttachCount(String value) {
        threadAttachCount=value;
    }

    public void addThread() throws CreateException, DuplicateKeyException,
    ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException, BadInputException {
        /* First, check if the digester already called this method.
         * It will happen even under normal circumstances, if this thread has
         * subelements that need it already be defined, so they first call
         * this method to create thread before creating data that refer him.
         */
        if (threadCreated) return;
        /* Second, create parent forum if it's not yet created. */
        if (parentForum!=null) {
            parentForum.addForum();
            threadXML.setParentForumID(parentForum.getForumID());
            threadXML.setParentCategoryID(parentForum.getParentCategoryID());
        }

        ImportMvnForum.addMessage("Adding thread \""+threadTopic+"\".");
        threadXML.addThread(threadMemberName, threadLastPostMemberName,
                            threadTopic, threadBody,
                            threadVoteCount, threadVoteTotalStars,
                            threadCreationDate, threadLastPostDate,
                            threadType, threadOption,
                            threadStatus, threadHasPoll,
                            threadViewCount, threadReplyCount,
                            threadIcon, threadDuration, threadAttachCount);
        threadCreated=true;

        if (parentForum!=null) {
            parentForum.updateAddedThread(this);
        }
    }

    public void addThreadWatch(String memberName,
                String watchType, String watchOption,
                String watchStatus, String watchCreationDate,
                String watchLastSentDate, String watchEndDate)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!threadCreated) || (threadXML.getThreadID()<0) ) {
            addThread();
        }
        ImportMvnForum.addMessage("Adding thread watch for member \""+memberName+"\".");
        threadXML.addThreadWatch(memberName,
                  watchType, watchOption, watchStatus,
                  watchCreationDate, watchLastSentDate, watchEndDate);
    }

    public void addFavoriteThread(String memberName,
                String favoriteCreationDate, String favoriteType,
                String favoriteOption, String favoriteStatus)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException, BadInputException {
        if ( (!threadCreated) || (threadXML.getThreadID()<0) ) {
            addThread();
        }
        ImportMvnForum.addMessage("Adding favorite-thread for member \""+memberName+"\".");
        threadXML.addFavoriteThread(memberName,
                  favoriteCreationDate, favoriteType,
                  favoriteOption, favoriteStatus);
    }

    public void updateAddedPost(MvnForumPostXML subPost, String postUsername, String postCreationDate) {
        if ((!threadCreated) || (threadXML.getThreadID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        //if (subPost.getParentPostID()!=0) {//reply to a post in thread, so we increase the ThreadReplyCount
        //    threadXML.increaseReplyCount();
        //}
        //threadXML.updateLastPostMemberName(postUsername);
        //threadXML.updateLastPostDate(postCreationDate);
        if (parentForum!=null) {
            parentForum.updateAddedPost(subPost, postUsername, postCreationDate);
        }
    }

    public void updateAddedAttachment(MvnForumAttachmentXML subAttachment) {
        if ((!threadCreated) || (threadXML.getThreadID()<0)) return; //todo Igor: process this error
        //do nothing; MVN Forum XML already has correct final values for these:
        // //check what is needed to be updated
        if (parentForum!=null) {
            parentForum.updateAddedAttachment(subAttachment);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产无天堂网2021| 亚洲一区二区四区蜜桃| 一区二区三区四区视频精品免费 | 69堂成人精品免费视频| 中文无字幕一区二区三区| 亚洲1区2区3区4区| 色综合久久中文综合久久97| 精品国精品自拍自在线| 亚洲在线视频网站| 99麻豆久久久国产精品免费| 欧美大片日本大片免费观看| 亚洲高清不卡在线| 一本大道久久a久久综合婷婷| 国产日韩欧美在线一区| 国产一区二区三区高清播放| 欧美丰满少妇xxxbbb| 亚洲欧美日韩精品久久久久| 成人爽a毛片一区二区免费| 久久嫩草精品久久久久| 久久av资源网| 欧美成人伊人久久综合网| 亚洲一区电影777| 日本高清无吗v一区| 亚洲男人的天堂av| 91日韩在线专区| 亚洲日本免费电影| 色噜噜狠狠成人中文综合| 中文字幕亚洲欧美在线不卡| 懂色av中文一区二区三区| 久久久.com| 成人综合婷婷国产精品久久蜜臀| 欧美激情在线免费观看| 国产成人精品一区二| 中文字幕乱码久久午夜不卡| 国产mv日韩mv欧美| 国产精品欧美一区二区三区| 91丨九色丨蝌蚪富婆spa| 亚洲色图丝袜美腿| 欧美三级乱人伦电影| 日韩精品乱码av一区二区| 3751色影院一区二区三区| 麻豆freexxxx性91精品| 精品国产自在久精品国产| 国产精品一区二区久久精品爱涩| 国产欧美日韩另类视频免费观看| 成人开心网精品视频| 亚洲日韩欧美一区二区在线| 欧美影视一区在线| 毛片av一区二区| 国产日产欧美一区二区视频| 91香蕉国产在线观看软件| 亚洲综合在线五月| 日韩一级二级三级| 成人一级片网址| 亚洲高清免费视频| 久久蜜桃一区二区| 色综合天天视频在线观看| 偷窥国产亚洲免费视频| 久久久美女毛片| 91视视频在线观看入口直接观看www| 亚洲国产毛片aaaaa无费看| 欧美成人一区二区三区在线观看| 成人av免费在线观看| 午夜精品福利一区二区蜜股av| 2021中文字幕一区亚洲| 色综合激情五月| 久色婷婷小香蕉久久| 中文字幕一区av| 91麻豆精品久久久久蜜臀| 成人做爰69片免费看网站| 亚洲国产精品久久久久婷婷884| 精品美女一区二区三区| 91国偷自产一区二区使用方法| 麻豆久久一区二区| 综合激情成人伊人| 精品国产乱码久久久久久久| 91久久国产最好的精华液| 国产美女在线精品| 午夜精品久久久久久久99樱桃| 亚洲国产精品精华液ab| 777色狠狠一区二区三区| 91色视频在线| 国产一区亚洲一区| 午夜日韩在线电影| 亚洲同性同志一二三专区| 精品国产免费久久 | 久久这里只精品最新地址| 日本道在线观看一区二区| 国产69精品一区二区亚洲孕妇| 亚洲国产综合视频在线观看| 中文字幕不卡在线观看| 亚洲精品在线三区| 日韩一区二区在线看| 欧美性色欧美a在线播放| 99视频精品全部免费在线| 国内精品国产成人| 美女脱光内衣内裤视频久久影院| 亚洲精品中文字幕在线观看| 国产精品久久久久影院色老大| 精品久久久久久久久久久久包黑料| 欧美三级在线播放| 欧美三级视频在线观看| 在线视频一区二区三| 91欧美一区二区| 99热99精品| 99精品视频在线播放观看| 国产成人综合精品三级| 久久69国产一区二区蜜臀| 日本美女视频一区二区| 日韩国产精品91| 日韩制服丝袜先锋影音| 首页国产丝袜综合| 丝袜诱惑亚洲看片| 日产国产欧美视频一区精品| 偷拍与自拍一区| 天堂在线一区二区| 蜜臀av在线播放一区二区三区| 日精品一区二区| 蜜桃在线一区二区三区| 久久国产日韩欧美精品| 精品中文字幕一区二区| 国产麻豆一精品一av一免费| 国产精品一区免费在线观看| 国产激情视频一区二区三区欧美| 国产成人综合亚洲91猫咪| 99久久99久久综合| 91成人免费在线| 91麻豆精品国产91久久久资源速度 | 从欧美一区二区三区| 丁香婷婷综合色啪| 日本国产一区二区| 欧美一区午夜精品| 26uuu亚洲综合色欧美| 中文字幕+乱码+中文字幕一区| 亚洲视频一二区| 日韩av一二三| 成人精品国产免费网站| 色婷婷激情综合| 日韩午夜在线播放| 国产精品狼人久久影院观看方式| 一区二区三区四区av| 日韩—二三区免费观看av| 国产成人免费xxxxxxxx| 欧美性猛交xxxxxx富婆| 欧美大片在线观看一区二区| 中文字幕亚洲精品在线观看| 午夜精品久久久久久久| 国产精品12区| 欧美色图免费看| 久久久久久一级片| 亚洲国产成人av| 成人免费毛片aaaaa**| 欧美巨大另类极品videosbest | 91丨九色丨黑人外教| 91精品国产综合久久精品图片| 久久精品亚洲麻豆av一区二区| 亚洲精品高清在线| 极品美女销魂一区二区三区免费 | 亚洲综合男人的天堂| 国内精品免费**视频| 91福利在线播放| 欧美激情在线看| 美女性感视频久久| 91久久国产最好的精华液| 久久久久国色av免费看影院| 亚洲一区免费观看| 国产sm精品调教视频网站| 欧美二区三区的天堂| 亚洲另类色综合网站| 国产99久久久国产精品| 欧美精品高清视频| 亚洲精品视频一区二区| 风间由美一区二区av101| 欧美成人一区二区三区片免费| 亚洲国产精品久久一线不卡| 91在线看国产| 国产精品国产自产拍高清av| 韩国午夜理伦三级不卡影院| 欧美日韩国产大片| 一区二区三区日韩在线观看| 丁香另类激情小说| 久久精品男人天堂av| 国产在线精品视频| 精品美女被调教视频大全网站| 日韩一区精品字幕| 在线不卡一区二区| 亚洲第一在线综合网站| 色婷婷亚洲精品| 亚洲色图欧美在线| 99视频国产精品| 亚洲视频在线一区观看| 99精品国产99久久久久久白柏| 国产欧美一区二区精品秋霞影院| 国产乱码一区二区三区| 精品久久99ma| 国产一区二区三区免费播放| 国产日韩精品一区二区三区| 福利一区福利二区| 国产精品丝袜在线| 97se亚洲国产综合自在线不卡|