public class DefaultCompiledQuery extends Object implements CompiledQuery
CompiledQuery interface.
This implementation does not actually do anything to prepare the query, but
allows creating a clone of the originating query with the parameters replaced
by values.| Constructor and Description |
|---|
DefaultCompiledQuery(Query query) |
| Modifier and Type | Method and Description |
|---|---|
Query |
cloneWithParameterValues(Object[] values)
Clones the query while replacing query parameters with corresponding
values.
|
void |
close()
Closes any resources related to the compiled query.
|
List<QueryParameter> |
getParameters()
Gets the
QueryParameters associated with the compiled query. |
String |
toSql()
A representation of the query as SQL.
|
String |
toString() |
public DefaultCompiledQuery(Query query)
public Query cloneWithParameterValues(Object[] values)
values - public List<QueryParameter> getParameters()
CompiledQueryQueryParameters associated with the compiled query.
Values for these parameters are expected when the query is executed.getParameters in interface CompiledQuerypublic String toSql()
CompiledQuerytoSql in interface CompiledQuerypublic void close()
CompiledQueryclose in interface Closeableclose in interface AutoCloseableclose in interface CompiledQueryCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.