All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cube.database.IntegerCol

java.lang.Object
   |
   +----cube.database.IntegerCol

public class IntegerCol
extends Object
An Integer Column is just an integer, but can be used as a 'key' data type for columns in a database.

For more information on the cube see the cube Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved. Please be aware of the Licence and Version.

See Also:
Table, Tuple

Variable Index

 o byteSize
Size of the data type
 o value
The value of the integer, it is public rather than writing a getValue method...

Constructor Index

 o IntegerCol(byte[])
Construct an IntegerCol from a byte array
 o IntegerCol(int)
Construct an IntegerCol from an integer

Method Index

 o cloneMe()
Return a duplicate of the object
 o equals(Object)
Equality test, is this IntegerCol equal to another? compare byte images
 o hashCode()
Hashcode generator
 o image()
Return an image of this as a string
 o increment()
Increment an IntegerCol by one (this is for counters)
 o increment(int)
Increment an IntegerCol by the given amount
 o increment(IntegerCol)
Increment an IntegerCol by the amount of another IntegerCol
 o toBytes()
Convert to a byte array

Variables

 o value
  public int value
The value of the integer, it is public rather than writing a getValue method...

 o byteSize
  public final static int byteSize
Size of the data type

Constructors

 o IntegerCol
  public IntegerCol(int value)
Construct an IntegerCol from an integer

 o IntegerCol
  public IntegerCol(byte b[])
Construct an IntegerCol from a byte array

Methods

 o hashCode
  public int hashCode()
Hashcode generator

Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object obj)
Equality test, is this IntegerCol equal to another? compare byte images

Parameters:
other - - The object to compare with.
Overrides:
equals in class Object
 o image
  public String image()
Return an image of this as a string

 o cloneMe
  public IntegerCol cloneMe()
Return a duplicate of the object

 o increment
  public void increment()
Increment an IntegerCol by one (this is for counters)

 o increment
  public void increment(int other)
Increment an IntegerCol by the given amount

Parameters:
other - - amount to increment by
 o increment
  public void increment(IntegerCol other)
Increment an IntegerCol by the amount of another IntegerCol

Parameters:
sum - - amount to increment by
 o toBytes
  public byte[] toBytes()
Convert to a byte array


All Packages  Class Hierarchy  This Package  Previous  Next  Index