|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IType
Interface to be implemented by all SQLUnit datatypes.
Method Summary | |
---|---|
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. |
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)
Parses a String representation of an IType to the corresponding object value. |
java.lang.String |
toString(java.lang.Object obj)
Formats an implementation of the IType interface to its corresponding String value. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- the XML name for this type.int getId()
void setId(int id)
id
- the SQL Type Code for this type.java.lang.Object getValue()
void setValue(java.lang.Object obj)
obj
- the value to store in this type.java.lang.Object toObject(java.lang.String str) throws SQLUnitException
str
- the String representation of the SQLUnit datatype.
SQLUnitException
- if the parsing failed.java.lang.String toString(java.lang.Object obj) throws SQLUnitException
obj
- an Object to be converted to the IType interface.
SQLUnitException
- if the formatting failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |