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

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

?? user.java

?? hsql是很有名的嵌入式數據庫
?? JAVA
字號:
/* Copyright (c) 1995-2000, The Hypersonic SQL Group.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 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.
 *
 * Neither the name of the Hypersonic SQL Group nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS 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 THE HYPERSONIC SQL GROUP,
 * OR 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 the Hypersonic SQL Group.
 *
 *
 * For work added by the HSQL Development Group:
 *
 * Copyright (c) 2001-2005, The HSQL Development Group
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 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.
 *
 * Neither the name of the HSQL Development Group nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS 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 HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
 * OR 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.
 */


package org.hsqldb;import org.hsqldb.HsqlNameManager.HsqlName;import org.hsqldb.lib.HashSet;import org.hsqldb.lib.IntValueHashMap;// fredt@users 20021103 - patch 1.7.2 - fix bug in revokeAll()// fredt@users 20021103 - patch 1.7.2 - allow for drop table, etc.// when tables are dropped or renamed, changes are reflected in the// permissions held in User objects.// boucherb@users 200208-200212 - doc 1.7.2 - update// boucherb@users 200208-200212 - patch 1.7.2 - metadata// unsaved@users - patch 1.8.0 moved right managament to new classes/** * A User Object holds the name, password for a * particular database user.<p> * * Enhanced in successive versions of HSQLDB. * * @author Thomas Mueller (Hypersonic SQL Group) * @version 1.8.0 * @since Hypersonic SQL */public class User {    /** true if this user is the sys user. */    private boolean isSys;    /** true if this user is the public user. */    private boolean isPublic;    /** user name. */    private String sName;    /** password. */    private String sPassword;    /** grantee object. */    private Grantee grantee;    /**     * Constructor     */    User(String name, String password,            Grantee inGrantee) throws HsqlException {        sName   = name;        grantee = inGrantee;        boolean granteeOk = grantee != null                            || GranteeManager.isReserved(name);        if (!granteeOk) {            Trace.doAssert(false,                           Trace.getMessage(Trace.MISSING_GRANTEE) + ": "                           + name);        }        setPassword(password);        isSys    = name.equals(GranteeManager.SYSTEM_AUTHORIZATION_NAME);        isPublic = name.equals(GranteeManager.PUBLIC_USER_NAME);    }    String getName() {        return sName;    }    void setPassword(String password) throws HsqlException {        // TODO:        // checkComplexity(password);        // requires: UserManager.createSAUser(), UserManager.createPublicUser()        sPassword = password;    }    /**     * Checks if this object's password attibute equals     * specified argument, else throws.     */    void checkPassword(String test) throws HsqlException {        Trace.check(test.equals(sPassword), Trace.ACCESS_IS_DENIED);    }    /**     * Returns true if this User object is for a user with the     * database administrator role.     */    boolean isSys() {        return isSys;    }    /**     * Returns true if this User object represents the PUBLIC user     */    boolean isPublic() {        return isPublic;    }    /**     * Returns the ALTER USER DDL character sequence that preserves the     * this user's current password value and mode. <p>     *     * @return  the DDL     */    String getAlterUserDDL() {        StringBuffer sb = new StringBuffer();        sb.append(Token.T_ALTER).append(' ');        sb.append(Token.T_USER).append(' ');        sb.append(sName).append(' ');        sb.append(Token.T_SET).append(' ');        sb.append(Token.T_PASSWORD).append(' ');        sb.append('"').append(sPassword).append('"');        return sb.toString();    }    /**     * returns the DDL string     * sequence that creates this user.     *     */    String getCreateUserDDL() {        StringBuffer sb = new StringBuffer(64);        sb.append(Token.T_CREATE).append(' ');        sb.append(Token.T_USER).append(' ');        sb.append(sName).append(' ');        sb.append(Token.T_PASSWORD).append(' ');        sb.append('"').append(sPassword).append('"');        return sb.toString();    }    /**     * Retrieves the redo log character sequence for connecting     * this user     *     * @return the redo log character sequence for connecting     *      this user     */    public String getConnectStatement() {        StringBuffer sb = new StringBuffer();        sb.append(Token.T_CONNECT).append(' ');        sb.append(Token.T_USER).append(' ');        sb.append(sName);        return sb.toString();    }    /**     * Retrieves the Grantee object for this User.     */    Grantee getGrantee() {        return grantee;    }    /**     * Sets the Grantee object for this User.     * This is done in the constructor for all users except the special     * users SYSTEM and PUBLIC, which have to be set up before the     * Managers are initialized.     */    void setGrantee(Grantee inGrantee) throws HsqlException {        if (grantee != null) {            Trace.doAssert(false,                           Trace.getMessage(Trace.CHANGE_GRANTEE) + ": "                           + sName);        }        grantee = inGrantee;    }    // Legacy wrappers    /**     * Returns true if this User object is for a user with the     * database administrator role.     */    boolean isAdmin() {        return grantee.isAdmin();    }    /**     * Retrieves a string[] whose elements are the names, of the rights     * explicitly granted with the GRANT command to this <code>User</code>     * object on the <code>Table</code> object identified by the     * <code>name</code> argument.     * * @return array of Strings naming the rights granted to this     *        <code>User</code> object on the <code>Table</code> object     *        identified by the <code>name</code> argument.     * @param name a <code>Table</code> object identifier     *     */    String[] listGrantedTablePrivileges(HsqlName name) {        return grantee.listGrantedTablePrivileges(name);    }    /**     * Retrieves the distinct set of Java <code>Class</code> FQNs     * for which this <code>User</code> object has been     * granted <code>ALL</code> (the Class execution privilege). <p>     * @param andToPublic if <code>true</code>, then the set includes the     *        names of classes accessible to this <code>User</code> object     *        through grants to its <code>PUBLIC</code> <code>User</code>     *        object attribute, else only direct grants are inlcuded.     * @return the distinct set of Java Class FQNs for which this     *        this <code>User</code> object has been granted     *        <code>ALL</code>.     *     */    HashSet getGrantedClassNames(boolean andToPublic) throws HsqlException {        return grantee.getGrantedClassNames(andToPublic);    }    /**     * Retrieves the map object that represents the rights that have been     * granted on database objects.  <p>     *     * The map has keys and values with the following interpretation: <P>     *     * <UL>     * <LI> The keys are generally (but not limited to) objects having     *      an attribute or value equal to the name of an actual database     *      object.     *     * <LI> Specifically, the keys act as database object identifiers.     *     * <LI> The values are always Integer objects, each formed by combining     *      a set of flags, one for each of the access rights defined in     *      UserManager: {SELECT, INSERT, UPDATE and DELETE}.     * </UL>     */    IntValueHashMap getRights() {        return grantee.getRights();    }    /**     * Checks that this User object is for a user with the     * database administrator role. Otherwise it throws.     */    void checkAdmin() throws HsqlException {        grantee.checkAdmin();    }    /**     * Checks if any of the rights represented by the rights     * argument have been granted on the specified database object. <p>     *     * This is done by checking that a mapping exists in the rights map     * from the dbobject argument for at least one of the rights     * contained in the rights argument. Otherwise, it throws.     */    void check(Object dbobject, int rights) throws HsqlException {        grantee.check(dbobject, rights);    }    /**     * Returns true if any of the rights represented by the     * rights argument has been granted on the database object identified     * by the dbobject argument. <p>     *     * This is done by checking that a mapping exists in the rights map     * from the dbobject argument for at least one of the rights     * contained in the rights argument.     */    boolean isAccessible(Object dbobject, int rights) throws HsqlException {        return grantee.isAccessible(dbobject, rights);    }    /**     * Returns true if any right at all has been granted to this User object     * on the database object identified by the dbobject argument.     */    boolean isAccessible(Object dbobject) throws HsqlException {        return grantee.isAccessible(dbobject);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
全部av―极品视觉盛宴亚洲| 亚洲成人动漫在线观看| 欧美日韩综合色| 波多野结衣中文字幕一区 | 国产日韩v精品一区二区| 日韩欧美在线网站| 精品久久99ma| xvideos.蜜桃一区二区| 国产午夜精品久久久久久久| 久久久777精品电影网影网| 日本一区二区高清| 亚洲精品老司机| 午夜久久久久久电影| 久草在线在线精品观看| 国产真实乱对白精彩久久| 国产精品888| 一道本成人在线| 91精品在线免费| 国产三级精品三级| 日韩伦理电影网| 三级精品在线观看| 国产麻豆日韩欧美久久| 99热这里都是精品| 88在线观看91蜜桃国自产| 精品乱人伦一区二区三区| 中文字幕在线不卡| 婷婷成人综合网| 粉嫩av亚洲一区二区图片| 色综合激情久久| 日韩精品一区二| 伊人一区二区三区| 久久9热精品视频| 91影院在线免费观看| 日韩美女视频一区二区在线观看| 久久久久9999亚洲精品| 亚洲国产日韩一级| 国产成人精品在线看| 欧美日韩精品一区二区三区蜜桃| 精品久久久久一区二区国产| 亚洲美女视频一区| 国产精品夜夜爽| 欧美人伦禁忌dvd放荡欲情| 中文字幕免费一区| 狠狠色狠狠色综合| 欧美精品乱人伦久久久久久| 中文字幕制服丝袜一区二区三区| 日本v片在线高清不卡在线观看| 99精品国产视频| 欧美国产禁国产网站cc| 麻豆精品在线观看| 色综合天天视频在线观看| 精品福利视频一区二区三区| 亚洲成人免费在线观看| 99精品黄色片免费大全| 国产欧美一区二区在线观看| 蓝色福利精品导航| 欧美日韩1区2区| 亚洲香蕉伊在人在线观| 91视频免费观看| 国产精品久久久久久久久免费相片 | 精品一区二区三区在线观看国产| 91福利视频在线| 亚洲欧美一区二区在线观看| 国产一区二区三区视频在线播放| 91精品国产欧美一区二区18 | 国产精品456| 欧美zozo另类异族| 麻豆91精品视频| 欧美一卡2卡三卡4卡5免费| 日韩精品久久理论片| 欧美性色综合网| 亚洲国产成人va在线观看天堂| 色成年激情久久综合| 亚洲欧美国产77777| 一本久久精品一区二区| 亚洲猫色日本管| 91香蕉视频污在线| 亚洲欧美视频在线观看| 日本道精品一区二区三区| 依依成人精品视频| 欧美绝品在线观看成人午夜影视| 香蕉乱码成人久久天堂爱免费| 欧美视频中文字幕| 久久超碰97人人做人人爱| 久久影院午夜片一区| 国产在线观看一区二区| 国产三级精品三级| 一本大道久久a久久精品综合| 一区二区三区不卡视频在线观看| 日本大香伊一区二区三区| 亚洲一二三区视频在线观看| 91精品欧美久久久久久动漫 | 亚洲午夜电影网| 91精品免费在线观看| 国内精品国产成人国产三级粉色| 国产清纯美女被跳蛋高潮一区二区久久w | 成人在线综合网站| 日韩久久一区二区| 欧美日韩夫妻久久| 国产激情视频一区二区三区欧美| 一区在线观看免费| 欧美高清视频不卡网| 韩国午夜理伦三级不卡影院| 国产精品电影一区二区| 在线观看视频欧美| 精品一区二区在线观看| 亚洲色图都市小说| 日韩一卡二卡三卡| 91蜜桃在线观看| 青椒成人免费视频| 最新欧美精品一区二区三区| 69久久99精品久久久久婷婷| 国产乱一区二区| 一区二区在线观看视频| 精品成人a区在线观看| 一本到不卡免费一区二区| 精品亚洲国内自在自线福利| 一区二区三区四区视频精品免费| 精品少妇一区二区三区在线播放| 91黄视频在线| 国产成人av影院| 奇米色777欧美一区二区| 亚洲欧美日韩一区二区 | 日韩毛片一二三区| 久久综合色综合88| 7777女厕盗摄久久久| 91丨porny丨国产入口| 国产伦精品一区二区三区免费迷| 一区二区三区在线观看网站| 国产欧美久久久精品影院| 日韩亚洲欧美一区二区三区| 91久久奴性调教| www.色综合.com| 国产v日产∨综合v精品视频| 蜜桃一区二区三区四区| 亚洲福利视频一区| 亚洲精品成人a在线观看| 亚洲国产精品二十页| 欧美精品一区二区久久久| 欧美一区二区在线免费播放| 欧美午夜理伦三级在线观看| 91久久精品午夜一区二区| www.欧美日韩| 成人动漫精品一区二区| 国产一区二区影院| 国产最新精品精品你懂的| 久久超碰97中文字幕| 免费人成在线不卡| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲国产美女搞黄色| 一区二区三区视频在线观看| 亚洲欧美另类在线| 亚洲最新视频在线观看| 一区二区高清免费观看影视大全| 亚洲精品一二三区| 亚洲主播在线播放| 亚洲成人免费视| 美女一区二区久久| 精彩视频一区二区| 懂色一区二区三区免费观看| 成人网男人的天堂| 色综合一区二区三区| 欧美日韩一区不卡| 在线免费观看不卡av| 欧美色爱综合网| 日韩欧美国产综合在线一区二区三区| 91精品国产色综合久久不卡电影 | 久久无码av三级| 欧美经典三级视频一区二区三区| 欧美激情一区三区| 一区二区三区四区在线播放 | 精品亚洲porn| 国产.精品.日韩.另类.中文.在线.播放| 成人自拍视频在线观看| 日本道精品一区二区三区| 欧美一区二区三区在| 国产欧美日韩在线视频| 亚洲综合一区二区精品导航| 日韩综合小视频| 风间由美一区二区三区在线观看 | 国产乱码精品一区二区三区av| 成人动漫精品一区二区| 在线观看日韩毛片| 精品粉嫩超白一线天av| 亚洲精选在线视频| 蜜臀av一区二区| 91亚洲精品久久久蜜桃网站 | 国产成人在线免费| 欧美性色综合网| 国产女同互慰高潮91漫画| 亚洲一区二区视频在线| 狠狠色综合播放一区二区| 91黄色在线观看| 中文字幕第一区综合| 香蕉久久一区二区不卡无毒影院| 成人永久aaa| 精品奇米国产一区二区三区| 亚洲激情欧美激情| 国产成人在线影院| 欧美成人vr18sexvr|