CPD Results
The following document contains the results of PMD's CPD 4.3.
Duplications
File | Line |
---|
net/sf/oqt/maven/AbstractQueryTranslatorTranslateMojo.java | 163 |
net/sf/oqt/maven/QueryTranslatorReportingMojo.java | 88 |
}
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());
}
}
}
}
} |
File | Line |
---|
net/sf/oqt/driver/NullCallableStatement.java | 462 |
net/sf/oqt/driver/NullPreparedStatement.java | 187 |
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 { |
File | Line |
---|
net/sf/oqt/core/CoreProperties.java | 75 |
net/sf/oqt/maven/AbstractQueryTranslatorTranslateMojo.java | 114 |
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() { |
File | Line |
---|
net/sf/oqt/jpa/JPATransformer.java | 58 |
net/sf/oqt/jpa/JPATransformer.java | 74 |
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(); |
File | Line |
---|
net/sf/oqt/driver/NullCallableStatement.java | 414 |
net/sf/oqt/driver/NullPreparedStatement.java | 139 |
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 { |