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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? postxml.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/admin/PostXML.java,v 1.3 2004/01/18 19:13:10 minhnn Exp $
 * $Author: minhnn $
 * $Revision: 1.3 $
 * $Date: 2004/01/18 19:13:10 $
 *
 * ====================================================================
 *
 * Copyright (C) 2002-2004 by MyVietnam.net
 *
 * 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.
 *
 * 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 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@MyVietnam.net
 *
 * @author: Igor Manic   imanic@users.sourceforge.net
 */
package com.mvnforum.admin;

import java.io.IOException;
import java.util.*;

import com.mvnforum.admin.importexport.XMLUtil;
import com.mvnforum.admin.importexport.XMLWriter;
import com.mvnforum.db.DAOFactory;
import com.mvnforum.db.PostDAO;
import net.myvietnam.mvncore.exception.*;
import net.myvietnam.mvncore.filter.DisableHtmlTagFilter;
import net.myvietnam.mvncore.filter.EnableHtmlTagFilter;

/**
 * @author <a href="mailto:imanic@users.sourceforge.net">Igor Manic</a>
 * @version $Revision: 1.3 $, $Date: 2004/01/18 19:13:10 $
 * <br/>
 * <code>PostXML</code> todo Igor: enter description
 *
 */
public class PostXML {

    private int postID;
    /** Returns <code>PostID</code> of this post or
      * <code>-1</code> if post is not created yet. */
    public int getPostID() { return postID; }

    private int parentPostID;
    /** Returns <code>PostID</code> of this post's parent post (which means this post is
      * reply to that parent post), or <code>0</code> if this post is not created yet or
      * has no parent post (first post in a thread). */
    public int getParentPostID() { return parentPostID; }

    private int parentThreadID;
    /** Returns <code>ThreadID</code> of this post's parent thread or
      * <code>-1</code> if this post is not created yet. */
    public int getParentThreadID() { return parentThreadID; }

    private int parentForumID;
    /** Returns <code>ForumID</code> of this post's parent forum or
      * <code>-1</code> if this post is not created yet. */
    public int getParentForumID() { return parentForumID; }

    private int parentCategoryID;
    /** Returns <code>CategoryID</code> of this post's parent category or
      * <code>-1</code> if this post is not created yet. */
    public int getParentCategoryID() { return parentCategoryID; }

    public PostXML() {
        super();
        postID=-1;
        parentPostID=0;
        parentThreadID=-1;
        parentForumID=-1;
        parentCategoryID=-1;
    }

    public void setPostID(String id) {
        postID=XMLUtil.stringToIntDef(id, -1);
    }

    public void setParentPost(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof PostXML) {
            parentPostID=((PostXML)o).getPostID();
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent post's ID");
        }
    }

    public void setParentPostID(int value) {
        if (value<0) parentPostID=-1;
        else parentPostID=value;
    }


    /* WARNING: this post can be reply (in which case next 3 setParent***() methods
     * will get PostXML from the Digester stack), or it can be the first post in
     * (a thread (in which case they will get ThreadXML from the stack)
     */
    public void setParentThread(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof ThreadXML) {
            parentThreadID=((ThreadXML)o).getThreadID();
        } else if (o instanceof PostXML) {
            parentThreadID=((PostXML)o).getParentThreadID();
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent thread's ID");
        }
    }

    public void setParentThreadID(int value) {
        if (value<0) parentThreadID=-1;
        else parentThreadID=value;
    }

    public void setParentForum(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof ThreadXML) {
            parentForumID=((ThreadXML)o).getParentForumID();
        } else if (o instanceof PostXML) {
            parentForumID=((PostXML)o).getParentForumID();
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent forum's ID");
        }
    }

    public void setParentForumID(int value) {
        if (value<0) parentForumID=-1;
        else parentForumID=value;
    }

    public void setParentCategory(Object o)
    throws ForeignKeyNotFoundException {
        if (o instanceof ThreadXML) {
            parentCategoryID=((ThreadXML)o).getParentCategoryID();
        } else if (o instanceof PostXML) {
            parentCategoryID=((PostXML)o).getParentCategoryID();
        } else {
            throw new ForeignKeyNotFoundException("Can't find parent category's ID");
        }
    }

    public void setParentCategoryID(int value) {
        if (value<0) parentCategoryID=-1;
        else parentCategoryID=value;
    }

    /**
     * Creates a post. All argument values (<code>int</code>s, <code>Timestamp</code>s, ...)
     * are represented as <code>String</code>s, because of more convenient using
     * of this method for XML parsing.
     *
     * @param memberName Member that created the post. Can be null.
     * @param lastEditMemberName Can be null.
     * @param postTopic Subject of post.
     * @param postBody Message body.
     * @param postCreationDate Can be null.
     * @param postLastEditDate Can be null.
     * @param postCreationIP Can be null.
     * @param postLastEditIP Can be null.
     * @param postEditCount Can be null.
     * @param postFormatOption Can be null.
     * @param postOption Can be null.
     * @param postStatus Can be null.
     * @param postIcon Can be null.
     * @param postAttachCount Can be null.
     *
     * @throws CreateException
     * @throws DuplicateKeyException
     * @throws ObjectNotFoundException
     * @throws DatabaseException
     * @throws ForeignKeyNotFoundException
     *
     */
    public void addPost(String memberName, String lastEditMemberName,
                        String postTopic, String postBody,
                        String postCreationDate, String postLastEditDate,
                        String postCreationIP, String postLastEditIP,
                        String postEditCount, String postFormatOption,
                        String postOption, String postStatus,
                        String postIcon, String postAttachCount)
    throws CreateException, DuplicateKeyException, ObjectNotFoundException,
    DatabaseException, ForeignKeyNotFoundException {
        if (parentPostID<0) {
            throw new CreateException("Can't create a post, because no parent post assigned yet.");
        } else if (parentThreadID<0) {
            throw new CreateException("Can't create a post, because no parent thread assigned yet.");
        } else if (parentForumID<0) {
            throw new CreateException("Can't create a post, because no parent forum assigned yet.");
        }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美肥大bbwbbw高潮| 麻豆国产欧美日韩综合精品二区 | 亚洲小说欧美激情另类| 欧美激情一区二区三区在线| 欧美mv和日韩mv国产网站| 欧美精品丝袜中出| 欧美剧情电影在线观看完整版免费励志电影 | 欧美日韩国产高清一区二区三区 | 日韩三级高清在线| 欧美性xxxxxxxx| 欧洲日韩一区二区三区| 在线一区二区三区| 在线视频国产一区| 91色porny蝌蚪| 在线亚洲一区二区| 538在线一区二区精品国产| 欧美久久一二三四区| 97aⅴ精品视频一二三区| 色综合久久综合中文综合网| 欧美高清激情brazzers| 69堂精品视频| 日韩三级在线免费观看| xnxx国产精品| 亚洲欧美自拍偷拍色图| 亚洲成精国产精品女| 午夜精品视频在线观看| 精油按摩中文字幕久久| 成人黄动漫网站免费app| 在线视频你懂得一区二区三区| 欧美精品视频www在线观看| 日韩欧美一二区| 国产精品超碰97尤物18| 午夜精品福利一区二区三区av| 麻豆传媒一区二区三区| 国产suv精品一区二区6| 色乱码一区二区三区88| 精品少妇一区二区三区在线播放 | 国产精品系列在线播放| 91网站最新网址| 日韩一卡二卡三卡四卡| 日本一区二区成人在线| 亚洲一区二区三区美女| 国产成人小视频| 欧美色图一区二区三区| 精品剧情在线观看| 亚洲小少妇裸体bbw| 国产91丝袜在线18| 制服丝袜亚洲网站| 亚洲精品国产无天堂网2021| 精品一区二区三区久久久| 日本高清成人免费播放| 欧美精品一区二区三区蜜桃| 亚洲免费观看高清完整版在线观看 | 色狠狠色狠狠综合| 久久精品一区二区三区av| 午夜成人在线视频| 91在线观看免费视频| 久久精品亚洲麻豆av一区二区| 亚洲综合小说图片| 99久久免费精品| 国产午夜一区二区三区| 日韩高清不卡一区二区三区| 91免费观看在线| 国产精品美女久久久久高潮| 久草精品在线观看| 日韩欧美国产精品| 日本伊人色综合网| 欧美精品aⅴ在线视频| 亚洲午夜精品网| 色婷婷av一区二区三区之一色屋| 国产亚洲精品久| 九九精品一区二区| 欧美一区二区三区免费观看视频| 亚洲国产一区视频| 欧美在线|欧美| 午夜电影一区二区| 91精品国产综合久久久蜜臀粉嫩 | 精品在线播放午夜| 91精品一区二区三区久久久久久| 亚洲精品免费电影| 一本色道久久综合亚洲91| 中文字幕亚洲区| 99久久免费精品| 亚洲精品国产一区二区精华液| 99re免费视频精品全部| 最新日韩在线视频| 国产91富婆露脸刺激对白| 久久久亚洲午夜电影| 国产精品综合视频| 国产欧美日韩麻豆91| 国产精品夜夜爽| 国产精品网站一区| av中文字幕亚洲| 亚洲欧美日韩在线不卡| 欧美色成人综合| 秋霞国产午夜精品免费视频| 久久综合色婷婷| 国产在线精品不卡| 最新国产精品久久精品| 欧美视频精品在线| 国产主播一区二区三区| 国产精品国产三级国产普通话三级| 97久久精品人人做人人爽| 亚洲最快最全在线视频| 日韩精品一区二区在线| 成人免费看黄yyy456| 亚洲在线中文字幕| 亚洲精品在线观看网站| 色天天综合色天天久久| 久久精品免费看| 最新日韩av在线| 日韩一区二区免费视频| 一本久道久久综合中文字幕| 美国毛片一区二区三区| 国产精品久久久久久久午夜片 | ㊣最新国产の精品bt伙计久久| 91美女在线视频| 午夜精品一区二区三区免费视频| 日韩久久久精品| 91网页版在线| 国内精品国产成人| 亚洲欧洲国产日韩| 欧美亚洲图片小说| 久久99精品视频| 亚洲乱码国产乱码精品精的特点 | 国产精品久久二区二区| 在线成人av影院| 91亚洲国产成人精品一区二区三| 日韩 欧美一区二区三区| 亚洲少妇中出一区| 国产午夜精品在线观看| 6080yy午夜一二三区久久| 色综合色狠狠天天综合色| 九色porny丨国产精品| 洋洋成人永久网站入口| 国产日韩欧美在线一区| 欧美剧情片在线观看| 97精品国产露脸对白| 国产精品夜夜嗨| 亚洲国产综合在线| 国产精品看片你懂得| 日韩一区二区三区免费看| av在线不卡电影| 国产一区二区三区观看| 日本美女视频一区二区| 亚洲自拍偷拍综合| 中文字幕第一区二区| 欧美日本精品一区二区三区| 色综合久久99| 91丨porny丨蝌蚪视频| 91在线视频播放地址| 99精品黄色片免费大全| 99久久久久免费精品国产| 成人黄色片在线观看| 波多野结衣的一区二区三区| 成人网页在线观看| 成人高清视频在线| 色综合久久综合网| 欧美日韩国产综合一区二区三区| 欧美午夜一区二区三区| 欧美顶级少妇做爰| 欧美一级午夜免费电影| 精品精品国产高清a毛片牛牛 | 亚洲精品国产无套在线观| 久久综合九色综合97婷婷| 99久久精品一区| 91亚洲国产成人精品一区二区三 | 欧美日韩激情在线| 在线亚洲+欧美+日本专区| 一本久道中文字幕精品亚洲嫩| 成+人+亚洲+综合天堂| 91啪亚洲精品| 欧美亚洲另类激情小说| 4438x亚洲最大成人网| 欧美zozozo| 国产精品美女久久久久久久| 亚洲欧美视频在线观看视频| 人人狠狠综合久久亚洲| 韩国一区二区在线观看| www.66久久| 欧美日韩一级二级三级| 精品国产乱子伦一区| 国产精品视频yy9299一区| 亚洲综合色噜噜狠狠| 免费人成网站在线观看欧美高清| 国产一区二区三区电影在线观看 | 91美女在线视频| 91精品国产一区二区| 亚洲国产激情av| 亚洲一级电影视频| 国内久久婷婷综合| 欧美视频在线观看一区| 精品国产乱码久久久久久老虎| 国产精品麻豆网站| 日本欧美久久久久免费播放网| 国产麻豆精品theporn| 在线看日本不卡| 久久伊99综合婷婷久久伊| 亚洲精品国产无天堂网2021| 狠狠久久亚洲欧美|