public class Literals
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Literals.LiteralImpl<T>Creates a literal with the given type value. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Literal<Types.NullType> | NULLUsed to represent a null literal. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Literals.LiteralImpl<java.lang.Boolean> | booleanLiteral(java.lang.Boolean value)Creates a boolean type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Byte> | byteLiteral(java.lang.Byte value)Creates a byte type literal with the given value. | 
| static Literals.LiteralImpl<java.time.LocalDate> | dateLiteral(java.time.LocalDate value)Creates a date type literal with the given value. | 
| static Literals.LiteralImpl<Decimal> | decimalLiteral(Decimal value)Creates a decimal type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Double> | doubleLiteral(java.lang.Double value)Creates a double type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Float> | floatLiteral(java.lang.Float value)Creates a float type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Integer> | integerLiteral(java.lang.Integer value)Creates an integer type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Long> | longLiteral(java.lang.Long value)Creates a long type literal with the given value. | 
| static <T> Literals.LiteralImpl<T> | of(T value,
  Type dataType)Creates a literal with the given value and data type. | 
| static Literals.LiteralImpl<java.lang.Short> | shortLiteral(java.lang.Short value)Creates a short type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.String> | stringLiteral(java.lang.String value)Creates a string type literal with the given value. | 
| static Literals.LiteralImpl<java.time.LocalTime> | timeLiteral(java.time.LocalTime value)Creates a time type literal with the given value. | 
| static Literals.LiteralImpl<java.time.LocalDateTime> | timestampLiteral(java.time.LocalDateTime value)Creates a timestamp type literal with the given value. | 
| static Literals.LiteralImpl<java.time.LocalDateTime> | timestampLiteral(java.lang.String value)Creates a timestamp type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Short> | unsignedByteLiteral(java.lang.Short value)Creates an unsigned byte type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Long> | unsignedIntegerLiteral(java.lang.Long value)Creates an unsigned integer type literal with the given value. | 
| static Literals.LiteralImpl<Decimal> | unsignedLongLiteral(Decimal value)Creates an unsigned long type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.Integer> | unsignedShortLiteral(java.lang.Integer value)Creates an unsigned short type literal with the given value. | 
| static Literals.LiteralImpl<java.lang.String> | varcharLiteral(int length,
              java.lang.String value)Creates a varchar type literal with the given value. | 
public static final Literal<Types.NullType> NULL
public static <T> Literals.LiteralImpl<T> of(T value, Type dataType)
T - the JVM type of value held by the literalvalue - the literal valuedataType - the data type of the literalLiteral instancepublic static Literals.LiteralImpl<java.lang.Boolean> booleanLiteral(java.lang.Boolean value)
value - the boolean literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Byte> byteLiteral(java.lang.Byte value)
value - the byte literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Short> unsignedByteLiteral(java.lang.Short value)
value - the unsigned byte literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Short> shortLiteral(java.lang.Short value)
value - the short literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Integer> unsignedShortLiteral(java.lang.Integer value)
value - the unsigned short literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Integer> integerLiteral(java.lang.Integer value)
value - the integer literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Long> unsignedIntegerLiteral(java.lang.Long value)
value - the unsigned integer literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Long> longLiteral(java.lang.Long value)
value - the long literal valueLiteral instancepublic static Literals.LiteralImpl<Decimal> unsignedLongLiteral(Decimal value)
value - the unsigned long literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Float> floatLiteral(java.lang.Float value)
value - the float literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.Double> doubleLiteral(java.lang.Double value)
value - the double literal valueLiteral instancepublic static Literals.LiteralImpl<Decimal> decimalLiteral(Decimal value)
value - the decimal literal valueLiteral instancepublic static Literals.LiteralImpl<java.time.LocalDate> dateLiteral(java.time.LocalDate value)
value - the date literal valueLiteral instancepublic static Literals.LiteralImpl<java.time.LocalTime> timeLiteral(java.time.LocalTime value)
value - the time literal valueLiteral instancepublic static Literals.LiteralImpl<java.time.LocalDateTime> timestampLiteral(java.time.LocalDateTime value)
value - the timestamp literal valueLiteral instancepublic static Literals.LiteralImpl<java.time.LocalDateTime> timestampLiteral(java.lang.String value)
value - the timestamp literal value, must be in the format "yyyy-MM-ddTHH:mm:ss"Literal instancepublic static Literals.LiteralImpl<java.lang.String> stringLiteral(java.lang.String value)
value - the string literal valueLiteral instancepublic static Literals.LiteralImpl<java.lang.String> varcharLiteral(int length, java.lang.String value)
value - the string literal valuelength - the length of the varcharLiteral instance