|
||||||||||
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.DateType
public class DateType
Models a DATE type.
Field Summary | |
---|---|
protected static java.lang.String |
PATTERN
Specifies the pattern for the DATE object. |
Constructor Summary | |
---|---|
DateType()
|
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 Object obj is the same as this object, else false. |
protected java.lang.String |
format(java.lang.Object obj)
Formats a DATE into its String representation. |
int |
hashCode()
The hashcode for this object, returns the hashcode for the wrapped java.sql.Date object. |
protected java.lang.Object |
parse(java.lang.String str)
Parses a String representing a DATE to a java.sql.Date. |
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 DateType()
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 with.
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 DateType.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |