org.opengts.dbtools
Class DBFieldType

java.lang.Object
  extended by org.opengts.dbtools.DBFieldType
Direct Known Subclasses:
DTELogState, DTIPAddress, DTIPAddrList, DTOBDFault, DTProfileMask, DTTemplate, DTUniqueID

public abstract class DBFieldType
extends java.lang.Object

DBFieldType is an abstract superclass for custom field types


Constructor Summary
DBFieldType()
          Constructor
DBFieldType(java.sql.ResultSet rs, java.lang.String fldName)
          Constructor
DBFieldType(java.lang.String val)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns true if the 'other' object is equivalent to this field type value
abstract  java.lang.Object getObject()
          Gets the current value
abstract  java.lang.String toString()
          Gets the String representation of the current value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBFieldType

public DBFieldType()
Constructor


DBFieldType

public DBFieldType(java.lang.String val)
Constructor

Parameters:
val - A default initialization value

DBFieldType

public DBFieldType(java.sql.ResultSet rs,
                   java.lang.String fldName)
            throws java.sql.SQLException
Constructor

Parameters:
rs - The ResultSet from which this field type will be initialized
fldName - The field name within the ResultSet used to initialize this field type
Throws:
java.sql.SQLException
Method Detail

getObject

public abstract java.lang.Object getObject()
Gets the current value

Returns:
The current value

toString

public abstract java.lang.String toString()
Gets the String representation of the current value

Overrides:
toString in class java.lang.Object
Returns:
The String representation of the current value

equals

public boolean equals(java.lang.Object other)
Returns true if the 'other' object is equivalent to this field type value

Overrides:
equals in class java.lang.Object
Parameters:
other - The 'other' object
Returns:
True if the 'other' object is equivalent to this field type value