Package org.apache.derby.iapi.util

Examples of org.apache.derby.iapi.util.ByteArray


    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray (logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here


   * @return the byte code saver
   */
  ByteArray getByteCodeSaver()
  {
    if (byteCode == null) {
      byteCode = new ByteArray();
    }
    return byteCode;
  }
View Full Code Here

      ArrayUtil.readArrayItems(in, savedObjects);
    }

    className = (String)in.readObject();
    if (in.readBoolean()) {
      byteCode = new ByteArray();
      byteCode.readExternal(in);
    }
    else
      byteCode = null;
  }
View Full Code Here

    {
      throw StandardException.newException(
                SQLState.DATA_UNEXPECTED_EXCEPTION, ioe);
    }

    return new ByteArray(array);
  }
View Full Code Here

    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);

  }
View Full Code Here

      int optionalDataLength = 0;
      int optionalDataOffset = 0;
      int completeLength = 0;

      ByteArray preparedLogArray = operation.getPreparedLog();
      if (preparedLogArray != null) {

        preparedLog = preparedLogArray.getArray();
        optionalDataLength = preparedLogArray.getLength();
        optionalDataOffset = preparedLogArray.getOffset();

        // There is a race condition if the operation is a begin tran in
        // that between the time the beginXact log record is written to
        // disk and the time the transaction object is updated in the
        // beginXact.doMe method, other log records may be written.
View Full Code Here

    }

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(logBuffer.getByteArray(), optionalDataStart,
      optionalDataLength);
  }
View Full Code Here

                // column is long.

                if (!(column instanceof InputStream))
                {
                    // Convert already written object to an InputStream.
                    ByteArray fieldData =
                        new ByteArray(
                            ((DynamicByteArrayOutputStream)out).getByteArray(),
                            (columnBeginPosition), fieldDataLength);

                    ByteArrayInputStream columnIn =
                        new ByteArrayInputStream(
                            fieldData.getArray(), columnBeginPosition,
                            fieldDataLength);

                    MemByteHolder byteHolder =
                        new MemByteHolder(fieldDataLength + 1);
View Full Code Here

    {
      throw StandardException.newException(
                SQLState.DATA_UNEXPECTED_EXCEPTION, ioe);
    }

    return new ByteArray(array);
  }
View Full Code Here

    int optionalDataLength = logBuffer.getPosition() - optionalDataStart;

    // set the position to the beginning of the buffer
    logBuffer.setPosition(optionalDataStart);

    this.preparedLog = new ByteArray(
            logBuffer.getByteArray(), optionalDataStart, optionalDataLength);
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.util.ByteArray

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.