Package org.hsqldb

Examples of org.hsqldb.Result$ResultIterator$ResultMetaData


  {
    checkClosed();
    if (this.isEscapeProcessing)
      paramString = this.connection.nativeSQL(paramString);
    if (this.batchResultOut == null)
      this.batchResultOut = new Result(8, new int[] { 12 }, 0);
    this.batchResultOut.add(new Object[] { paramString });
  }
View Full Code Here


    throws SQLException
  {
    checkClosed();
    this.connection.clearWarningsNoCheck();
    if (this.batchResultOut == null)
      this.batchResultOut = new Result(8, new int[] { 12 }, 0);
    int i = this.batchResultOut.getSize();
    try
    {
      this.resultIn = this.connection.sessionProxy.execute(this.batchResultOut);
    }
View Full Code Here

    if (paramString == null)
    {
      String str = "name is null";
      throw Util.sqlException(62, str);
    }
    Result localResult = Result.newSetSavepointRequest(paramString);
    try
    {
      this.sessionProxy.execute(localResult);
    }
    catch (HsqlException localHsqlException)
View Full Code Here

    if (this != localjdbcSavepoint.connection)
    {
      str = paramSavepoint + " was not issued on this connection";
      throw Util.sqlException(62, str);
    }
    Result localResult1 = Result.newRollbackToSavepointRequest(localjdbcSavepoint.name);
    try
    {
      Result localResult2 = this.sessionProxy.execute(localResult1);
      if (localResult2.isError())
        Util.throwError(localResult2);
    }
    catch (HsqlException localHsqlException2)
    {
      Util.throwError(localHsqlException2);
View Full Code Here

    if (this != localjdbcSavepoint.connection)
    {
      str = paramSavepoint.getSavepointName() + " was not issued on this connection";
      throw Util.sqlException(62, str);
    }
    Result localResult1 = Result.newReleaseSavepointRequest(localjdbcSavepoint.name);
    try
    {
      Result localResult2 = this.sessionProxy.execute(localResult1);
      if (localResult2.isError())
        Util.throwError(localResult2);
    }
    catch (HsqlException localHsqlException)
    {
      Util.throwError(localHsqlException);
View Full Code Here

  public int[] executeBatch()
    throws SQLException
  {
    if (this.batchResultOut == null)
      this.batchResultOut = new Result(9, this.parameterTypes, this.statementID);
    return super.executeBatch();
  }
View Full Code Here

    int i = this.parameterValues.length;
    Object[] arrayOfObject = new Object[i];
    checkParametersSet();
    System.arraycopy(this.parameterValues, 0, arrayOfObject, 0, i);
    if (this.batchResultOut == null)
      this.batchResultOut = new Result(9, this.parameterTypes, this.statementID);
    this.batchResultOut.add(arrayOfObject);
  }
View Full Code Here

  {
    super(paramjdbcConnection, paramInt);
    paramString = paramjdbcConnection.nativeSQL(paramString);
    this.resultOut.setResultType(65555);
    this.resultOut.setMainString(paramString);
    Result localResult = this.connection.sessionProxy.execute(this.resultOut);
    if (localResult.isError())
      Util.throwError(localResult);
    Iterator localIterator = localResult.iterator();
    try
    {
      Object[] arrayOfObject = (Object[])localIterator.next();
      this.statementID = ((Result)arrayOfObject[0]).getStatementID();
      arrayOfObject = (Object[])localIterator.next();
      this.rsmdDescriptor = ((Result)arrayOfObject[0]);
      this.isRowCount = (this.rsmdDescriptor.mode == 1);
      arrayOfObject = (Object[])localIterator.next();
      this.pmdDescriptor = ((Result)arrayOfObject[0]);
      this.parameterTypes = this.pmdDescriptor.metaData.getParameterTypes();
      this.parameterValues = new Object[this.parameterTypes.length];
      this.parameterSet = new boolean[this.parameterTypes.length];
      this.parameterModes = this.pmdDescriptor.metaData.paramMode;
    }
    catch (Exception localException)
    {
      throw Trace.error(40, localException.toString());
    }
    this.resultOut = new Result(65548, this.parameterTypes, this.statementID);
    this.sql = paramString;
  }
View Full Code Here

        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:
View Full Code Here

TOP

Related Classes of org.hsqldb.Result$ResultIterator$ResultMetaData

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.