Package org.hsqldb.lib

Examples of org.hsqldb.lib.IntKeyIntValueHashMap$Values


    this.database = paramDatabase;
    this.schemaMap = new IntKeyHashMap();
    this.sqlLookup = new IntKeyHashMap();
    this.csidMap = new IntKeyHashMap();
    this.sessionUseMap = new IntKeyHashMap();
    this.useMap = new IntKeyIntValueHashMap();
    this.next_cs_id = 0;
  }
View Full Code Here


    return localCompiledStatement;
  }

  private void linkSession(int paramInt1, int paramInt2)
  {
    IntKeyIntValueHashMap localIntKeyIntValueHashMap = (IntKeyIntValueHashMap)this.sessionUseMap.get(paramInt2);
    if (localIntKeyIntValueHashMap == null)
    {
      localIntKeyIntValueHashMap = new IntKeyIntValueHashMap();
      this.sessionUseMap.put(paramInt2, localIntKeyIntValueHashMap);
    }
    int i = localIntKeyIntValueHashMap.get(paramInt1, 0);
    localIntKeyIntValueHashMap.put(paramInt1, i + 1);
    if (i == 0)
      this.useMap.put(paramInt1, this.useMap.get(paramInt1, 0) + 1);
  }
View Full Code Here

  void freeStatement(int paramInt1, int paramInt2, boolean paramBoolean)
  {
    if (paramInt1 == -1)
      return;
    IntKeyIntValueHashMap localIntKeyIntValueHashMap = (IntKeyIntValueHashMap)this.sessionUseMap.get(paramInt2);
    if (localIntKeyIntValueHashMap == null)
      return;
    int i = localIntKeyIntValueHashMap.get(paramInt1, 0);
    if (i != 0)
      if ((i == 1) || (paramBoolean))
      {
        localIntKeyIntValueHashMap.remove(paramInt1);
        int j = this.useMap.get(paramInt1, 0);
        if (j != 0)
          if (j == 1)
          {
            CompiledStatement localCompiledStatement = (CompiledStatement)this.csidMap.remove(paramInt1);
            if (localCompiledStatement != null)
            {
              int k = localCompiledStatement.schemaHsqlName.hashCode();
              IntValueHashMap localIntValueHashMap = (IntValueHashMap)this.schemaMap.get(k);
              String str = (String)this.sqlLookup.remove(paramInt1);
              localIntValueHashMap.remove(str);
            }
            this.useMap.remove(paramInt1);
          }
          else
          {
            this.useMap.put(paramInt1, j - 1);
          }
      }
      else
      {
        localIntKeyIntValueHashMap.put(paramInt1, i - 1);
      }
  }
View Full Code Here

      }
  }

  synchronized void removeSession(int paramInt)
  {
    IntKeyIntValueHashMap localIntKeyIntValueHashMap = (IntKeyIntValueHashMap)this.sessionUseMap.remove(paramInt);
    if (localIntKeyIntValueHashMap == null)
      return;
    Iterator localIterator = localIntKeyIntValueHashMap.keySet().iterator();
    while (localIterator.hasNext())
    {
      int i = localIterator.nextInt();
      int j = this.useMap.get(i, 1) - 1;
      if (j == 0)
View Full Code Here

TOP

Related Classes of org.hsqldb.lib.IntKeyIntValueHashMap$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.