Package org.hsqldb.lib

Examples of org.hsqldb.lib.IntValueHashMap$Values


                CompiledStatement cs =
                    (CompiledStatement) csidMap.remove(csid);

                if (cs != null) {
                    int schemaid = cs.schemaHsqlName.hashCode();
                    IntValueHashMap sqlMap =
                        (IntValueHashMap) schemaMap.get(schemaid);
                    String sql = (String) sqlLookup.remove(csid);

                    sqlMap.remove(sql);
                }

                useMap.remove(csid);
            } else {
                useMap.put(csid, usecount - 1);
View Full Code Here


                CompiledStatement cs =
                    (CompiledStatement) csidMap.remove(csid);

                if (cs != null) {
                    int schemaid = cs.schemaHsqlName.hashCode();
                    IntValueHashMap sqlMap =
                        (IntValueHashMap) schemaMap.get(schemaid);
                    String sql = (String) sqlLookup.remove(csid);

                    sqlMap.remove(sql);
                }

                useMap.remove(csid);
            } else {
                useMap.put(csid, usecount);
View Full Code Here

            if (roleString != null) {
                addRow(r, "GRANT " + roleString + " TO " + name);
            }

            IntValueHashMap rightsmap = g.getRights();

            if (rightsmap == null) {
                continue;
            }

            Iterator dbobjects = rightsmap.keySet().iterator();

            while (dbobjects.hasNext()) {
                Object nameobject = dbobjects.next();
                int    right      = rightsmap.get(nameobject, 0);

                a = new StringBuffer(64);

                a.append(Token.T_GRANT).append(' ');
                a.append(GranteeManager.getRightsList(right));
View Full Code Here

     * can get rid of this dependency with an IOC or Listener re-design.
     */
    Grantee(String name, Grantee inGrantee,
            GranteeManager man) throws HsqlException {

        rightsMap      = new IntValueHashMap();
        granteeName    = name;
        granteeManager = man;
        pubGrantee     = inGrantee;
    }
View Full Code Here

     *        this <code>User</code> object has been granted
     *        <code>ALL</code>.
     */
    HashSet getGrantedClassNames(boolean andToPublic) throws HsqlException {

        IntValueHashMap rights;
        Object          key;
        int             right;
        Iterator        i;

        rights = rightsMap;

        HashSet out = getGrantedClassNamesDirect();

        if (andToPublic && pubGrantee != null) {
            rights = pubGrantee.rightsMap;
            i      = rights.keySet().iterator();

            while (i.hasNext()) {
                key = i.next();

                if (key instanceof String) {
                    right = rights.get(key, 0);

                    if (right == GranteeManager.ALL) {
                        out.add(key);
                    }
                }
View Full Code Here

     *        <code>ALL</code>.
     *
     */
    HashSet getGrantedClassNamesDirect() throws HsqlException {

        IntValueHashMap rights;
        HashSet         out;
        Object          key;
        int             right;
        Iterator        i;

        rights = rightsMap;
        out    = new HashSet();
        i      = rightsMap.keySet().iterator();

        while (i.hasNext()) {
            key = i.next();

            if (key instanceof String) {
                right = rights.get(key, 0);

                if (right == GranteeManager.ALL) {
                    out.add(key);
                }
            }
View Full Code Here

     *
     * @return a new map for the database command token set
     */
    private static IntValueHashMap newCommandSet() {

        IntValueHashMap commandSet;

        commandSet = new IntValueHashMap(67);

        commandSet.put(T_ADD, ADD);
        commandSet.put(T_ALIAS, ALIAS);
        commandSet.put(T_ALTER, ALTER);
        commandSet.put(T_AUTOCOMMIT, AUTOCOMMIT);
        commandSet.put(T_CACHED, CACHED);
        commandSet.put(T_CALL, CALL);
        commandSet.put(T_CHECK, CHECK);
        commandSet.put(T_CHECKPOINT, CHECKPOINT);
        commandSet.put(T_COLUMN, COLUMN);
        commandSet.put(T_COMMIT, COMMIT);
        commandSet.put(T_CONNECT, CONNECT);
        commandSet.put(T_CONSTRAINT, CONSTRAINT);
        commandSet.put(T_CREATE, CREATE);
        commandSet.put(T_DATABASE, DATABASE);
        commandSet.put(T_DELETE, DELETE);
        commandSet.put(T_DEFRAG, DEFRAG);
        commandSet.put(T_DISCONNECT, DISCONNECT);
        commandSet.put(T_DROP, DROP);
        commandSet.put(T_EXCEPT, EXCEPT);
        commandSet.put(T_EXPLAIN, EXPLAIN);
        commandSet.put(T_FOREIGN, FOREIGN);
        commandSet.put(T_GRANT, GRANT);
        commandSet.put(T_IGNORECASE, IGNORECASE);
        commandSet.put(T_INCREMENT, INCREMENT);
        commandSet.put(T_INDEX, INDEX);
        commandSet.put(T_INITIAL, INITIAL);
        commandSet.put(T_INSERT, INSERT);
        commandSet.put(T_INTERSECT, INTERSECT);
        commandSet.put(T_LOGSIZE, LOGSIZE);
        commandSet.put(T_MAXROWS, MAXROWS);
        commandSet.put(T_MEMORY, MEMORY);
        commandSet.put(T_MINUS, MINUS);
        commandSet.put(T_NEXT, NEXT);
        commandSet.put(T_NOT, NOT);
        commandSet.put(T_OPENBRACKET, OPENBRACKET);
        commandSet.put(T_PASSWORD, PASSWORD);
        commandSet.put(T_PLAN, PLAN);
        commandSet.put(T_PRIMARY, PRIMARY);
        commandSet.put(T_PROPERTY, PROPERTY);
        commandSet.put(T_READONLY, READONLY);
        commandSet.put(T_REFERENTIAL_INTEGRITY, REFERENTIAL_INTEGRITY);
        commandSet.put(T_RELEASE, RELEASE);
        commandSet.put(T_RENAME, RENAME);
        commandSet.put(T_RESTART, RESTART);
        commandSet.put(T_REVOKE, REVOKE);
        commandSet.put(T_ROLE, ROLE);
        commandSet.put(T_ROLLBACK, ROLLBACK);
        commandSet.put(T_SAVEPOINT, SAVEPOINT);
        commandSet.put(T_SCRIPT, SCRIPT);
        commandSet.put(T_SCRIPTFORMAT, SCRIPTFORMAT);
        commandSet.put(T_SELECT, SELECT);
        commandSet.put(T_SEMICOLON, SEMICOLON);
        commandSet.put(T_SEQUENCE, SEQUENCE);
        commandSet.put(T_SET, SET);
        commandSet.put(T_SHUTDOWN, SHUTDOWN);
        commandSet.put(T_SOURCE, SOURCE);
        commandSet.put(T_TABLE, TABLE);
        commandSet.put(T_TEMP, TEMP);
        commandSet.put(T_TEXT, TEXT);
        commandSet.put(T_TRIGGER, TRIGGER);
        commandSet.put(T_UNIQUE, UNIQUE);
        commandSet.put(T_UPDATE, UPDATE);
        commandSet.put(T_UNION, UNION);
        commandSet.put(T_USER, USER);
        commandSet.put(T_VALUES, VALUES);
        commandSet.put(T_VIEW, VIEW);
        commandSet.put(T_WRITE_DELAY, WRITE_DELAY);
        commandSet.put(T_SCHEMA, SCHEMA);

        return commandSet;
    }
View Full Code Here

        String[] names;
        String   name;

        // outRegistrationMap = new IntKeyIntValueHashMap();
        parameterNameMap = new IntValueHashMap();

        if (pmdDescriptor != null && pmdDescriptor.metaData != null) {
            names = pmdDescriptor.metaData.colNames;

            for (int i = 0; i < names.length; i++) {
View Full Code Here

  private static HashSet keywords = new HashSet(67);
  static IntValueHashMap valueTokens;

  private static IntValueHashMap newCommandSet()
  {
    IntValueHashMap localIntValueHashMap = new IntValueHashMap(67);
    localIntValueHashMap.put("ADD", 1);
    localIntValueHashMap.put("ALIAS", 300);
    localIntValueHashMap.put("ALTER", 4);
    localIntValueHashMap.put("AUTOCOMMIT", 301);
    localIntValueHashMap.put("CACHED", 302);
    localIntValueHashMap.put("CALL", 23);
    localIntValueHashMap.put("CHECK", 30);
    localIntValueHashMap.put("CHECKPOINT", 303);
    localIntValueHashMap.put("COLUMN", 34);
    localIntValueHashMap.put("COMMIT", 35);
    localIntValueHashMap.put("CONNECT", 37);
    localIntValueHashMap.put("CONSTRAINT", 38);
    localIntValueHashMap.put("CREATE", 41);
    localIntValueHashMap.put("DATABASE", 337);
    localIntValueHashMap.put("DELETE", 62);
    localIntValueHashMap.put("DEFRAG", 334);
    localIntValueHashMap.put("DISCONNECT", 66);
    localIntValueHashMap.put("DROP", 70);
    localIntValueHashMap.put("EXCEPT", 78);
    localIntValueHashMap.put("EXPLAIN", 304);
    localIntValueHashMap.put("FOREIGN", 89);
    localIntValueHashMap.put("GRANT", 96);
    localIntValueHashMap.put("IGNORECASE", 305);
    localIntValueHashMap.put("INCREMENT", 335);
    localIntValueHashMap.put("INDEX", 306);
    localIntValueHashMap.put("INITIAL", 341);
    localIntValueHashMap.put("INSERT", 112);
    localIntValueHashMap.put("INTERSECT", 115);
    localIntValueHashMap.put("LOGSIZE", 307);
    localIntValueHashMap.put("MAXROWS", 309);
    localIntValueHashMap.put("MEMORY", 310);
    localIntValueHashMap.put("MINUS", 311);
    localIntValueHashMap.put("NEXT", 312);
    localIntValueHashMap.put("NOT", 148);
    localIntValueHashMap.put("(", 313);
    localIntValueHashMap.put("PASSWORD", 314);
    localIntValueHashMap.put("PLAN", 315);
    localIntValueHashMap.put("PRIMARY", 167);
    localIntValueHashMap.put("PROPERTY", 316);
    localIntValueHashMap.put("READONLY", 317);
    localIntValueHashMap.put("REFERENTIAL_INTEGRITY", 318);
    localIntValueHashMap.put("RELEASE", 176);
    localIntValueHashMap.put("RENAME", 319);
    localIntValueHashMap.put("RESTART", 320);
    localIntValueHashMap.put("REVOKE", 182);
    localIntValueHashMap.put("ROLE", 339);
    localIntValueHashMap.put("ROLLBACK", 184);
    localIntValueHashMap.put("SAVEPOINT", 188);
    localIntValueHashMap.put("SCRIPT", 321);
    localIntValueHashMap.put("SCRIPTFORMAT", 322);
    localIntValueHashMap.put("SELECT", 193);
    localIntValueHashMap.put(";", 323);
    localIntValueHashMap.put("SEQUENCE", 324);
    localIntValueHashMap.put("SET", 196);
    localIntValueHashMap.put("SHUTDOWN", 325);
    localIntValueHashMap.put("SOURCE", 326);
    localIntValueHashMap.put("TABLE", 213);
    localIntValueHashMap.put("TEMP", 327);
    localIntValueHashMap.put("TEXT", 328);
    localIntValueHashMap.put("TRIGGER", 224);
    localIntValueHashMap.put("UNIQUE", 228);
    localIntValueHashMap.put("UPDATE", 222);
    localIntValueHashMap.put("UNION", 227);
    localIntValueHashMap.put("USER", 223);
    localIntValueHashMap.put("VALUES", 226);
    localIntValueHashMap.put("VIEW", 329);
    localIntValueHashMap.put("WRITE_DELAY", 330);
    localIntValueHashMap.put("SCHEMA", 338);
    return localIntValueHashMap;
  }
View Full Code Here

  }

  HashSet getGrantedClassNames(boolean paramBoolean)
    throws HsqlException
  {
    IntValueHashMap localIntValueHashMap = this.rightsMap;
    HashSet localHashSet = getGrantedClassNamesDirect();
    if ((paramBoolean) && (this.pubGrantee != null))
    {
      localIntValueHashMap = this.pubGrantee.rightsMap;
      Iterator localIterator1 = localIntValueHashMap.keySet().iterator();
      while (localIterator1.hasNext())
      {
        Object localObject = localIterator1.next();
        if (!(localObject instanceof String))
          continue;
        int i = localIntValueHashMap.get(localObject, 0);
        if (i != 15)
          continue;
        localHashSet.add(localObject);
      }
    }
View Full Code Here

TOP

Related Classes of org.hsqldb.lib.IntValueHashMap$Values

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.