|
ThinkUI SQL Client 1.1.3 API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for all attribute types. The common characteristic of an attribute type is that:
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare two values of this attribute type. |
java.lang.Object |
convert(java.lang.String stringValue)
Convert the value formatted as a String back to the underlying value for this attribute type. |
java.lang.Object |
decode(java.lang.String encodedValue)
Decode the value for this attribute type that was previously encoded with the encode() method. |
java.lang.String |
display(java.lang.Object value)
Format the value for this attribute type for display purposes. |
java.lang.String |
encode(java.lang.Object value)
Encode the value for this attribute type. |
java.lang.String |
format(java.lang.Object value)
Format the value for this attribute type as a String based on the format description returned by the getFormat() method. |
java.lang.String |
getFormat()
Returns the format description string for this attribute type. |
int |
getMaxChars()
Returns the maximum number of characters required to represent the largest value of this attribute type. |
java.lang.String |
getName()
Returns the name of the attribute type. |
java.lang.String |
getRegexFilter()
Returns the regular expression that can be used to filter character input for the type. |
java.lang.String |
getRegexPattern()
Returns the regular expression that can be used to validate the input for the type (typically of type String). |
java.lang.Class |
getValueClass()
Returns the Java class of values of this attribute type. |
java.lang.Object |
getZeroValue()
|
void |
validate(java.lang.Object value)
Validate the value for this attribute type. |
Methods inherited from interface java.util.Comparator |
equals |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final AttributeType[] ALL_TYPES
public static final AttributeType BIG_DECIMAL
public static final AttributeType BIG_INTEGER
public static final AttributeType BINARY
public static final AttributeType BLOB
public static final AttributeType BOOLEAN
public static final AttributeType BYTE
public static final AttributeType CHARACTER
public static final AttributeType CLOB
public static final AttributeType DATA_OBJECT
public static final AttributeType DATE
public static final AttributeType DATETIME
public static final AttributeType DIR_NAME
public static final AttributeType DOUBLE
public static final AttributeType EMAIL_ADDRESS
public static final AttributeType FILE_NAME
public static final AttributeType FLOAT
public static final AttributeType IN_SET_SEARCH_CRITERIA
public static final AttributeType INTEGER
public static final AttributeType LONG
public static final AttributeType LONG_BINARY
public static final AttributeType OBJECT_ID
public static final AttributeType PASSWORD
public static final AttributeType RESULT_SET
public static final AttributeType SERIALIZABLE
public static final AttributeType SHORT
public static final AttributeType STRING
public static final AttributeType TEXT
public static final AttributeType TIME
public static final AttributeType TIMESTAMP
public static final AttributeType URL
public static final AttributeType USER_DEFINED
public static final AttributeType YN_CHARACTER
Method Detail |
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public java.lang.Object convert(java.lang.String stringValue) throws java.lang.Exception
java.lang.Exception
public java.lang.Object decode(java.lang.String encodedValue) throws java.lang.Exception
java.lang.Exception
public java.lang.String display(java.lang.Object value)
public java.lang.String encode(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public java.lang.String format(java.lang.Object value)
public java.lang.String getFormat()
public int getMaxChars()
public java.lang.String getName()
public java.lang.String getRegexFilter()
public java.lang.String getRegexPattern()
public java.lang.Class getValueClass()
public java.lang.Object getZeroValue()
public void validate(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
|
ThinkUI SQL Client 1.1.3 API | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |