Used instead of SqmLiteral which would require parsing the
literal value to the specified number type to avoid loss of precision
due to Float and Double being non-exact types.
API Note
Only used for HQL literals because we do not have this problem with criteria queries where the value given us by user would already be typed.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final NumericTypeCategory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SqmHqlNumericLiteral(String literalValue, NumericTypeCategory typeCategory, BasicDomainType<N> type, NodeBuilder criteriaBuilder)
|
| Modifier and Type | Method and Description |
|---|---|
| public <X> X | accept(SemanticQueryWalker<X> walker)
Overrides org. Implements org. |
| public void | |
| public String | asLoggableText()
Overrides org. Overrides default org. |
| public SqmHqlNumericLiteral | |
| public BasicDomainType | |
| public N | |
| public BasicDomainType | getNodeType()
Overrides org. Implements org. |
| public NumericTypeCategory | |
| public String | |
| private static <N extends Number> NumericTypeCategory |
| literalValue | back to summary |
|---|---|
| private final String literalValue | |
| typeCategory | back to summary |
|---|---|
| private final NumericTypeCategory typeCategory | |
| SqmHqlNumericLiteral | back to summary |
|---|---|
| public SqmHqlNumericLiteral(String literalValue, BasicDomainType<N> type, NodeBuilder criteriaBuilder) | |
| SqmHqlNumericLiteral | back to summary |
|---|---|
| public SqmHqlNumericLiteral(String literalValue, NumericTypeCategory typeCategory, BasicDomainType<N> type, NodeBuilder criteriaBuilder) | |
| accept | back to summary |
|---|---|
| public <X> X accept(SemanticQueryWalker<X> walker) Overrides org. Implements org. Doc from org. Accept the walker per visitation
| |
| appendHqlString | back to summary |
|---|---|
| public void appendHqlString(StringBuilder sb) Overrides org. Implements org.
| |
| asLoggableText | back to summary |
|---|---|
| public String asLoggableText() Overrides org. Overrides default org.
| |
| copy | back to summary |
|---|---|
| public SqmHqlNumericLiteral Overrides org. Implements org.
| |
| getExpressible | back to summary |
|---|---|
| public BasicDomainType Overrides default org.
| |
| getLiteralValue | back to summary |
|---|---|
| public N getLiteralValue() Overrides org.
| |
| getNodeType | back to summary |
|---|---|
| public BasicDomainType Overrides org. Implements org. Doc from org. The expression's type.
Can change as a result of calls to
| |
| getTypeCategory | back to summary |
|---|---|
| public NumericTypeCategory getTypeCategory() | |
| getUnparsedLiteralValue | back to summary |
|---|---|
| public String getUnparsedLiteralValue() | |
| interpretCategory | back to summary |
|---|---|
| private static <N extends Number> NumericTypeCategory interpretCategory(String literalValue, SqmExpressible<N> type) | |
| Access | Constructor and Description |
|---|---|
| public |
| TypeException | back to summary |
|---|---|
| public TypeException(String literalValue, Class<?> javaType) | |