Better internal names
diff --git a/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java b/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java
index 2b8b9d1..e454795 100644
--- a/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java
+++ b/src/main/java/org/apache/commons/configuration2/DatabaseConfiguration.java
@@ -125,10 +125,10 @@
*/
private abstract class AbstractJdbcOperation<T> {
/** Stores the connection. */
- private Connection conn;
+ private Connection connection;
/** Stores the statement. */
- private PreparedStatement pstmt;
+ private PreparedStatement preparedStatement;
/** Stores the result set. */
private ResultSet resultSet;
@@ -179,8 +179,8 @@
statement = sql;
}
- pstmt = getConnection().prepareStatement(statement);
- return pstmt;
+ preparedStatement = getConnection().prepareStatement(statement);
+ return preparedStatement;
}
/**
@@ -195,16 +195,16 @@
if (getDataSource() != null) {
try {
- conn = getDataSource().getConnection();
+ connection = getDataSource().getConnection();
result = performOperation();
if (isAutoCommit()) {
- conn.commit();
+ connection.commit();
}
} catch (final SQLException e) {
fireError(errorEventType, operationEventType, errorPropertyName, errorPropertyValue, e);
} finally {
- close(conn, pstmt, resultSet);
+ close(connection, preparedStatement, resultSet);
}
}
@@ -218,7 +218,7 @@
* @return the current connection
*/
protected Connection getConnection() {
- return conn;
+ return connection;
}
/**