Class EnumExpression

  • Direct Known Subclasses:
    EnumLiteral

    public class EnumExpression
    extends DelegatedExpression
    Expression representing an enum field/property. An enum can be represented as a String or as a numeric hence requires its own expression. Implemented as an internal delegate of the correct root expression type.
    • Constructor Detail

      • EnumExpression

        public EnumExpression​(SQLStatement stmt,
                              SQLTable table,
                              JavaTypeMapping mapping)
        Constructor for an expression for an enum field/property.
        Parameters:
        stmt - The SQL statement
        table - Table containing the enum
        mapping - Mapping for the enum