|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.types.UnsupportedType
net.sourceforge.sqlunit.types.TimeType
public class TimeType
Models a TIME type.
Field Summary | |
---|---|
protected static java.lang.String |
PATTERN
Specifies the pattern for the DATE object. |
Constructor Summary | |
---|---|
TimeType()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Returns a negative, zero or positive number according to whether this object is smaller, equal or larger than the passed in object. |
boolean |
equals(java.lang.Object obj)
Returns true if the two objects are equal, false otherwise. |
protected java.lang.String |
format(java.lang.Object obj)
Formats a TIME into its String representation. |
int |
hashCode()
Returns the hashcode for the underlying wrapped datatype. |
protected java.lang.Object |
parse(java.lang.String str)
Parses a String representing a TIME to a Time object. |
Methods inherited from class net.sourceforge.sqlunit.types.UnsupportedType |
---|
formatString, getId, getName, getValue, setId, setName, setValue, toObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String PATTERN
Constructor Detail |
---|
public TimeType()
Method Detail |
---|
protected java.lang.String format(java.lang.Object obj) throws SQLUnitException
format
in class UnsupportedType
obj
- an Object to be converted to the IType interface.
SQLUnitException
- if the formatting failed.protected java.lang.Object parse(java.lang.String str) throws SQLUnitException
parse
in class UnsupportedType
str
- the String representation of the DATE.
SQLUnitException
- if the parsing failed.public final boolean equals(java.lang.Object obj)
equals
in class UnsupportedType
obj
- the Object to compare against.
public final int hashCode()
hashCode
in class UnsupportedType
public final int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
compareTo
in class UnsupportedType
obj
- an Object of type TimeType.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |