Class EntityResolvedLiteral

java.lang.Object
com.blazebit.expression.declarative.persistence.EntityResolvedLiteral
All Implemented Interfaces:
com.blazebit.expression.spi.ResolvedLiteral, Serializable

public class EntityResolvedLiteral
extends Object
implements com.blazebit.expression.spi.ResolvedLiteral, Serializable
The resolved literal for an entity constructor expression.
Since:
1.0.0
Author:
Christian Beikov
See Also:
Serialized Form
  • Constructor Details

    • EntityResolvedLiteral

      public EntityResolvedLiteral​(com.blazebit.domain.runtime.model.DomainModel domainModel, com.blazebit.domain.runtime.model.EntityDomainType entityDomainType, Object idValue, boolean isIdString, String expressionPrefix, EntityLiteralPersistenceRestrictionProvider restrictionProvider)
      Creates a new entity resolved literal.
      Parameters:
      domainModel - The domain model
      entityDomainType - The entity domain type
      idValue - The entity id value
      isIdString - Whether the id is a string i.e. should be encoded as such in JPQL
      expressionPrefix - The JPQL expression prefix
      restrictionProvider - The restriction provider
  • Method Details

    • getType

      public com.blazebit.domain.runtime.model.DomainType getType()
      Specified by:
      getType in interface com.blazebit.expression.spi.ResolvedLiteral
    • getValue

      public Object getValue()
      Specified by:
      getValue in interface com.blazebit.expression.spi.ResolvedLiteral
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object