|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.Type
edu.unh.sdb.common.StorageType
public class StorageType
The StorageType class represents the various basic types that are native to Java. User defined types are ultimately defined in terms of storage types, since these are the units that are written and read from disk or other sources of raw data.
Field Summary | |
---|---|
static int |
Boolean
|
static int |
Byte
|
static int |
Char
|
static int |
Double
|
static int |
Float
|
static int |
Int
|
static int |
Long
|
static int |
Record
|
static int |
Short
|
static int |
Undefined
|
static int |
Unsigned_Byte
|
static int |
Unsigned_Short
|
static int |
UnsignedByte
|
static int |
UnsignedShort
|
Fields inherited from class edu.unh.sdb.common.Type |
---|
name |
Method Summary | |
---|---|
static int |
byteSize(int type)
Return the length in bytes of the "basic" StorageTypes. |
static int |
getNumStorageTypes()
Return the number of distinct StorageTypes. |
static java.lang.String |
intToTypeString(int type)
returns a String of the name of the type indicated by the argument. |
static boolean |
isSimpleStorageType(int type)
Returns true if the argument is a valid StorageType value, except for StorageType.Record. |
static boolean |
isStorageType(int type)
Returns true if the argument is a valid StorageType value, false otherwise. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
name(int type)
returns a String of the name of the type indicated by the argument. |
java.lang.String |
toString()
Return this StorageType represented as a nicely formatted String. |
static int |
typeStringtoInt(java.lang.String type)
Returns a valid type constant if the String argument is a valid type string. |
Methods inherited from class edu.unh.sdb.common.Type |
---|
equals, getName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int Undefined
public static final int Boolean
public static final int Byte
public static final int Unsigned_Byte
public static final int UnsignedByte
public static final int Char
public static final int Short
public static final int Unsigned_Short
public static final int UnsignedShort
public static final int Int
public static final int Float
public static final int Double
public static final int Long
public static final int Record
Method Detail |
---|
public static int typeStringtoInt(java.lang.String type)
public static final java.lang.String intToTypeString(int type)
public static java.lang.String name(int type)
public static final boolean isStorageType(int type)
public static final boolean isSimpleStorageType(int type)
public java.lang.String toString()
toString
in class Type
public static final int getNumStorageTypes()
public static int byteSize(int type)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |