Examples of SQLLongint


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

    long                    conglomid,
    DataValueDescriptor[]   search_key,
    DataValueDescriptor[]   template)
        throws StandardException
    {
        SQLLongint column0 = new SQLLongint(-1);
        SQLLongint column1 = new SQLLongint(-1);

        // open a new scan

        ScanController scan =
            tc.openScan(conglomid, false,
                        TransactionController.OPENMODE_FORUPDATE,
                        TransactionController.MODE_RECORD,
                        TransactionController.ISOLATION_SERIALIZABLE,
                        (FormatableBitSet) null,
                        search_key, ScanController.GE,
                        null,
                        search_key, ScanController.GT);

        long expect_key =
            ((SQLLongint) search_key[1]).getLong();

        int numrows = 0;
    DataValueDescriptor[] partialRow = new DataValueDescriptor[2];
    partialRow[0] = column0;
    partialRow[1] = column1;

        while (scan.next())
        {
            numrows++;

      scan.fetch(partialRow);

            if (column0.getLong() != 1)
                return(FAIL("(t_delete) column[0] value is not 1"));

            if (column1.getLong() != expect_key)
                return(
                    FAIL("(t_delete) column[1]  value is not " + expect_key));

            if (!scan.delete())
            {
View Full Code Here

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

  {
        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

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

        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

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

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

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

  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

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

  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

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

  }

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

        branchrow   = btree.createBranchTemplate(child_page);

        if (SanityManager.DEBUG)
        {
View Full Code Here

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

        /* 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

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

        /* 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

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

      DataValueDescriptor      conglomNumberOrderable = null;
      TabInfoImpl            ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];
      SYSCONGLOMERATESRowFactory  rf = (SYSCONGLOMERATESRowFactory) ti.getCatalogRowFactory();

      conglomNumberOrderable =
          new SQLLongint(conglomerateNumber);

    ScanQualifier[][] scanQualifier = exFactory.getScanQualifier(1);
      scanQualifier[0][0].setQualifier(
          rf.SYSCONGLOMERATES_CONGLOMERATENUMBER - 1/* column number */
          conglomNumberOrderable,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.