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
-
byteSize
- Size of the data type
-
value
- The value of the integer, it is public rather than writing a getValue method...
-
IntegerCol(byte[])
- Construct an IntegerCol from a byte array
-
IntegerCol(int)
- Construct an IntegerCol from an integer
-
cloneMe()
- Return a duplicate of the object
-
equals(Object)
- Equality test, is this IntegerCol equal to another?
compare byte images
-
hashCode()
- Hashcode generator
-
image()
- Return an image of this as a string
-
increment()
- Increment an IntegerCol by one (this is for counters)
-
increment(int)
- Increment an IntegerCol by the given amount
-
increment(IntegerCol)
- Increment an IntegerCol by the amount of another IntegerCol
-
toBytes()
- Convert to a byte array
value
public int value
- The value of the integer, it is public rather than writing a getValue method...
byteSize
public final static int byteSize
- Size of the data type
IntegerCol
public IntegerCol(int value)
- Construct an IntegerCol from an integer
IntegerCol
public IntegerCol(byte b[])
- Construct an IntegerCol from a byte array
hashCode
public int hashCode()
- Hashcode generator
- Overrides:
- hashCode in class Object
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
image
public String image()
- Return an image of this as a string
cloneMe
public IntegerCol cloneMe()
- Return a duplicate of the object
increment
public void increment()
- Increment an IntegerCol by one (this is for counters)
increment
public void increment(int other)
- Increment an IntegerCol by the given amount
- Parameters:
- other - - amount to increment by
increment
public void increment(IntegerCol other)
- Increment an IntegerCol by the amount of another IntegerCol
- Parameters:
- sum - - amount to increment by
toBytes
public byte[] toBytes()
- Convert to a byte array
All Packages Class Hierarchy This Package Previous Next Index