associatedConnection == null && method.getDeclaringClass().equals(PreparedStatement.class);
(associatedConnection == null && method.getDeclaringClass().equals(PreparedStatement.class)) || invalid;
    protected void checkCorrectness(Method method) throws SQLException {        String message =  "Statemenet has illegal state because it "+            "does not have any associated connection at this time. " +             "Usually this means that Statement.getConnection() " +             "method was called on a closed statement that currently " +             "lives in a statement pool.";                boolean incorrectState =             associatedConnection == null &&            method.getDeclaringClass().equals(PreparedStatement.class);                    if (incorrectState)            if (TOLERANT_CHECK_MODE)                throw new SQLException(message);            else                throw new IllegalStateException(message);    }