001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AccountLocalServiceUtil {
033 public static com.liferay.portal.model.Account addAccount(
034 com.liferay.portal.model.Account account)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAccount(account);
037 }
038
039 public static com.liferay.portal.model.Account createAccount(long accountId) {
040 return getService().createAccount(accountId);
041 }
042
043 public static void deleteAccount(long accountId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 getService().deleteAccount(accountId);
047 }
048
049 public static void deleteAccount(com.liferay.portal.model.Account account)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 getService().deleteAccount(account);
052 }
053
054 @SuppressWarnings("unchecked")
055 public static java.util.List dynamicQuery(
056 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().dynamicQuery(dynamicQuery);
059 }
060
061 @SuppressWarnings("unchecked")
062 public static java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().dynamicQuery(dynamicQuery, start, end);
066 }
067
068 @SuppressWarnings("unchecked")
069 public static java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076 }
077
078 public static long dynamicQueryCount(
079 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getService().dynamicQueryCount(dynamicQuery);
082 }
083
084 public static com.liferay.portal.model.Account getAccount(long accountId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getAccount(accountId);
088 }
089
090 public static java.util.List<com.liferay.portal.model.Account> getAccounts(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getAccounts(start, end);
094 }
095
096 public static int getAccountsCount()
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getAccountsCount();
099 }
100
101 public static com.liferay.portal.model.Account updateAccount(
102 com.liferay.portal.model.Account account)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().updateAccount(account);
105 }
106
107 public static com.liferay.portal.model.Account updateAccount(
108 com.liferay.portal.model.Account account, boolean merge)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().updateAccount(account, merge);
111 }
112
113 public static com.liferay.portal.model.Account getAccount(long companyId,
114 long accountId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 return getService().getAccount(companyId, accountId);
118 }
119
120 public static AccountLocalService getService() {
121 if (_service == null) {
122 _service = (AccountLocalService)PortalBeanLocatorUtil.locate(AccountLocalService.class.getName());
123 }
124
125 return _service;
126 }
127
128 public void setService(AccountLocalService service) {
129 _service = service;
130 }
131
132 private static AccountLocalService _service;
133 }