/** * Return the specified connection information. */ protected String getConnectionString(Accessor connection) { // Bug 3630182 - if possible, print the actual connection's hashcode instead of just the accessor if (connection.getDatasourceConnection() == null){ return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection)) + ")"; } else { return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection.getDatasourceConnection())) + ")"; } }
/** * Return the specified connection information. */ protected String getConnectionString(Accessor connection) { // Bug 3630182 - if possible, print the actual connection's hashcode instead of just the accessor if (connection.getDatasourceConnection() == null){ return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection)) + ")"; } else { return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection.getDatasourceConnection())) + ")"; } }
/** * Return the specified connection information. */ protected String getConnectionString(Accessor connection) { // Bug 3630182 - if possible, print the actual connection's hashcode instead of just the accessor if (connection.getDatasourceConnection() == null){ return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection)) + ")"; } else { return CONNECTION_STRING + "(" + String.valueOf(System.identityHashCode(connection.getDatasourceConnection())) + ")"; } }
return (T) accessor.getDatasourceConnection();