/** 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());
   }
 }
Exemplo n.º 2
0
 /** Based on the sql. */
 public void queryAutoFetchHash(HashQueryPlanBuilder builder) {
   builder.add(RawExpression.class).add(sql);
 }