edu.unh.sdb.common
Class UserTypeBuilder

java.lang.Object
  extended by edu.unh.sdb.common.UserTypeBuilder
Direct Known Subclasses:
RangedTypeBuilder, RecordDescriptorBuilder

public class UserTypeBuilder
extends java.lang.Object

Manufactures UserType objects. Hold relevant data and validates before instantiating the appropriate objects.


Field Summary
protected  int storageType
           
 
Constructor Summary
UserTypeBuilder(java.lang.String n, int st)
           
UserTypeBuilder(java.lang.String n, java.lang.String st)
           
 
Method Summary
 java.lang.String getName()
          Returns the name
 java.lang.String getStorageTypeName()
          Returns the name of the storage type.
 int getStorageTypeValue()
          Returns the integer value from the TypeTable of the storage type.
 UserType makeUserType()
          Returns a Type object that has been instantiated as a UserType object.
 void setName(java.lang.String s)
          Sets the name to the String provided
 void setStorageType(int st)
          Sets the base storage type given the integer value of the type within the TypeTable.
 void setStorageType(java.lang.String st)
          Sets the base storage type given the string name of the type within the TypeTable.
 java.lang.String toString()
          diagnostic utility method for dumping this class to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

storageType

protected int storageType
Constructor Detail

UserTypeBuilder

public UserTypeBuilder(java.lang.String n,
                       int st)

UserTypeBuilder

public UserTypeBuilder(java.lang.String n,
                       java.lang.String st)
Method Detail

setName

public void setName(java.lang.String s)
Sets the name to the String provided


getName

public java.lang.String getName()
Returns the name


setStorageType

public void setStorageType(java.lang.String st)
Sets the base storage type given the string name of the type within the TypeTable.


setStorageType

public void setStorageType(int st)
Sets the base storage type given the integer value of the type within the TypeTable.


getStorageTypeValue

public int getStorageTypeValue()
Returns the integer value from the TypeTable of the storage type.


getStorageTypeName

public java.lang.String getStorageTypeName()
Returns the name of the storage type.


makeUserType

public UserType makeUserType()
Returns a Type object that has been instantiated as a UserType object. If unable to create the object a null Type object will be returned


toString

public java.lang.String toString()
diagnostic utility method for dumping this class to a string

Overrides:
toString in class java.lang.Object