Package org.hsqldb.lib

Examples of org.hsqldb.lib.IntKeyHashMap


            Expression e      = parseExpression();

            if (isCompilingView()) {
                if (e.getType() == Expression.ASTERISK) {
                    if (select.asteriskPositions == null) {
                        select.asteriskPositions = new IntKeyHashMap();
                    }

                    // remember the position of the asterisk. For the moment, just
                    // remember the expression, so it can later be found and replaced
                    // with the concrete column list
View Full Code Here


      i = this.tokenizer.getPosition();
      localObject1 = parseExpression();
      if ((isCompilingView()) && (((Expression)localObject1).getType() == 6))
      {
        if (localSelect.asteriskPositions == null)
          localSelect.asteriskPositions = new IntKeyHashMap();
        localSelect.asteriskPositions.put(i, localObject1);
      }
      str = this.tokenizer.getString();
      if (this.tokenizer.wasThis("AS"))
      {
View Full Code Here

public class ScriptRunner
{
  public static void runScript(Database paramDatabase, String paramString, int paramInt)
    throws HsqlException
  {
    IntKeyHashMap localIntKeyHashMap = new IntKeyHashMap();
    Session localSession1 = paramDatabase.getSessionManager().getSysSession();
    Session localSession2 = localSession1;
    int i = 0;
    paramDatabase.setReferentialIntegrity(false);
    ScriptReaderBase localScriptReaderBase = null;
    try
    {
      StopWatch localStopWatch = new StopWatch();
      localScriptReaderBase = ScriptReaderBase.newScriptReader(paramDatabase, paramString, paramInt);
      while (localScriptReaderBase.readLoggedStatement(localSession2))
      {
        int j = localScriptReaderBase.getSessionNumber();
        if (i != j)
        {
          i = j;
          localSession2 = (Session)localIntKeyHashMap.get(i);
          if (localSession2 == null)
          {
            localSession2 = paramDatabase.getSessionManager().newSession(paramDatabase, localSession1.getUser(), false, true);
            localIntKeyHashMap.put(i, localSession2);
          }
        }
        if (localSession2.isClosed())
        {
          localIntKeyHashMap.remove(i);
          continue;
        }
        Result localResult = null;
        Object[] arrayOfObject;
        switch (localScriptReaderBase.getStatementType())
        {
        case 1:
          localResult = localSession2.sqlExecuteDirectNoPreChecks(localScriptReaderBase.getLoggedStatement());
          if ((localResult == null) || (!localResult.isError()))
            break;
          if (localResult.getException() != null)
            throw localResult.getException();
          throw Trace.error(localResult);
        case 4:
          localScriptReaderBase.getCurrentSequence().reset(localScriptReaderBase.getSequenceValue());
          break;
        case 5:
          localSession2.commit();
          break;
        case 3:
          arrayOfObject = localScriptReaderBase.getData();
          localScriptReaderBase.getCurrentTable().insertNoCheckFromLog(localSession2, arrayOfObject);
          break;
        case 2:
          arrayOfObject = localScriptReaderBase.getData();
          localScriptReaderBase.getCurrentTable().deleteNoCheckFromLog(localSession2, arrayOfObject);
          break;
        case 7:
          localSession2.setSchema(localScriptReaderBase.getCurrentSchema());
        case 6:
        }
        if (!localSession2.isClosed())
          continue;
        localIntKeyHashMap.remove(i);
      }
    }
    catch (Throwable localThrowable)
    {
      if (!(localThrowable instanceof EOFException))
View Full Code Here

  private int next_cs_id;

  CompiledStatementManager(Database paramDatabase)
  {
    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

    {
      if (this.indexArrayKeepMap == null)
      {
        if (paramNode == null)
          return;
        this.indexArrayKeepMap = new IntKeyHashMap();
      }
      this.indexArrayKeepMap.put(paramHsqlName.hashCode(), paramNode);
    }
    else
    {
      if (this.indexArrayMap == null)
      {
        if (paramNode == null)
          return;
        this.indexArrayMap = new IntKeyHashMap();
      }
      this.indexArrayMap.put(paramHsqlName.hashCode(), paramNode);
    }
  }
View Full Code Here

TOP

Related Classes of org.hsqldb.lib.IntKeyHashMap

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.