Commit ea15d2ab authored by Florian Fittkau's avatar Florian Fittkau

eclipse import bug fix

parent 6f45c14a
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="kieker/monitoring/writer/mq/|kieker/monitoring/writer/" kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/hsqldb-2.3.1.jar"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>monitored-application</name>
<name>monitoring</name>
<comment></comment>
<projects>
</projects>
......
......@@ -32,9 +32,9 @@ public class JDBCAspect {
/* Related JDBC calls */
/* http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html */
private static final String RELATED_CALLS =
/** Connection **/
/* createStatment */
"(call(java.sql.Statement java.sql.Connection.createStatement()) "
/** Connection **/
/* createStatment */
"(call(java.sql.Statement java.sql.Connection.createStatement()) "
/* prepareStatement */
+ "|| call(java.sql.PreparedStatement java.sql.Connection.prepareStatement(String)) "
+ "|| call(java.sql.PreparedStatement java.sql.Connection.prepareStatement(String, String[])) "
......@@ -246,8 +246,9 @@ public class JDBCAspect {
final Object returnValue, final ByteBuffer buffer) {
final String className = getJoinPointClassName(currentJoinPoint);
final Object[] classArgs = getJoinPointArguments(currentJoinPoint);
final String stringClassArgs = convertJoinpointArgsToString(classArgs);
// final Object[] classArgs = getJoinPointArguments(currentJoinPoint);
// final String stringClassArgs =
// convertJoinpointArgsToString(classArgs);
String formattedReturnValue = extractJoinPointReturnValue(className, returnValue);
......@@ -258,7 +259,7 @@ public class JDBCAspect {
buffer.putInt(MonitoringStringRegistry.getIdForString(formattedReturnValue));
}
public String getJoinPointClassName(final ProceedingJoinPoint currentJoinPoint) {
private String getJoinPointClassName(final ProceedingJoinPoint currentJoinPoint) {
String className = null;
try {
className = currentJoinPoint.getSignature().toString();
......@@ -270,7 +271,7 @@ public class JDBCAspect {
return className;
}
public String getJoinPointReturnType(final String className) {
private String getJoinPointReturnType(final String className) {
String returnType = null;
final String[] splittedClassName = className.split(" ");
......@@ -279,7 +280,7 @@ public class JDBCAspect {
return returnType;
}
public Object[] getJoinPointArguments(final ProceedingJoinPoint currentJoinPoint) {
private Object[] getJoinPointArguments(final ProceedingJoinPoint currentJoinPoint) {
Object[] joinArgs = null;
if (currentJoinPoint.getArgs() != null) {
......@@ -292,7 +293,7 @@ public class JDBCAspect {
return joinArgs;
}
public String convertJoinpointArgsToString(final Object[] joinPointArgs) {
private String convertJoinpointArgsToString(final Object[] joinPointArgs) {
String returnValue = new String();
if (joinPointArgs != null) {
......@@ -337,7 +338,7 @@ public class JDBCAspect {
formattedReturnValue = String.valueOf(numberOfRows);
break;
// TODO - relevant return types?
// TODO - relevant return types?
case "STATEMENT":
break;
case "PREPAREDSTATEMENT":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment