Examples of SQLLongint


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

      NumberDataValue increment =
        (NumberDataValue)readRow.getColumn(SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTINC);
      aiValue += increment.getLong();
    }
    row.setColumn(SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTVALUE,
            new SQLLongint(aiValue));

    ti.updateRow(keyRow, row,
           SYSCOLUMNSRowFactory.SYSCOLUMNS_INDEX1_ID,
           bArray,
           colsToUpdate,
View Full Code Here

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

            heapCC.fetch( rowLocation, row.getRowArray(), columnToUpdate, wait );

      NumberDataValue oldValueOnDisk = (NumberDataValue) row.getColumn( columnNum );

            SQLLongint expectedOldValue;
            if ( oldValue == null ) { expectedOldValue = new SQLLongint(); }
            else { expectedOldValue = new SQLLongint( oldValue.longValue() ); }

            // only update value if what's on disk is what we expected
            if ( ( oldValue == null ) || ( expectedOldValue.compare( oldValueOnDisk ) == 0 ) )
            {
                SQLLongint newValueOnDisk;
                if ( newValue == null ) { newValueOnDisk = new SQLLongint(); }
                else { newValueOnDisk = new SQLLongint( newValue.longValue() ); }
               
                row.setColumn( columnNum, newValueOnDisk );
                heapCC.replace( rowLocation, row.getRowArray(), columnToUpdate );

                return true;
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

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

      NumberDataValue increment =
        (NumberDataValue)readRow.getColumn(SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTINC);
      aiValue += increment.getLong();
    }
    row.setColumn(SYSCOLUMNSRowFactory.SYSCOLUMNS_AUTOINCREMENTVALUE,
            new SQLLongint(aiValue));

    ti.updateRow(keyRow, row,
           SYSCOLUMNSRowFactory.SYSCOLUMNS_INDEX1_ID,
           bArray,
           colsToUpdate,
View Full Code Here

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

                SanityManager.ASSERT(baseRowExists, "base row not found");
            }

      NumberDataValue oldValueOnDisk = (NumberDataValue) row.getColumn( columnNum );

            SQLLongint expectedOldValue;
            if ( oldValue == null ) { expectedOldValue = new SQLLongint(); }
            else { expectedOldValue = new SQLLongint( oldValue.longValue() ); }

            // only update value if what's on disk is what we expected
            if ( ( oldValue == null ) || ( expectedOldValue.compare( oldValueOnDisk ) == 0 ) )
            {
                SQLLongint newValueOnDisk;
                if ( newValue == null ) { newValueOnDisk = new SQLLongint(); }
                else { newValueOnDisk = new SQLLongint( newValue.longValue() ); }
               
                row.setColumn( columnNum, newValueOnDisk );
                heapCC.replace( rowLocation, row.getRowArray(), columnToUpdate );

                return true;
View Full Code Here

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

    this.page = page;

    // Page numbers start out "invalid".  Presumably the caller will
    // link the page into a page chain as one of its next steps.
    leftSiblingPageNumber  =
            new SQLLongint(ContainerHandle.INVALID_PAGE_NUMBER);
    rightSiblingPageNumber =
            new SQLLongint(ContainerHandle.INVALID_PAGE_NUMBER);

    // Remember the parent if there is one and we're remembering parents.
        parentPageNumber = new SQLLongint(
            (parent == null
                 ContainerHandle.INVALID_PAGE_NUMBER :
                 parent.page.getPageNumber()));

    // All pages start out not being root pages.  The caller will setIsRoot
    // if this is going to be a root page. Zero means false - see
    // getIsRoot/setIsRoot.
    this.isRoot = new SQLLongint(isRoot ? 1 : 0);

        // set the rest of the state, as passed in.
    this.level   = new SQLLongint(level);
        this.version = new StorableFormatId(getTypeFormatId());

        // If it is a root page then store the real btree conglomerate, if it
        // is not a root page then set up an "empty" btree conglomerate which
        // will be stored as "null".
View Full Code Here

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

            (leftsib == null ? ContainerHandle.INVALID_PAGE_NUMBER :
                               leftsib.page.getPageNumber());
       
    // Store the field.
    if (leftSiblingPageNumber == null)
      leftSiblingPageNumber = new SQLLongint(left_sib_pageno);
        else
            this.leftSiblingPageNumber.setValue(left_sib_pageno);

    // Write the field through to the underlying row
        try
View Full Code Here

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

            (rightsib == null ? ContainerHandle.INVALID_PAGE_NUMBER :
                                rightsib.page.getPageNumber());
       
    // Store the field.
    if (rightSiblingPageNumber == null)
      rightSiblingPageNumber = new SQLLongint(right_sib_pageno);
        else
            this.rightSiblingPageNumber.setValue(right_sib_pageno);

    // Write the field through to the underlying row
        try
View Full Code Here

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

        throws StandardException
  {
    if (this.leftSiblingPageNumber == null)
    {
      // Fault in the page number.
      this.leftSiblingPageNumber = new SQLLongint();

            if (SanityManager.DEBUG)
                SanityManager.ASSERT(scratch_row != null);

            scratch_row[CR_LEFTSIB_COLID] = this.leftSiblingPageNumber;
View Full Code Here

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

        throws StandardException
  {
    if (this.rightSiblingPageNumber == null)
    {
      // Fault in the page number.
      this.rightSiblingPageNumber = new SQLLongint();

            scratch_row[CR_RIGHTSIB_COLID] = this.rightSiblingPageNumber;

            fetchDesc.setValidColumns(CR_RIGHTSIB_BITSET);
            this.page.fetchFromSlot(
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.