|
Liferay 6.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.WebsiteLocalServiceWrapper
public class WebsiteLocalServiceWrapper
This class is a wrapper for WebsiteLocalService.
WebsiteLocalService| Constructor Summary | |
|---|---|
WebsiteLocalServiceWrapper(WebsiteLocalService websiteLocalService)
|
|
| Method Summary | |
|---|---|
Website |
addWebsite(long userId,
String className,
long classPK,
String url,
int typeId,
boolean primary)
|
Website |
addWebsite(Website website)
Adds the website to the database. |
Website |
createWebsite(long websiteId)
Creates a new website with the primary key. |
void |
deleteWebsite(long websiteId)
Deletes the website with the primary key from the database. |
void |
deleteWebsite(Website website)
Deletes the website from the database. |
void |
deleteWebsites(long companyId,
String className,
long classPK)
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
Website |
getWebsite(long websiteId)
Gets the website with the primary key. |
List<Website> |
getWebsites()
|
List<Website> |
getWebsites(int start,
int end)
Gets a range of all the websites. |
List<Website> |
getWebsites(long companyId,
String className,
long classPK)
|
int |
getWebsitesCount()
Gets the number of websites. |
WebsiteLocalService |
getWrappedWebsiteLocalService()
|
Website |
updateWebsite(long websiteId,
String url,
int typeId,
boolean primary)
|
Website |
updateWebsite(Website website)
Updates the website in the database. |
Website |
updateWebsite(Website website,
boolean merge)
Updates the website in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebsiteLocalServiceWrapper(WebsiteLocalService websiteLocalService)
| Method Detail |
|---|
public Website addWebsite(Website website)
throws SystemException
addWebsite in interface WebsiteLocalServicewebsite - the website to add
SystemException - if a system exception occurredpublic Website createWebsite(long websiteId)
createWebsite in interface WebsiteLocalServicewebsiteId - the primary key for the new website
public void deleteWebsite(long websiteId)
throws PortalException,
SystemException
deleteWebsite in interface WebsiteLocalServicewebsiteId - the primary key of the website to delete
PortalException - if a website with the primary key could not be found
SystemException - if a system exception occurred
public void deleteWebsite(Website website)
throws SystemException
deleteWebsite in interface WebsiteLocalServicewebsite - the website to delete
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery in interface WebsiteLocalServicedynamicQuery - the dynamic query to search with
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery in interface WebsiteLocalServicedynamicQuery - the dynamic query to search withstart - the lower bound of the range of model instances to returnend - the upper bound of the range of model instances to return (not inclusive)
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery in interface WebsiteLocalServicedynamicQuery - the dynamic query to search withstart - the lower bound of the range of model instances to returnend - the upper bound of the range of model instances to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQueryCount in interface WebsiteLocalServicedynamicQuery - the dynamic query to search with
SystemException - if a system exception occurred
public Website getWebsite(long websiteId)
throws PortalException,
SystemException
getWebsite in interface WebsiteLocalServicewebsiteId - the primary key of the website to get
PortalException - if a website with the primary key could not be found
SystemException - if a system exception occurred
public List<Website> getWebsites(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
getWebsites in interface WebsiteLocalServicestart - the lower bound of the range of websites to returnend - the upper bound of the range of websites to return (not inclusive)
SystemException - if a system exception occurred
public int getWebsitesCount()
throws SystemException
getWebsitesCount in interface WebsiteLocalServiceSystemException - if a system exception occurred
public Website updateWebsite(Website website)
throws SystemException
updateWebsite in interface WebsiteLocalServicewebsite - the website to update
SystemException - if a system exception occurred
public Website updateWebsite(Website website,
boolean merge)
throws SystemException
updateWebsite in interface WebsiteLocalServicewebsite - the website to updatemerge - whether to merge the website with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
SystemException - if a system exception occurred
public Website addWebsite(long userId,
String className,
long classPK,
String url,
int typeId,
boolean primary)
throws PortalException,
SystemException
addWebsite in interface WebsiteLocalServicePortalException
SystemException
public void deleteWebsites(long companyId,
String className,
long classPK)
throws SystemException
deleteWebsites in interface WebsiteLocalServiceSystemException
public List<Website> getWebsites()
throws SystemException
getWebsites in interface WebsiteLocalServiceSystemException
public List<Website> getWebsites(long companyId,
String className,
long classPK)
throws SystemException
getWebsites in interface WebsiteLocalServiceSystemException
public Website updateWebsite(long websiteId,
String url,
int typeId,
boolean primary)
throws PortalException,
SystemException
updateWebsite in interface WebsiteLocalServicePortalException
SystemExceptionpublic WebsiteLocalService getWrappedWebsiteLocalService()
|
Liferay 6.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||