Package org.apache.derby.iapi.types

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


                if( !constants.deferred)
                    rs.deleteRow();
                else
                {
                    ExecRow rowId = new ValueRow(1);
                    rowId.setColumn( 1, new SQLInteger( rs.getRow()));
                    rowHolder.insert( rowId);
                }

                rowCount++;
View Full Code Here


        "maxRows not expected to be -1");
    }

    constructorTime += getElapsedMillis(beginTime);

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

    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

    }
    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

  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

  public final NumberDataValue charLength(NumberDataValue result)
              throws StandardException
  {
    if (result == null)
    {
      result = new SQLInteger();
    }

    if (this.isNull())
    {
      result.setToNull();
View Full Code Here

  public NumberDataValue charLength(NumberDataValue result)
              throws StandardException
  {
    if (result == null)
    {
      result = new SQLInteger();
    }

    if (this.isNull())
    {
      result.setToNull();
View Full Code Here

    {
        int startVal;

        if( result == null )
        {
            result = new SQLInteger();
        }
       
        if( start.isNull() )
        {
            startVal = 1;
View Full Code Here

    public NumberDataValue charLength(NumberDataValue result)
                            throws StandardException
    {
        if (result == null)
        {
            result = new SQLInteger();
        }

        if (this.isNull())
        {
            result.setToNull();
View Full Code Here

    {
        int startVal;

        if( result == null )
        {
            result = new SQLInteger();
        }
       
        if( start.isNull() )
        {
            startVal = 1;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.SQLInteger

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.