/** Build the hash for the query plan caching. */ public void buildQueryPlanHash(HashQueryPlanBuilder builder) { builder.add(OrmUpdateProperties.class); Set<Map.Entry<String, Value>> entries = values.entrySet(); for (Map.Entry<String, Value> entry : entries) { builder.add(entry.getKey()); builder.bind(entry.getValue().getBindCount()); } }
/** Based on the sql. */ public void queryAutoFetchHash(HashQueryPlanBuilder builder) { builder.add(RawExpression.class).add(sql); }