Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added more logging to better show call traces.

  • Loading branch information...
commit 691a4e4c53377132d7d14767c637fc5c7e8da968 1 parent b184688
@randysecrist authored
View
15 persistence/persistence-riak/src/main/java/com/sfn/drools/RiakEntityManager.java
@@ -27,7 +27,10 @@
public Query createNativeQuery(String x, String y) { logger.info("called"); return new RiakQuery(); }
public Query createNativeQuery(String x, Class klass) { logger.info("called"); return new RiakQuery(); }
- public Query createNamedQuery(String x) { logger.info("called"); return new RiakQuery(); }
+ public Query createNamedQuery(String x) {
+ logger.info("called - " + x);
+ return new RiakQuery();
+ }
public Query createQuery(String x) { logger.info("called"); return new RiakQuery(); }
public boolean contains(Object o) { logger.info("called"); return false; }
@@ -40,8 +43,14 @@
public void flush() { logger.info("called"); }
public <T> T getReference(Class<T> klass, Object o) { logger.info("called"); return null; }
- public <T> T find(Class<T> klass) { logger.info("called"); return null; }
- public <T> T find(Class<T> klass, Object o) { logger.info("called"); return null; }
+ public <T> T find(Class<T> klass) { return this.find(klass, null); }
+ public <T> T find(Class<T> klass, Object o) {
+ if (klass != null && o != null)
+ logger.info("called - " + klass.getName() + "::" + o.toString());
+ else if (klass != null)
+ logger.info("called - " + klass.getName());
+ return null;
+ }
public <T> T merge(T t) { logger.info("called"); return null; }
public void remove(Object o) { logger.info("called"); }
View
5 persistence/persistence-riak/src/main/java/com/sfn/drools/RiakQuery.java
@@ -21,7 +21,10 @@
public Query setFirstResult(int i) { logger.info("called"); return null; }
public Query setHint(String i, Object o) { logger.info("called"); return null; }
public Query setMaxResults(int i) { logger.info("called"); return null; }
- public Query setParameter(String s, Object o) { logger.info("called"); return null; }
+ public Query setParameter(String s, Object o) {
+ logger.info("called - " + s + "::" + o.toString());
+ return null;
+ }
public Query setParameter(int i, Object v) { logger.info("called"); return null; }
public Query setParameter(String s, Date d, TemporalType t) { logger.info("called"); return null; }
public Query setParameter(String s, Calendar c, TemporalType t) { logger.info("called"); return null; }
Please sign in to comment.
Something went wrong with that request. Please try again.