|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.query.DefaultCompiledQuery
public class DefaultCompiledQuery
Represents a default implementation of the 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 Summary | |
|---|---|
DefaultCompiledQuery(Query query)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCompiledQuery(Query query)
| Method Detail |
|---|
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()
CompiledQuery
toSql in interface CompiledQuerypublic String toString()
toString in class Objectpublic void close()
CompiledQuery
close in interface Closeableclose in interface CompiledQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||