public abstract class StandardType extends Object
Modifier and Type | Field and Description |
---|---|
static NumberContext |
AMOUNT
Precision: 16
Scale: 2
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.CURRENCY
Fits within the Sybase (and MS SQL Server) money type which is (19,4).
|
static DateContext |
DATE |
static DateContext |
DATETIME
|
static NumberContext |
DECIMAL_032
Precision: 7
Scale: 3
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
DECIMAL_064
Precision: 16
Scale: 8
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
DECIMAL_128
Precision: 34
Scale: 17
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
MATH_032
Precision: 7
Scale: 7
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
MATH_064
Precision: 16
Scale: 16
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
MATH_128
Precision: 34
Scale: 34
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
|
static NumberContext |
PERCENT
Precision: 7
Scale: 4
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.PERCENT
|
static NumberContext |
PRICE
Price or conversion rate (foreign exchange rate).
|
static NumberContext |
QUANTITY
Precision: 16
Scale: 6
Rounding Mode: RoundingMode.HALF_EVEN
Locale: JVM Default
Style: NumberStyle.GENERAL
Typically you have QUANTITY x PRICE = AMOUNT, an alternative
is QUANTITY x PRICE = QUANTITY.
|
static DateContext |
SQL_DATE |
static DateContext |
SQL_DATETIME |
static DateContext |
SQL_TIME |
static StringContext |
STRING_1 |
static StringContext |
STRING_3 |
static StringContext |
STRING_9 |
static StringContext |
STRING_M |
static StringContext |
TEXT |
static DateContext |
TIME |
Modifier | Constructor and Description |
---|---|
protected |
StandardType() |
public static final NumberContext AMOUNT
public static final DateContext DATE
public static final DateContext DATETIME
public static final NumberContext DECIMAL_032
public static final NumberContext DECIMAL_064
public static final NumberContext DECIMAL_128
public static final NumberContext MATH_032
public static final NumberContext MATH_064
public static final NumberContext MATH_128
public static final NumberContext PERCENT
public static final NumberContext PRICE
public static final NumberContext QUANTITY
public static final DateContext SQL_DATE
public static final DateContext SQL_DATETIME
public static final DateContext SQL_TIME
public static final StringContext STRING_1
public static final StringContext STRING_3
public static final StringContext STRING_9
public static final StringContext STRING_M
public static final StringContext TEXT
public static final DateContext TIME
public static NumberContext amount(Locale locale)
public static DateContext date()
public static NumberContext decimal032()
public static NumberContext decimal064()
public static NumberContext integer()
public static NumberContext percent(Locale locale)
public static StringContext string(int length)
public static NumberContext wholePercentage()
public TypeContext<Number> getAmount()
public TypeContext<Boolean> getBoolean()
public TypeContext<Date> getDate()
public TypeContext<Number> getDecimal032()
public TypeContext<Number> getDecimal064()
public TypeContext<Number> getDecimal128()
public TypeContext<Number> getMath032()
public TypeContext<Number> getMath064()
public TypeContext<Number> getMath128()
public TypeContext<Date> getMoment()
public TypeContext<Number> getMoney()
public TypeContext<Number> getParameter()
public TypeContext<Number> getPercent()
public TypeContext<Number> getPrice()
public TypeContext<Number> getQuantity()
public TypeContext<String> getString1()
public TypeContext<String> getString3()
public TypeContext<String> getString9()
public TypeContext<String> getStringM()
public TypeContext<String> getText()
public TypeContext<Date> getTime()
public TypeContext<Date> getTimestamp()
Copyright © 2019 Optimatika. All rights reserved.