⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 persistentaccount.java

📁 Chinaxp 论坛源代码
💻 JAVA
字号:
/* * Copyright 2003 by Redsoft Factory Inc., * Apt 738, 68 Corporate Drive, Toronto, Ontario, Canada * All rights reserved. * * This software is the confidential and proprietary information * of Redsoft Factory Inc. ("Confidential Information").  You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Redsoft Factory. */package org.redsoft.forum.dao;/** * * @author Charles Huang * Date: 23-Feb-2004 * $Id: PersistentAccount.java,v 1.2 2004/04/10 19:56:57 cinc Exp $ */public class PersistentAccount{    public static final String PROPERTY_ACCOUNT_TABLE ="account";    public static final String PROPERTY_USER_NAME = "userName";    public static final String PROPERTY_PASSWORD = "password";    public static final String PROPERTY_EMAIL = "email";    public static final String PROPERTY_COLUMN_WRITER = "columnWriter";    public static final int USER_NAME_MAX_LENGTH = 15;    public static final int USER_NAME_MIN_LENGTH = 1;    public static final int PASSWORD_MAX_LENGTH = 15;    public static final int PASSWORD_MIN_LENGTH = 5;    public static final int EMAIL_MAX_LENGTH = 30;    public static final int EMAIL_MIN_LENGTH = 1;    String userName;    String password;    String email;    boolean columnWriter;    /**     * Default constructor for hibernate     */    public PersistentAccount() {        super();    }    /**     * Construct a new Account, default is not a columnWriter     *     * @param userName     * @param password     * @param email     */    public PersistentAccount( final String userName,                    final String password,                    final String email ) {        this.userName = userName;        this.password = password;        this.email = email;    }    /**     * Construct a new Account     * @param userName     * @param password     * @param email     * @param columnWriter     */    public PersistentAccount(String userName, String password, String email, boolean columnWriter) {        this( userName, password, email );        this.columnWriter = columnWriter;    }    /**     *  Return the name of the account     *     * @return String - User name     *     * @hibernate.id column="userName" generator-class="assigned" unsaved-value="null"  length="15"     */    public String getUserName() {        return userName;    }    /**     *  Return the password     *     * @return String - Password     *     * @hibernate.property column="password" length="15"     */    public String getPassword() {        return password;    }    /**     *  Return the email     *     * @return String - Email     *     * @hibernate.property column="email" length="30"     */    public String getEmail() {        return email;    }    public boolean isColumnWriter() {        return columnWriter;    }    public void setUserName(String userName) {        this.userName = userName;    }    public void setPassword(String password) {        this.password = password;    }    public void setEmail(String email) {        this.email = email;    }    public void setColumnWriter(boolean columnWriter) {        this.columnWriter = columnWriter;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -