private static class HQLPreprocessor.CacheKey
extends java.lang.Object
HQLPreprocessor
.Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
aliases
DMO aliases
|
private int |
cachedHash
The cache code.
|
private Database |
database
Database instance
|
private java.lang.Class<?>[] |
dmoIfaces
DMO interfaces, possibly
null |
private java.lang.String |
dropAlias
Alias to drop, if any
|
private static java.lang.String[] |
EMPTY_REFSUBS
Empty array of field reference strings
|
private static org.hibernate.type.Type[] |
EMPTY_TYPES
Empty array of Hibernate types
|
private boolean |
informational
Flag indicating preprocessing is analytical only and query will not be executed
|
private boolean |
inlinable
Whether query substitution parameters may be inlined
|
private java.lang.String[] |
referenceSubs
Array of field reference substitution replacements strings and nulls
|
private java.lang.String |
replacementAlias
Replacement alias , if any
|
private org.hibernate.type.Type[] |
types
Query substitution parameter types
|
private java.lang.String |
where
Where clause
|
Constructor and Description |
---|
CacheKey(Database database,
java.lang.String[] aliases,
java.lang.Class<?>[] dmoIfaces,
java.lang.String where,
org.hibernate.type.Type[] types,
java.lang.String[] referenceSubs,
boolean inlinable,
java.lang.String dropAlias,
java.lang.String replacementAlias,
boolean informational)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
_hashCode()
Return a hash code consistent with
equals(java.lang.Object) . |
boolean |
equals(java.lang.Object o)
Check this object for equivalence with another instance of this class.
|
int |
hashCode()
Return a hash code consistent with
equals(java.lang.Object) . |
private static org.hibernate.type.Type[] EMPTY_TYPES
private static java.lang.String[] EMPTY_REFSUBS
private final Database database
private final java.lang.String[] aliases
private final java.lang.Class<?>[] dmoIfaces
null
private final java.lang.String where
private final org.hibernate.type.Type[] types
private final java.lang.String[] referenceSubs
private final boolean inlinable
private final java.lang.String dropAlias
private final java.lang.String replacementAlias
private final boolean informational
private final int cachedHash
CacheKey(Database database, java.lang.String[] aliases, java.lang.Class<?>[] dmoIfaces, java.lang.String where, org.hibernate.type.Type[] types, java.lang.String[] referenceSubs, boolean inlinable, java.lang.String dropAlias, java.lang.String replacementAlias, boolean informational)
database
- Database instance.aliases
- One or more DMO aliases, corresponding with dmoIfaces
.dmoIfaces
- One or more DMO interfaces, corresponding with aliases
.where
- Where clause.types
- Query substitution parameter types.referenceSubs
- Array of field reference substitution replacements strings and nulls.inlinable
- Whether query substitution parameters may be inlined.dropAlias
- Alias to drop, if any.informational
- Flag indicating preprocessing is analytical only and query will not be executed.public int hashCode()
equals(java.lang.Object)
.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Another instance of this class.true
if instances are equivalent, else false
.private int _hashCode()
equals(java.lang.Object)
.