Package org.apache.derby.iapi.types

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


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

            scratch_row[CR_LEVEL_COLID] = this.level;

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


  protected void setLevel(int newlevel)
        throws StandardException
  {
    // Store the field.
    if (this.level == null)
      this.level = new SQLLongint();
    this.level.setValue((long) newlevel);

    // Write the field through to the underlying row.
    this.page.updateFieldAtSlot(CR_SLOT, CR_LEVEL_COLID, this.level, null);
  }
View Full Code Here

    // convert 1 to true, 0 to false;
       
    if (this.isRoot == null)
    {
      // Fault in the level
      this.isRoot = new SQLLongint();

            scratch_row[CR_ISROOT_COLID] = this.isRoot;

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

  {
        // RESOLVE (mmm) - need to store more efficiently //

    // Store the field.
    if (this.isRoot == null)
      this.isRoot = new SQLLongint();

    this.isRoot.setValue((isRoot) ? 1 : 0);

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

      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

      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

            //
            if ( !baseRowExists ) { return false; }

      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

    }

    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

       
        public Long getValueOnDisk() { return _valueOnDisk; }
       
        public long getCurrentValueAndAdvance() throws Exception
        {
            SQLLongint nextValue = new SQLLongint();
           
            getCurrentValueAndAdvance( nextValue );
           
            return nextValue.getLong();
        }
View Full Code Here

    /* 2nd column is TABLEID (UUID - char(36)) */
    row.setColumn(2, new SQLChar(tabID));

    /* 3rd column is CONGLOMERATENUMBER (long) */
    row.setColumn(3, new SQLLongint(conglomNumber));

    /* 4th column is CONGLOMERATENAME (varchar(128))
    ** If null, use the tableid so we always
    ** have a unique column
    */
 
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.