org.opengts.dbtypes
Class DTIPAddress

java.lang.Object
  extended by org.opengts.dbtools.DBFieldType
      extended by org.opengts.dbtypes.DTIPAddress

public class DTIPAddress
extends DBFieldType


Constructor Summary
DTIPAddress(IPTools.IPAddress ipAddr)
           
DTIPAddress(java.sql.ResultSet rs, java.lang.String fldName)
           
DTIPAddress(java.lang.String ipAddr)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns true if the 'other' object is equivalent to this field type value
 java.lang.Object getObject()
          Gets the current value
 boolean isMatch(java.lang.String ipAddr)
           
 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

DTIPAddress

public DTIPAddress(IPTools.IPAddress ipAddr)

DTIPAddress

public DTIPAddress(java.lang.String ipAddr)

DTIPAddress

public DTIPAddress(java.sql.ResultSet rs,
                   java.lang.String fldName)
            throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

isMatch

public boolean isMatch(java.lang.String ipAddr)

getObject

public java.lang.Object getObject()
Description copied from class: DBFieldType
Gets the current value

Specified by:
getObject in class DBFieldType
Returns:
The current value

toString

public java.lang.String toString()
Description copied from class: DBFieldType
Gets the String representation of the current value

Specified by:
toString in class DBFieldType
Returns:
The String representation of the current value

equals

public boolean equals(java.lang.Object other)
Description copied from class: DBFieldType
Returns true if the 'other' object is equivalent to this field type value

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