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
QueryParameter s 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()
CompiledQuery
QueryParameter
s associated with the compiled query.
Values for these parameters are expected when the query is executed.getParameters
in interface CompiledQuery
public String toSql()
CompiledQuery
toSql
in interface CompiledQuery
public void close()
CompiledQuery
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CompiledQuery
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.