|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.types.UnsupportedType
public class UnsupportedType
Defines behavior for a type which is not supported by SQLUnit. This also serves as the superclass for all the other types.
| Constructor Summary | |
|---|---|
UnsupportedType()
Default constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Specifies the comparison order for this datatype. |
boolean |
equals(java.lang.Object obj)
Returns true if the value of the two types are equal. |
protected java.lang.String |
format(java.lang.Object obj)
The formatting hook with default behavior which is meant to be overriden by the subclass. |
protected java.lang.String |
formatString(java.lang.String obj)
The formatting hook which gets activated if the passed in Object is a String. |
int |
getId()
Returns the SQL Type Code for this type. |
java.lang.String |
getName()
Returns the XML name for this type. |
java.lang.Object |
getValue()
Returns the stored value for this type as an Object. |
int |
hashCode()
Returns the hashcode for the underlying value. |
protected java.lang.Object |
parse(java.lang.String str)
The parsing hook with default behavior which is meant to be overriden by the subclass. |
void |
setId(int id)
Sets the SQL Type code for this type. |
void |
setName(java.lang.String name)
Sets the XML name for this type. |
void |
setValue(java.lang.Object obj)
Sets the stored value for this type. |
java.lang.Object |
toObject(java.lang.String str)
Converts a String representation of the Object to the Object itself. |
java.lang.String |
toString(java.lang.Object obj)
Converts the Object to its String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnsupportedType()
| Method Detail |
|---|
public final java.lang.String getName()
getName in interface ITypepublic final void setName(java.lang.String name)
setName in interface ITypename - the XML name for this type.public final int getId()
getId in interface ITypepublic final void setId(int id)
setId in interface ITypeid - the SQL Type code for this type.public final java.lang.Object getValue()
getValue in interface ITypepublic final void setValue(java.lang.Object obj)
setValue in interface ITypeobj - the value to store in this type.
public final java.lang.String toString(java.lang.Object obj)
throws SQLUnitException
toString in interface ITypeobj - an Object to be converted to String.
SQLUnitException - if the conversion to String failed.
public final java.lang.Object toObject(java.lang.String str)
throws SQLUnitException
toObject in interface ITypestr - the String to be converted into an Object.
SQLUnitException - if the conversion to Object failed.public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the Object to compare against.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the Object to compare against.
protected java.lang.String format(java.lang.Object obj)
throws SQLUnitException
obj - the Object to convert to a String.
SQLUnitException - if the conversion to String failed.
protected java.lang.String formatString(java.lang.String obj)
throws SQLUnitException
obj - the String object.
SQLUnitException - if there was some problem with formatting.
protected java.lang.Object parse(java.lang.String str)
throws SQLUnitException
str - the String to parse into an Object.
SQLUnitException - if the conversion to Object failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||