Examples of SQLInteger


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

      scal = TypeId.INT_SCALE;
      if (valueInP)
      {
        maxwidth = TypeId.INT_MAXWIDTH;
        typeid = Types.INTEGER;
        setValue(new SQLInteger((Integer) arg1));
      }
      break;

    case C_NodeTypes.SMALLINT_CONSTANT_NODE:
      precision = TypeId.SMALLINT_PRECISION;
View Full Code Here

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

        return dvf.getNullInteger((NumberDataValue) null);
    }
   
    private static DataValueDescriptor gnn2(DataValueFactory dvf)
    {
        return new SQLInteger();
    }
View Full Code Here

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

    {
      SanityManager.ASSERT(maxRows != -1,
        "maxRows not expected to be -1");
    }

    positionInHashTable = new SQLInteger();
    needsRepositioning = false;
    if (isForUpdate()) {
      target = ((CursorActivation)activation).getTargetResultSet();
      extraColumns = LAST_EXTRA_COLUMN + 1;
    } else {
View Full Code Here

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

    throws StandardException
  {
    DataValueDescriptor[] hashRowArray = new
        DataValueDescriptor[sourceRowWidth + extraColumns];
    // 1st element is the key
    hashRowArray[0] = new SQLInteger(position);
    if (isForUpdate()) {
      hashRowArray[POS_ROWLOCATION] = rowLoc.cloneValue(false);
      hashRowArray[POS_ROWDELETED] = new SQLBoolean(false);
      hashRowArray[POS_ROWUPDATED] = new SQLBoolean(rowUpdated);
    }
View Full Code Here

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

        // No new value, so continue using old one
        newRow.setColumn(i+1, hashRowArray[LAST_EXTRA_COLUMN + 1 + i]);
      }
    }

    ht.remove(new SQLInteger(currentPosition));
    addRowToHashTable(newRow, currentPosition, rowLoc, true);

    // Modify row to refer to data in the BackingStoreHashtable.
    // This allows reading of data which goes over multiple pages
    // when doing the actual update (LOBs). Putting columns of
View Full Code Here

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

  public void markRowAsDeleted() throws StandardException  {
    positionInHashTable.setValue(currentPosition);
    DataValueDescriptor[] hashRowArray = (DataValueDescriptor[])
        ht.get(positionInHashTable);
    RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION];
    ht.remove(new SQLInteger(currentPosition));
    ((SQLBoolean)hashRowArray[POS_ROWDELETED]).setValue(true);
    // Set all columns to NULL, the row is now a placeholder
    for (int i=extraColumns; i<hashRowArray.length; i++) {
      hashRowArray[i].setToNull();
    }
View Full Code Here

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

    {
      SanityManager.ASSERT(maxRows != -1,
        "maxRows not expected to be -1");
    }

    positionInHashTable = new SQLInteger();
    needsRepositioning = false;
    if (isForUpdate()) {
      target = ((CursorActivation)activation).getTargetResultSet();
      extraColumns = LAST_EXTRA_COLUMN + 1;
    } else {
View Full Code Here

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

    throws StandardException
  {
    DataValueDescriptor[] hashRowArray = new
        DataValueDescriptor[sourceRowWidth + extraColumns];
    // 1st element is the key
    hashRowArray[0] = new SQLInteger(position);
    if (isForUpdate()) {
      hashRowArray[POS_ROWLOCATION] = rowLoc.getClone();
      hashRowArray[POS_ROWDELETED] = new SQLBoolean(false);
      hashRowArray[POS_ROWUPDATED] = new SQLBoolean(rowUpdated);
    }
View Full Code Here

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

    positionInHashTable.setValue(currentPosition);
    DataValueDescriptor[] hashRowArray = (DataValueDescriptor[])
        ht.get(positionInHashTable);
    RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION];
    ht.remove(new SQLInteger(currentPosition));
    addRowToHashTable(newRow, currentPosition, rowLoc, true);
   
    // Modify row to refer to data in the BackingStoreHashtable.
    // This allows reading of data which goes over multiple pages
    // when doing the actual update (LOBs). Putting columns of
View Full Code Here

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

  public void markRowAsDeleted() throws StandardException  {
    positionInHashTable.setValue(currentPosition);
    DataValueDescriptor[] hashRowArray = (DataValueDescriptor[])
        ht.get(positionInHashTable);
    RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION];
    ht.remove(new SQLInteger(currentPosition));
    ((SQLBoolean)hashRowArray[POS_ROWDELETED]).setValue(true);
    // Set all columns to NULL, the row is now a placeholder
    for (int i=extraColumns; i<hashRowArray.length; i++) {
      hashRowArray[i].setToNull();
    }
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.