Class QueryKey

java.lang.Object
io.jmix.eclipselink.impl.entitycache.QueryKey
All Implemented Interfaces:
Serializable

public class QueryKey extends Object implements Serializable
See Also:
  • Field Details

    • originalQueryString

      protected final String originalQueryString
    • queryString

      protected final String queryString
    • firstRow

      protected final int firstRow
    • maxRows

      protected final int maxRows
    • softDeletion

      protected final boolean softDeletion
    • singleResult

      protected final boolean singleResult
    • originalNamedParameters

      protected final Map<String,Object> originalNamedParameters
    • namedParameters

      protected final Map<String,Object> namedParameters
    • additionalCriteriaParameters

      protected final Map<String,Object> additionalCriteriaParameters
    • positionalParameters

      protected final Object[] positionalParameters
    • hashCode

      protected final int hashCode
    • id

      protected final transient UUID id
    • PARAMETER_TEMPLATE_PATTERN

      protected static final Pattern PARAMETER_TEMPLATE_PATTERN
  • Constructor Details

    • QueryKey

      protected QueryKey(String queryString, int firstRow, int maxRows, boolean softDeletion, boolean singleResult, Map<String,Object> namedParameters, Object[] positionalParameters, Map<String,Object> additionalCriteriaParameters)
  • Method Details

    • create

      public static QueryKey create(String queryString, boolean softDeletion, boolean singleResult, javax.persistence.Query jpaQuery, Map<String,Object> additionalCriteriaParameters)
    • getId

      public UUID getId()
    • printDescription

      public String printDescription()
    • equals

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

      protected boolean equalsFields(QueryKey queryKey)
    • equalsParams

      protected boolean equalsParams(QueryKey queryKey)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • generateHashCode

      protected int generateHashCode()
    • generateMapHashCode

      protected int generateMapHashCode(Map<String,Object> map)
    • mapEquals

      protected boolean mapEquals(Map<String,Object> a, Map<String,Object> b)
    • generateArrayHashCode

      protected int generateArrayHashCode(Object array)