public class QueryKey
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
additionalCriteriaParameters |
protected int |
firstRow |
protected int |
hashCode |
protected java.util.UUID |
id |
protected int |
maxRows |
protected java.util.Map<java.lang.String,java.lang.Object> |
namedParameters |
protected java.lang.Object[] |
positionalParameters |
protected java.lang.String |
queryString |
protected boolean |
singleResult |
protected boolean |
softDeletion |
Modifier | Constructor and Description |
---|---|
protected |
QueryKey(java.lang.String queryString,
int firstRow,
int maxRows,
boolean softDeletion,
boolean singleResult,
java.util.Map<java.lang.String,java.lang.Object> namedParameters,
java.lang.Object[] positionalParameters,
java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters) |
Modifier and Type | Method and Description |
---|---|
static QueryKey |
create(java.lang.String queryString,
boolean softDeletion,
boolean singleResult,
javax.persistence.Query jpaQuery,
java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters) |
static QueryKey |
create(java.lang.String queryString,
boolean softDeletion,
javax.persistence.Query jpaQuery,
java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters) |
boolean |
equals(java.lang.Object o) |
protected boolean |
equalsFields(QueryKey queryKey) |
protected boolean |
equalsParams(QueryKey queryKey) |
protected int |
generateArrayHashCode(java.lang.Object array) |
protected int |
generateHashCode() |
protected int |
generateMapHashCode(java.util.Map<java.lang.String,java.lang.Object> map) |
java.util.UUID |
getId() |
int |
hashCode() |
protected boolean |
mapEquals(java.util.Map<java.lang.String,java.lang.Object> a,
java.util.Map<java.lang.String,java.lang.Object> b) |
java.lang.String |
printDescription() |
protected final java.lang.String queryString
protected final int firstRow
protected final int maxRows
protected final boolean softDeletion
protected final boolean singleResult
protected final java.util.Map<java.lang.String,java.lang.Object> namedParameters
protected final java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters
protected final java.lang.Object[] positionalParameters
protected final int hashCode
protected final transient java.util.UUID id
protected QueryKey(java.lang.String queryString, int firstRow, int maxRows, boolean softDeletion, boolean singleResult, java.util.Map<java.lang.String,java.lang.Object> namedParameters, java.lang.Object[] positionalParameters, java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters)
public static QueryKey create(java.lang.String queryString, boolean softDeletion, javax.persistence.Query jpaQuery, java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters)
public static QueryKey create(java.lang.String queryString, boolean softDeletion, boolean singleResult, javax.persistence.Query jpaQuery, java.util.Map<java.lang.String,java.lang.Object> additionalCriteriaParameters)
public java.util.UUID getId()
public java.lang.String printDescription()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean equalsFields(QueryKey queryKey)
protected boolean equalsParams(QueryKey queryKey)
public int hashCode()
hashCode
in class java.lang.Object
protected int generateHashCode()
protected int generateMapHashCode(java.util.Map<java.lang.String,java.lang.Object> map)
protected boolean mapEquals(java.util.Map<java.lang.String,java.lang.Object> a, java.util.Map<java.lang.String,java.lang.Object> b)
protected int generateArrayHashCode(java.lang.Object array)