Class SiteDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.business.SiteDAO
-
-
Constructor Summary
Constructors Constructor Description SiteDAO()
-
Method Summary
All Methods Instance Methods Concrete 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 tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyStringsearchDuplicateSite(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
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Site load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectSitesList
public 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- Specified by:
selectSitesListin interfaceISiteDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the site objects
-
selectIdSitesList
public 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- Specified by:
selectIdSitesListin interfaceISiteDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the site objects
-
selectSitesReferenceList
public 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- Specified by:
selectSitesReferenceListin interfaceISiteDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the site objects
-
selectByCluster
public List<Site> selectByCluster(int nClusterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all sites for a given cluster- Specified by:
selectByClusterin interfaceISiteDAO- Parameters:
nClusterId- The cluster IDplugin- The plugin- Returns:
- the list which contains the data of all the site objects
-
searchDuplicateSite
public String searchDuplicateSite(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find if site is already exist- Specified by:
searchDuplicateSitein interfaceISiteDAO- Parameters:
siteName- The site NameartifactId- The artifactId of the siteplugin- The plugin- Returns:
- the cluster name which contains the existing site
-
-