CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryDAO.java |
74 |
fr/paris/lutece/plugins/forms/modules/template/business/TemplateEntryDAO.java |
144 |
daoUtil.setInt( nIndex++, entry.getEntryType( ).getIdType( ) );
daoUtil.setString( nIndex++, entry.getCode( ) );
daoUtil.setString( nIndex++, trimEntryTitle( entry ) );
daoUtil.setString( nIndex++, entry.getHelpMessage( ) );
daoUtil.setString( nIndex++, entry.getComment( ) );
daoUtil.setBoolean( nIndex++, entry.isMandatory( ) );
daoUtil.setBoolean( nIndex++, entry.isFieldInLine( ) );
daoUtil.setInt( nIndex++, CONSTANT_ZERO );
daoUtil.setBoolean( nIndex++, entry.isUnique( ) );
daoUtil.setString( nIndex++, ( entry.getCSSClass( ) == null ) ? StringUtils.EMPTY : entry.getCSSClass( ) );
daoUtil.setInt( nIndex++, CONSTANT_ZERO );
daoUtil.setString( nIndex++, entry.getErrorMessage( ) );
daoUtil.setBoolean( nIndex++, entry.isOnlyDisplayInBack( ) );
daoUtil.setBoolean( nIndex++, entry.isIndexed( ) );
daoUtil.executeUpdate( ); |
File |
Line |
fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldDAO.java |
101 |
fr/paris/lutece/plugins/forms/modules/template/business/TemplateFieldDAO.java |
163 |
daoUtil.setInt( nIndex++, field.getParentEntry( ).getIdEntry( ) );
daoUtil.setString( nIndex++, field.getCode( ) );
daoUtil.setString( nIndex++, field.getTitle( ) );
daoUtil.setString( nIndex++, field.getValue( ) );
daoUtil.setBoolean( nIndex++, field.isDefaultValue( ) );
daoUtil.setInt( nIndex++, field.getPosition( ) );
daoUtil.setDate( nIndex++, ( field.getValueTypeDate( ) == null ) ? null : new Date( field.getValueTypeDate( ).getTime( ) ) );
daoUtil.setBoolean( nIndex++, field.isNoDisplayTitle( ) );
daoUtil.setString( nIndex++, field.getComment( ) );
daoUtil.executeUpdate( ); |