|
|
@ -84,23 +84,23 @@ public class HikariClassTransformer implements ClassFileTransformer
|
|
|
|
|
|
|
|
|
|
|
|
if (iface.equals("java.sql.Connection"))
|
|
|
|
if (iface.equals("java.sql.Connection"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
transformConnection(classFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (iface.equals("java.sql.PreparedStatement"))
|
|
|
|
else if (iface.equals("java.sql.PreparedStatement"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
transformPreparedStatement(classFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (iface.equals("java.sql.CallableStatement"))
|
|
|
|
else if (iface.equals("java.sql.CallableStatement"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
transformCallableStatement(classFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (iface.equals("java.sql.Statement"))
|
|
|
|
else if (iface.equals("java.sql.Statement"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
transformStatement(classFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (iface.equals("java.sql.ResultSet"))
|
|
|
|
else if (iface.equals("java.sql.ResultSet"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
transformResultSet(classFile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -113,6 +113,41 @@ public class HikariClassTransformer implements ClassFileTransformer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param classFile
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private void transformConnection(ClassFile classFile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param classFile
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private void transformPreparedStatement(ClassFile classFile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param classFile
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private void transformCallableStatement(ClassFile classFile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param classFile
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private void transformStatement(ClassFile classFile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param classFile
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private void transformResultSet(ClassFile classFile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|