/**
* the constructors that are used to create statement proxies
*/
- protected static final Constructor[] constructors = new Constructor[AbstractCreateStatementInterceptor.statements.length];
+ protected static final Constructor<?>[] constructors =
+ new Constructor[AbstractCreateStatementInterceptor.statements.length];
public AbstractQueryReport() {
* @return - returns a constructor used to create new instances
* @throws NoSuchMethodException
*/
- protected Constructor getConstructor(int idx, Class clazz) throws NoSuchMethodException {
+ protected Constructor<?> getConstructor(int idx, Class<?> clazz) throws NoSuchMethodException {
if (constructors[idx]==null) {
- Class proxyClass = Proxy.getProxyClass(SlowQueryReport.class.getClassLoader(), new Class[] {clazz});
+ Class<?> proxyClass = Proxy.getProxyClass(SlowQueryReport.class.getClassLoader(), new Class[] {clazz});
constructors[idx] = proxyClass.getConstructor(new Class[] { InvocationHandler.class });
}
return constructors[idx];
Object result = null;
String name = method.getName();
String sql = null;
- Constructor constructor = null;
+ Constructor<?> constructor = null;
if (compare(statements[0],name)) {
//createStatement
constructor = getConstructor(0,Statement.class);
"The date and time of the last invocation"
};
- static final OpenType[] FIELD_TYPES = new OpenType[] {
+ static final OpenType<?>[] FIELD_TYPES = new OpenType[] {
SimpleType.STRING,
SimpleType.INTEGER,
SimpleType.LONG,
return FIELD_DESCRIPTIONS;
}
- public static OpenType[] getFieldTypes() {
+ public static OpenType<?>[] getFieldTypes() {
return FIELD_TYPES;
}
public Object createStatement(Object proxy, Method method, Object[] args, Object statement, long time) {
// TODO Auto-generated method stub
try {
- statements.add(new WeakReference((Statement)statement));
+ statements.add(new WeakReference<Statement>((Statement)statement));
}catch (ClassCastException x) {
//ignore this one
}