Package org.apache.derby.iapi.types

Examples of org.apache.derby.iapi.types.SQLLongint


                (DataValueDescriptor[])deletedKeys.remove(hashKey);

        if (savedRow == null) {
            savedRow = new DataValueDescriptor[numColumns + 1];
            System.arraycopy(refKey, 0, savedRow, 0, numColumns);
            savedRow[numColumns] = new SQLLongint(1);
        } else {
            savedRow[numColumns] = new SQLLongint(
                ((SQLLongint)savedRow[numColumns]).getLong() + 1);
        }

        deletedKeys.putRow(false, savedRow, null);
    }
View Full Code Here


        throws StandardException
  {
    super(open_btree, page,
              level, parent, isRoot);

        this.left_child_page = new SQLLongint(left_child);

        // finish initializing the row to be used for interacting with
        // raw store to insert, fetch, and update the control row on the page.
        this.row[CR_LEFTCHILD] = left_child_page;

        // set up buffer to read a branch row's page number into.
        child_pageno_buf = new SQLLongint();
  }
View Full Code Here

     * Perform page specific initialization.
     * <p>
     **/
    protected final void controlRowInit()
    {
        child_pageno_buf = new SQLLongint();
    }
View Full Code Here

  protected void setLeftChildPageno(long leftchild_pageno)
        throws StandardException
  {
    // Store the field.
    if (left_child_page == null)
      left_child_page = new SQLLongint(leftchild_pageno);
        else
            this.left_child_page.setValue(leftchild_pageno);

    // Write the field through to the underlying row
    this.page.updateFieldAtSlot(
View Full Code Here

  long getLeftChildPageno()
        throws StandardException
    {
        if (this.left_child_page == null)
        {
            this.left_child_page = new SQLLongint();

            scratch_row[CR_LEFTCHILD] = this.left_child_page;

            fetchDesc.setValidColumns(CR_LEFTCHILD_BITMAP);
            this.page.fetchFromSlot(
View Full Code Here

  private BranchRow(
    Transaction         rawtran,
    BTree               btree)
        throws StandardException
  {
        SQLLongint child_page  =
            new SQLLongint(ContainerHandle.INVALID_PAGE_NUMBER);

        branchrow   = btree.createBranchTemplate(rawtran, child_page);

        if (SanityManager.DEBUG)
        {
View Full Code Here

        /* now create a different child page pointer object and place it as
         * last column in the new branch row.
         */
        newbranch.branchrow[newbranch.branchrow.length - 1] =
            new SQLLongint(childpageno);

        return(newbranch);
    }
View Full Code Here

        /* now create a different child page pointer object and place it as
         * last column in the new branch row.
         */
        newbranch.branchrow[newbranch.branchrow.length - 1] =
            new SQLLongint(childpageno);

        return(newbranch);
    }
View Full Code Here

            break;
       case Types.SMALLINT:
           setValue(new SQLSmallint((Short)value));
            break;
       case Types.BIGINT:
           setValue(new SQLLongint((Long)value));
            break;
       case Types.DECIMAL:
           setValue(new SQLDecimal((BigDecimal)value));
            break;
       case Types.DOUBLE:
View Full Code Here

  {
        DataValueDescriptor[] columns = new DataValueDescriptor[nkeys];

        for (int i = 0; i < columns.length; i++)
        {
            columns[i] = new SQLLongint(Long.MIN_VALUE);
        }

    return columns;
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.SQLLongint

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.