protected List<InterceptorProperty> properties = null;
private JdbcInterceptor next = null;
+ private boolean useEquals = false;
public JdbcInterceptor() {
}
this.next = next;
}
+ public boolean compare(String methodName, Method method) {
+ if (useEquals()) {
+ return methodName.equals(method.getName());
+ } else {
+ return methodName==method.getName();
+ }
+ }
+
/**
* Gets called each time the connection is borrowed from the pool
* @param parent - the connection pool owning the connection
this.properties = properties;
}
+ public boolean getUseEquals() {
+ return useEquals();
+ }
+
+ public boolean useEquals() {
+ return getUseEquals();
+ }
+
+ public void setUseEquals(boolean useEquals) {
+ this.useEquals = useEquals;
+ }
}