| |
|
| java.lang.Object net.sourceforge.sqlunit.types.UnsupportedType net.sourceforge.sqlunit.types.TimestampType
TimestampType | public class TimestampType extends UnsupportedType (Code) | | Models a TIMESTAMP type.
author: Ralph Brendler (rbrendler@users.sourceforge.net) author: Sujit Pal (spal@users.sourceforge.net) version: $Revision: 1.10 $ |
Field Summary | |
protected static String | PATTERN Specifies the pattern for the DATE object. |
Method Summary | |
final public int | compareTo(Object obj) Returns a negative, zero or positive number according to whether this
object is smaller, equal or larger than the passed in object.
Parameters: obj - an Object of type TimestampType. | final public boolean | equals(Object obj) Returns true if this TimestampType is equal to the one passed in.
Parameters: obj - the Object to compare against. | protected String | format(Object obj) Formats a TIMESTAMP into its String representation.
Parameters: obj - an Object to be converted to the IType interface. | final public int | hashCode() Returns the hashcode for the underlying wrapped datatype. | protected Object | parse(String str) Parses a String representing a TIMESTAMP to a Timestamp.
Parameters: str - the String representation of the TIMESTAMP. |
PATTERN | protected static String PATTERN(Code) | | Specifies the pattern for the DATE object. This may be overriden in
subclasses to work with alternate forms of the TIMESTAMP type in
different databases.
|
compareTo | final public int compareTo(Object obj)(Code) | | Returns a negative, zero or positive number according to whether this
object is smaller, equal or larger than the passed in object.
Parameters: obj - an Object of type TimestampType. a negative, zero or positive number. |
equals | final public boolean equals(Object obj)(Code) | | Returns true if this TimestampType is equal to the one passed in.
Parameters: obj - the Object to compare against. true or false. |
format | protected String format(Object obj) throws SQLUnitException(Code) | | Formats a TIMESTAMP into its String representation.
Parameters: obj - an Object to be converted to the IType interface. the String representation of the object. exception: SQLUnitException - if the formatting failed. |
hashCode | final public int hashCode()(Code) | | Returns the hashcode for the underlying wrapped datatype.
the hashcode for the underlying datatype. |
parse | protected Object parse(String str) throws SQLUnitException(Code) | | Parses a String representing a TIMESTAMP to a Timestamp.
Parameters: str - the String representation of the TIMESTAMP. a java.sql.Time object. exception: SQLUnitException - if the parsing failed. |
|
|
|