Class TypeConverterLiteral

  • All Implemented Interfaces:
    SQLLiteral

    public class TypeConverterLiteral
    extends DelegatedExpression
    implements SQLLiteral
    Wrapper literal handler for a TypeConverterMapping to avoid the need to have an explicit mapping for something using a TypeConverter.
    • Constructor Detail

      • TypeConverterLiteral

        public TypeConverterLiteral​(SQLStatement stmt,
                                    JavaTypeMapping mapping,
                                    java.lang.Object value,
                                    java.lang.String parameterName)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Description copied from interface: SQLLiteral
        Accessor to the literal value
        Specified by:
        getValue in interface SQLLiteral
        Returns:
        the value of the literal
      • setNotParameter

        public void setNotParameter()
        Description copied from interface: SQLLiteral
        Method to set this literal as not being a parameter. If the literal if not currently a parameter then does nothing. Updates any underlying SQL to have the value.
        Specified by:
        setNotParameter in interface SQLLiteral