Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
158 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
195 |
daoUtil.setInt( 1, nDbPageId );
daoUtil.executeQuery( );
DbPageDatabaseSection dbPageDatabaseSection = null;
while ( daoUtil.next( ) )
{
dbPageDatabaseSection = new DbPageDatabaseSection( );
dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );
listDbPageDatabaseSections.add( dbPageDatabaseSection );
}
daoUtil.free( );
return listDbPageDatabaseSections;
}
/**
* This method is used to find the sections of a dbpage
* @param strRoleKey The role key
* @param plugin The plugin object
* @return Collection of DbPageDatabaseSection
*/
public Collection<DbPageDatabaseSection> loadSectionsByRoleKey( String strRoleKey, Plugin plugin ) |
Fichier |
Ligne |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
165 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
202 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
273 |
dbPageDatabaseSection = new DbPageDatabaseSection( );
dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) );
listDbPageDatabaseSections.add( dbPageDatabaseSection );
}
daoUtil.free( );
return listDbPageDatabaseSections;
}
/**
* This method is used to find the sections of a dbpage
* @param strRoleKey The role key
* @param plugin The plugin object
* @return Collection of DbPageDatabaseSection
*/
public Collection<DbPageDatabaseSection> loadSectionsByRoleKey( String strRoleKey, Plugin plugin ) |
Fichier |
Ligne |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
128 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
163 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
200 |
if ( daoUtil.next( ) )
{
dbPageDatabaseSection = new DbPageDatabaseSection( );
dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) ); |
Fichier |
Ligne |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
98 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
242 |
dbPageDatabaseSection.setId( newPrimaryKey( plugin ) );
daoUtil.setInt( 1, dbPageDatabaseSection.getId( ) );
daoUtil.setInt( 2, dbPageDatabaseSection.getIdPage( ) );
daoUtil.setString( 3, dbPageDatabaseSection.getIdType( ) );
daoUtil.setString( 4, dbPageDatabaseSection.getTemplatePath( ) );
daoUtil.setString( 5, dbPageDatabaseSection.getColumn( ) );
daoUtil.setString( 6, dbPageDatabaseSection.getSql( ) );
daoUtil.setString( 7, dbPageDatabaseSection.getPool( ) );
daoUtil.setString( 8, dbPageDatabaseSection.getTitle( ) );
daoUtil.setInt( 9, dbPageDatabaseSection.getOrder( ) );
daoUtil.setString( 10, dbPageDatabaseSection.getRole( ) );
daoUtil.executeUpdate( ); |
Fichier |
Ligne |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
130 |
fr/paris/lutece/plugins/dbpage/business/DbPageDatabaseSectionDAO.java |
273 |
dbPageDatabaseSection = new DbPageDatabaseSection( );
dbPageDatabaseSection.setId( daoUtil.getInt( 1 ) );
dbPageDatabaseSection.setIdPage( daoUtil.getInt( 2 ) );
dbPageDatabaseSection.setIdType( daoUtil.getString( 3 ) );
dbPageDatabaseSection.setTemplatePath( daoUtil.getString( 4 ) );
dbPageDatabaseSection.setColumn( daoUtil.getString( 5 ) );
dbPageDatabaseSection.setSql( daoUtil.getString( 6 ) );
dbPageDatabaseSection.setPool( daoUtil.getString( 7 ) );
dbPageDatabaseSection.setTitle( daoUtil.getString( 8 ) );
dbPageDatabaseSection.setOrder( daoUtil.getInt( 9 ) );
dbPageDatabaseSection.setRole( daoUtil.getString( 10 ) ); |