edu.unh.sdb.common
Class UserType

java.lang.Object
  extended by edu.unh.sdb.common.Type
      extended by edu.unh.sdb.common.UserType
Direct Known Subclasses:
RangedType, RecordDescriptor

public class UserType
extends Type

The UserType class represents user defined types in the SDB system. Simple user defined types may be defined in terms of a storage type and a name.


Field Summary
protected  int storageType
           
 
Fields inherited from class edu.unh.sdb.common.Type
name
 
Constructor Summary
UserType(java.lang.String name, int storageType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getStorageType()
           
 java.lang.String toString()
          Return a representation of this object as a nicely formatted String.
 
Methods inherited from class edu.unh.sdb.common.Type
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

storageType

protected int storageType
Constructor Detail

UserType

public UserType(java.lang.String name,
                int storageType)
Method Detail

getStorageType

public int getStorageType()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Type

toString

public java.lang.String toString()
Return a representation of this object as a nicely formatted String. This method is meant to be called by the toString method of child classes only.

Overrides:
toString in class Type