public interface PreparedQuery
PreparedQueryCache
for invalidation mechanism on
possible actions under such circumstances.
The query execution model does account for context changes that do
not impact the target query e.g. bind variables.Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Get the immutable identifier of this receiver used for
*
cache . |
String |
getLanguage()
Gets the language in which this query is expressed.
|
String |
getOriginalQuery()
Get the original query.
|
String |
getTargetQuery()
Get the target database query.
|
PreparedQueryCache.Exclusion |
initialize(Object o)
Initialize from the given argument.
|
boolean |
isInitialized()
Affirms if this receiver has been initialized.
|
Map |
reparametrize(Map user,
Broker broker)
Get the list of parameters in a map where an entry represents a parameter
key and value after replacing with the given user parameters.
|
void |
setInto(Query q)
Fill in the post-compilation state of the given Query.
|
String getIdentifier()
cache
.String getTargetQuery()
String getOriginalQuery()
String getLanguage()
void setInto(Query q)
q
- A Query which has been substituted by this receiver and hence
does not have its post-compilation state.PreparedQueryCache.Exclusion initialize(Object o)
o
- an opaque instance supposed to carry post-execution data such
as target database query, parameters of the query etc.boolean isInitialized()
Map reparametrize(Map user, Broker broker)
user
- the map of parameter key and value set by the user on the
original query.Copyright © 2006–2019 Apache Software Foundation. All rights reserved.