Interface ISiteDAO
-
- All Known Implementing Classes:
SiteDAO
public interface ISiteDAOISiteDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Siteload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableStringsearchDuplicateSite(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find if site is already existList<Site>selectByCluster(int nClusterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find all sites for a given clusterList<Integer>selectIdSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the site objects and returns them as a listList<Site>selectSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the site objects and returns them as a listfr.paris.lutece.util.ReferenceListselectSitesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the site objects and returns them as a referenceListvoidstore(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
site- instance of the Site object to insertplugin- the Plugin
-
store
void store(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
site- the reference of the Siteplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nKey- The identifier of the Site to deleteplugin- the Plugin
-
load
Site load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the siteplugin- the Plugin- Returns:
- The instance of the site
-
selectSitesList
List<Site> selectSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the site objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the site objects
-
selectIdSitesList
List<Integer> selectIdSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the site objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the site objects
-
selectSitesReferenceList
fr.paris.lutece.util.ReferenceList selectSitesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the site objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the site objects
-
selectByCluster
List<Site> selectByCluster(int nClusterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all sites for a given cluster- Parameters:
nClusterId- The cluster IDplugin- The plugin- Returns:
- the list which contains the data of all the site objects
-
searchDuplicateSite
String searchDuplicateSite(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find if site is already exist- Parameters:
siteName- The site NameartifactId- The artifactId of the sitescmurl- The site's scm urlplugin- The plugin- Returns:
- the cluster name which contains the existing site
-
-