Class InlineLiteralExpression<T>

java.lang.Object
org.hibernate.query.criteria.internal.AbstractNode
org.hibernate.query.criteria.internal.expression.AbstractTupleElement<T>
org.hibernate.query.criteria.internal.expression.SelectionImpl<T>
org.hibernate.query.criteria.internal.expression.ExpressionImpl<T>
org.hibernate.query.criteria.internal.expression.LiteralExpression<T>
ch.tocco.nice2.persist.core.api.hibernate.InlineLiteralExpression<T>
All Implemented Interfaces:
Serializable, javax.persistence.criteria.Expression<T>, javax.persistence.criteria.Selection<T>, javax.persistence.TupleElement<T>, org.hibernate.query.criteria.internal.ExpressionImplementor<T>, org.hibernate.query.criteria.internal.ParameterContainer, org.hibernate.query.criteria.internal.Renderable, org.hibernate.query.criteria.internal.SelectionImplementor<T>, org.hibernate.query.criteria.internal.TupleElementImplementor<T>

public class InlineLiteralExpression<T> extends org.hibernate.query.criteria.internal.expression.LiteralExpression<T>
A LiteralExpression that overrides the default LiteralHandlingMode and always uses LiteralHandlingMode.AUTO (do not use LiteralHandlingMode.INLINE to make sure Strings are never inlined (SQL injection risk)). Forcing inlining might be necessary in special circumstances.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.hibernate.query.criteria.internal.ParameterContainer

    org.hibernate.query.criteria.internal.ParameterContainer.Helper
  • Constructor Summary

    Constructors
    Constructor
    Description
    InlineLiteralExpression(org.hibernate.query.criteria.internal.CriteriaBuilderImpl criteriaBuilder, T literal)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    render(org.hibernate.query.criteria.internal.compile.RenderingContext renderingContext)
     

    Methods inherited from class org.hibernate.query.criteria.internal.expression.LiteralExpression

    getLiteral, registerParameters, resetJavaType

    Methods inherited from class org.hibernate.query.criteria.internal.expression.ExpressionImpl

    as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull

    Methods inherited from class org.hibernate.query.criteria.internal.expression.SelectionImpl

    alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection

    Methods inherited from class org.hibernate.query.criteria.internal.expression.AbstractTupleElement

    forceConversion, getAlias, getJavaType, getValueHandler, setAlias

    Methods inherited from class org.hibernate.query.criteria.internal.AbstractNode

    criteriaBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.persistence.criteria.Selection

    alias, getCompoundSelectionItems, isCompoundSelection

    Methods inherited from interface org.hibernate.query.criteria.internal.SelectionImplementor

    getValueHandlers

    Methods inherited from interface javax.persistence.TupleElement

    getAlias, getJavaType

    Methods inherited from interface org.hibernate.query.criteria.internal.TupleElementImplementor

    getValueHandler
  • Constructor Details

    • InlineLiteralExpression

      public InlineLiteralExpression(org.hibernate.query.criteria.internal.CriteriaBuilderImpl criteriaBuilder, T literal)
  • Method Details

    • render

      public String render(org.hibernate.query.criteria.internal.compile.RenderingContext renderingContext)
      Specified by:
      render in interface org.hibernate.query.criteria.internal.Renderable
      Overrides:
      render in class org.hibernate.query.criteria.internal.expression.LiteralExpression<T>