18 package com.mysql.clusterj.core.query;
21 import com.mysql.clusterj.Results;
22 import com.mysql.clusterj.core.*;
23 import com.mysql.clusterj.Query;
24 import com.mysql.clusterj.core.util.I18NHelper;
25 import com.mysql.clusterj.core.util.Logger;
26 import com.mysql.clusterj.core.util.LoggerFactoryService;
28 import java.util.List;
31 public class QueryImpl<
E>
implements Query<E> {
43 protected QueryDomainTypeImpl<E>
dobj;
48 public QueryImpl(
SessionImpl session, QueryDomainTypeImpl<E> dobj) {
49 this.session = session;
55 throw new UnsupportedOperationException(
56 local.message(
"ERR_NotImplemented"));
60 throw new UnsupportedOperationException(
61 local.message(
"ERR_NotImplemented"));
64 public Results<E> execute(Map<String, ?> arg0) {
65 throw new UnsupportedOperationException(
66 local.message(
"ERR_NotImplemented"));
69 public void setParameter(
String parameterName, Object parameterValue) {
70 context.bindParameterValue(parameterName, parameterValue);
73 public List<E> getResultList() {
74 List<E> results = dobj.getResultList(context);
76 context =
new QueryExecutionContextImpl(context);
84 int result = dobj.deletePersistentAll(context);
93 Map<String, Object> result = context.getExplain();
95 dobj.explain(context);
96 return context.getExplain();