Examples of SQLLongint


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

  {
    if(!positionIndexCreated)
    {
      TransactionController tc = activation.getTransactionController();
      int numKeys = 2;
      position_sqllong = new SQLLongint();
      positionIndexRow = new DataValueDescriptor[numKeys];
      positionIndexRow[0] = position_sqllong;
      positionIndexRow[1] = rl;       
      Properties props = makeIndexProperties(positionIndexRow, CID);
      positionIndexConglomId =
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

            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

        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

  {
        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

    }

    currentRow = rowArray[0].getNewNullRow();
    indexRow = new DataValueDescriptor[2];
    indexRow[0] = new SQLLongint(position);
    indexRow[1] =   heapCC.newRowLocationTemplate();

    DataValueDescriptor[] searchRow =  new DataValueDescriptor[1];
    searchRow[0] = new SQLLongint(position);

    if(indexsc == null)
    {
      indexsc = tc.openScan(positionIndexConglomId,
                  false,                           // don't hold open across commit
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.