static java.util.List |
ExpressionParserUtility.compileColumnExpression(java.lang.String expression) |
compile the expression
|
static java.util.List |
ExpressionParserUtility.compileColumnExpression(ExpressionParserUtility util,
java.lang.String expression,
java.lang.String indicator) |
compile the expression
|
static java.lang.Object |
DataTypeUtil.convert(java.lang.Object source,
int toType) |
convert an object to given type Types supported: DataType.INTEGER_TYPE
DataType.DECIMAL_TYPE DataType.BOOLEAN_TYPE DataType.DATE_TYPE
DataType.DOUBLE_TYPE DataType.STRING_TYPE DataType.BLOB_TYPE
DataType.SQL_DATE_TYPE DataType.SQL_TIME_TYPE
|
static java.lang.Object |
DataTypeUtil.convert(java.lang.Object source,
java.lang.Class toTypeClass) |
convert a object to given class Classes supported: Integer.class
BigDecimal.class Boolean.class Time.class Date.class Double.class
String.class Blob.class
|
static java.util.List<IColumnBinding> |
ExpressionUtil.extractColumnExpressions(java.lang.String oldExpression) |
Extract all column expression info
|
static java.util.List<IColumnBinding> |
ExpressionUtil.extractColumnExpressions(java.lang.String oldExpression,
boolean mode) |
Deprecated.
|
static java.util.List<IColumnBinding> |
ExpressionUtil.extractColumnExpressions(java.lang.String oldExpression,
java.lang.String indicator) |
Extract all column expression info
|
static java.lang.String |
DateFormatISO8601.format(java.util.Date date) |
Parse a date/time string.
|
static java.lang.String |
DateFormatISO8601.format(java.util.Date date,
com.ibm.icu.util.TimeZone timeZone) |
Format a date/time object.
|
static java.lang.String |
ExpressionUtil.generateConstantExpr(java.lang.String input,
int dataType) |
Generate a Javascript constant expression by user input string and target
BIRT data type.
|
java.lang.String |
ExpressionHelper.getColumnBindingName(java.lang.String oldExpression) |
|
static java.lang.String |
ExpressionUtil.getColumnBindingName(java.lang.String oldExpression) |
Get the simplest column binding name.
|
java.lang.String |
ExpressionHelper.getColumnName(java.lang.String oldExpression) |
|
static java.lang.String |
ExpressionUtil.getColumnName(java.lang.String oldExpression) |
Get the simplest column binding name.
|
static java.lang.String |
DataTypeUtil.getDateFormat(java.lang.String source) |
Find the date format pattern string for a given datetime string without
specified locale.
|
static com.ibm.icu.text.DateFormat |
DataTypeUtil.getDateFormat(java.lang.String source,
com.ibm.icu.util.ULocale locale,
com.ibm.icu.util.TimeZone timeZone) |
Deprecated.
|
static com.ibm.icu.text.SimpleDateFormat |
DateFormatISO8601.getDateFormat(java.lang.String source,
com.ibm.icu.util.TimeZone timeZone) |
Deprecated.
|
static com.ibm.icu.text.DateFormat |
DataTypeUtil.getDateFormatObject(java.lang.String source,
com.ibm.icu.util.ULocale locale,
com.ibm.icu.util.TimeZone timeZone) |
Retrieve date format object that matches the given date/time string
|
static com.ibm.icu.text.SimpleDateFormat |
DateFormatISO8601.getSimpleDateFormat(java.lang.String source,
com.ibm.icu.util.TimeZone timeZone) |
Get a date format object that can parse the given date/time string
|
static boolean |
ExpressionParserUtility.hasAggregation(java.lang.String expression) |
|
static boolean |
ExpressionParserUtility.isDirectColumnRef(java.lang.String expression,
java.lang.String indicator) |
|
static java.util.Date |
DateFormatISO8601.parse(java.lang.String source,
com.ibm.icu.util.TimeZone timeZone) |
Parse a date/time string.
|
static int |
DataTypeUtil.toApiDataType(int odaDataTypeCode) |
Converts an ODA data type code to its corresponding Data Engine API data type
constant defined in DataType.
|
static java.math.BigDecimal |
DataTypeUtil.toBigDecimal(java.lang.Object source) |
Boolean -> BigDecimal true -> 1 others -> 0 Date -> BigDecimal
Date.getTime(); String -> BigDecimal new BigDecimal(String);
|
static java.sql.Blob |
DataTypeUtil.toBlob(java.lang.Object source) |
Converting Blob to/from other types is not currently supported
|
static java.lang.Boolean |
DataTypeUtil.toBoolean(java.lang.Object source) |
Number -> Boolean 0 -> false others -> true String -> Boolean "true" -> true
(ignore case) "false" -> false (ignore case) other string will throw an
exception Date -> Boolean throw exception
|
static byte[] |
DataTypeUtil.toBytes(java.lang.Object source) |
|
static java.util.Date |
DataTypeUtil.toDate(java.lang.Object source) |
Number -> Date new Date((long)Number) String -> Date toDate(String)
|
static java.util.Date |
DataTypeUtil.toDate(java.lang.String source,
com.ibm.icu.util.TimeZone timeZone) |
Convert a string to a Date instance according to the TimeZone value
|
static java.util.Date |
DataTypeUtil.toDate(java.lang.String source,
com.ibm.icu.util.ULocale locale) |
convert String with the specified locale to java.util.Date
|
static java.util.Date |
DataTypeUtil.toDate(java.lang.String source,
com.ibm.icu.util.ULocale locale,
com.ibm.icu.util.TimeZone timeZone) |
Parses a date/time string
|
static java.util.Date |
DataTypeUtil.toDate(java.lang.String source,
java.util.Locale locale) |
A temp solution to the adoption of ICU4J to BIRT.
|
static java.util.Date |
DataTypeUtil.toDateWithCheck(java.lang.String source,
com.ibm.icu.util.ULocale locale) |
Convert string to date with check.
|
static java.util.Date |
DataTypeUtil.toDateWithCheck(java.lang.String source,
java.util.Locale locale) |
A temp solution to the adoption of ICU4J in BIRT.
|
static java.lang.Double |
DataTypeUtil.toDouble(java.lang.Object source) |
Boolean -> Double true -> 1 others -> 0 Date -> Double Date.getTime(); String
-> Double Double.valueOf(String);
|
static java.lang.Integer |
DataTypeUtil.toInteger(java.lang.Object source) |
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime();
String -> Integer Integer.valueOf();
|
static java.lang.Integer |
DataTypeUtil.toInteger(java.lang.Object source,
com.ibm.icu.util.ULocale locale) |
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime();
String -> Integer Integer.valueOf();
|
static java.lang.String |
DataTypeUtil.toLocaleNeutralString(java.lang.Object source) |
Convert an object to an locale neutral String value.
|
static java.lang.String |
DataTypeUtil.toLocaleNeutralString(java.lang.Object source,
com.ibm.icu.util.TimeZone zone) |
Convert an object to an locale neutral String value.
|
static java.lang.Class |
DataTypeUtil.toOdiTypeClass(int odaDataTypeCode) |
Converts an ODA data type code to the Java class of its corresponding Data
Engine ODI data type.
|
static java.sql.Date |
DataTypeUtil.toSqlDate(java.lang.Object source) |
Date -> Time String -> Time
|
static java.sql.Time |
DataTypeUtil.toSqlTime(java.lang.Object source) |
Date -> Time String -> Time
|
static java.lang.String |
DataTypeUtil.toString(java.lang.Object source) |
Number -> String Number.toString() Boolean -> String Boolean.toString() Date
-> String toString(Date)
|
static java.lang.String |
DataTypeUtil.toString(java.lang.Object source,
com.ibm.icu.util.ULocale locale) |
Number -> String Number.toString() Boolean -> String Boolean.toString() Date
-> String toString(Date,locale)
|
static java.lang.String |
DataTypeUtil.toString(java.lang.Object source,
java.util.Locale locale) |
A temp solution to the adoption of ICU4J.
|
static java.sql.Timestamp |
DataTypeUtil.toTimestamp(java.lang.Object source) |
|