CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

FileLine
net/sf/oqt/maven/AbstractQueryTranslatorTranslateMojo.java163
net/sf/oqt/maven/QueryTranslatorReportingMojo.java88
    }

    void printOutputToDebug(final ResultVO result) {
        if (getLog().isDebugEnabled()) {
            final Collection<PackageVO> packages = result.getPackages();
            for (final PackageVO packageVO : packages) {
                getLog().debug("Package: " + packageVO.getName());
                final Collection<EntityVO> entities = packageVO.getEntities();
                for (final EntityVO entityVO : entities) {
                    getLog().debug(">Entity: " + entityVO.getName());
                    final Collection<QueryVO> queries = entityVO.getQueries();
                    for (final QueryVO queryVO : queries) {
                        getLog().debug(">>NamedQuery: " + queryVO.getName());
                        getLog().debug(">>> Number of SQL queries: " + queryVO.getSQLQuery().size());
                    }
                }
            }
        }
    }
FileLine
net/sf/oqt/driver/NullCallableStatement.java462
net/sf/oqt/driver/NullPreparedStatement.java187
    public boolean getMoreResults(final int arg0) throws SQLException {

        return false;
    }

    @Override
    public int getQueryTimeout() throws SQLException {

        return 0;
    }

    @Override
    public ResultSet getResultSet() throws SQLException {

        return null;
    }

    @Override
    public int getResultSetConcurrency() throws SQLException {

        return 0;
    }

    @Override
    public int getResultSetHoldability() throws SQLException {

        return 0;
    }

    @Override
    public int getResultSetType() throws SQLException {

        return 0;
    }

    @Override
    public int getUpdateCount() throws SQLException {

        return 0;
    }

    @Override
    public SQLWarning getWarnings() throws SQLException {

        return null;
    }

    @Override
    public boolean isCloseOnCompletion() throws SQLException {

        return false;
    }

    @Override
    public boolean isClosed() throws SQLException {

        return false;
    }

    @Override
    public boolean isPoolable() throws SQLException {

        return false;
    }

    @Override
    public void setCursorName(final String arg0) throws SQLException {
FileLine
net/sf/oqt/core/CoreProperties.java75
net/sf/oqt/maven/AbstractQueryTranslatorTranslateMojo.java114
    public final String getUrl() {
        return url;
    }

    public final void setUrl(final String url) {
        this.url = url;
    }

    public final String getUsername() {
        return username;
    }

    public final void setUsername(final String username) {
        this.username = username;
    }

    public final String getPassword() {
        return password;
    }

    public final void setPassword(final String password) {
        this.password = password;
    }

    public final String getDriverName() {
        return driverName;
    }

    public final void setDriverName(final String driverName) {
        this.driverName = driverName;
    }

    public final String getDictionary() {
        return dictionary;
    }

    public final void setDictionary(final String dictionary) {
        this.dictionary = dictionary;
    }

    public final Collection<String> getFqns() {
FileLine
net/sf/oqt/jpa/JPATransformer.java58
net/sf/oqt/jpa/JPATransformer.java74
    public static final void transformAllQueries(final Collection<PackageVO> packages) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException {
        final Iterator<PackageVO> packIt = packages.iterator();
        while (packIt.hasNext()) {
            final PackageVO pack = packIt.next();
            final Iterator<EntityVO> entIt = pack.getEntities().iterator();
            while (entIt.hasNext()) {
                final EntityVO ent = entIt.next();
                final Iterator<QueryVO> qIt = ent.getQueries().iterator();
                while (qIt.hasNext()) {
                    final QueryVO q = qIt.next();
FileLine
net/sf/oqt/driver/NullCallableStatement.java414
net/sf/oqt/driver/NullPreparedStatement.java139
    public int executeUpdate(final String arg0, final String[] arg1) throws SQLException {

        return 0;
    }

    @Override
    public Connection getConnection() throws SQLException {

        return null;
    }

    @Override
    public int getFetchDirection() throws SQLException {

        return 0;
    }

    @Override
    public int getFetchSize() throws SQLException {

        return 0;
    }

    @Override
    public ResultSet getGeneratedKeys() throws SQLException {

        return null;
    }

    @Override
    public int getMaxFieldSize() throws SQLException {

        return 0;
    }

    @Override
    public int getMaxRows() throws SQLException {

        return 0;
    }

    @Override
    public boolean getMoreResults() throws SQLException {

        return false;
    }

    @Override
    public boolean getMoreResults(final int arg0) throws SQLException {