|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.util.TypesHelper
Expression
and subclasses instead.
A helper with constants for the various types and operators for configurable entity properties.
In general, there are 6 types of properties for configurable entities,
represented by constants on this class. Each of those types corresponds to
a Java object type as follows:
Constant Name | Constant Value | Class |
---|---|---|
BOOLEAN | 0 | java.lang.Boolean |
INTEGER | 1 | java.lang.Long |
FLOAT | 2 | java.lang.Double |
TEXT | 3 | java.lang.String |
DATETIME | 4 | java.sql.Timestamp |
USER_DEFINED | 5 | java.lang.Object |
java.util.Collection
of objects of the property's
type (e.g. java.lang.String's).
This class provides utility methods to get string representations of the type names, to determine a type from a java.sql.Type, and to get the list of comparision operators for a certain type.
ExpressionHelper
Field Summary | |
static String |
AND
Deprecated. The "and" ( && ) logical operator. |
static int |
BOOLEAN
Deprecated. The constant for a boolean type (0). |
static String |
CONTAINS
Deprecated. The contains (" contains ") comparator constant. |
static String |
CONTAINS_ALL
Deprecated. The contains all (" containsall ") comparator constant. |
static int |
DATETIME
Deprecated. The constant for a datetime type (4). |
static String |
EQUALS
Deprecated. The equals ( == ) comparator constant. |
static int |
FLOAT
Deprecated. The constant for the floating-point numeric type (2). |
static String |
GREATER_THAN
Deprecated. The greater than ( > ) comparator constant. |
static String |
GREATER_THAN_EQUALS
Deprecated. The greater than or equals ( >= ) comparator constant. |
static int |
INTEGER
Deprecated. The constant for a numeric type (1). |
static String |
LESS_THAN
Deprecated. The less than ( < ) comparator constant. |
static String |
LESS_THAN_EQUALS
Deprecated. The less than or equals ( <= ) comparator constant. |
static String |
LIKE
Deprecated. The wildcard pattern (" like ") comparator constant. |
static String |
LIKE_IGNORECASE
Deprecated. The wildcard pattern (" likeignorecase ") comparator constant. |
static int |
MULTI_VALUED
Deprecated. The constant for a multivalued type (6). |
static String |
NOT_EQUALS
Deprecated. The not equals ( ! |
static String |
OR
Deprecated. The "or" ( || ) logical operator. |
static int |
TEXT
Deprecated. The constant for a text type (3). |
static int |
USER_DEFINED
Deprecated. The constant for a user defined type (5). |
Constructor Summary | |
TypesHelper()
Deprecated. |
Method Summary | |
static int |
fromSQLType(int sqlType)
Deprecated. Convert a java.sql.Types constant into one of ours. |
static List |
getComparators(int type)
Deprecated. Get the list of comparators for a given attribute type. |
static String |
getDisplayName(String comparator)
Deprecated. Get the display name for the given comparator. |
static String |
getTypeName(int type)
Deprecated. Get the descriptive type name from the type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String AND
&&
) logical operator.
public static final int BOOLEAN
public static final String CONTAINS
contains
") comparator constant.
public static final String CONTAINS_ALL
containsall
") comparator constant.
public static final int DATETIME
public static final String EQUALS
==
) comparator constant.
public static final int FLOAT
public static final String GREATER_THAN
>
) comparator constant.
public static final String GREATER_THAN_EQUALS
>=
) comparator constant.
public static final int INTEGER
public static final String LESS_THAN
<
) comparator constant.
public static final String LESS_THAN_EQUALS
<=
) comparator constant.
public static final String LIKE
like
") comparator constant.
public static final String LIKE_IGNORECASE
likeignorecase
") comparator constant.
public static final int MULTI_VALUED
public static final String NOT_EQUALS
!=
) comparator constant.
public static final String OR
||
) logical operator.
public static final int TEXT
public static final int USER_DEFINED
Constructor Detail |
public TypesHelper()
Method Detail |
public static int fromSQLType(int sqlType)
sqlType
- value from java.sql.Types.
public static List getComparators(int type)
public static String getDisplayName(String comparator)
public static String getTypeName(int type)
type
- the type (BOOLEAN, NUMERIC, TEXT, DATETIME, MULTI_VALUED,
USER_DEFINED).
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |