1
22
23 package com.liferay.portal.service;
24
25
26
53 public class AccountLocalServiceUtil {
54 public static com.liferay.portal.model.Account addAccount(
55 com.liferay.portal.model.Account account)
56 throws com.liferay.portal.SystemException {
57 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
58
59 return accountLocalService.addAccount(account);
60 }
61
62 public static void deleteAccount(long accountId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
66
67 accountLocalService.deleteAccount(accountId);
68 }
69
70 public static void deleteAccount(com.liferay.portal.model.Account account)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException {
73 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
74
75 accountLocalService.deleteAccount(account);
76 }
77
78 public static java.util.List<com.liferay.portal.model.Account> dynamicQuery(
79 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
80 throws com.liferay.portal.SystemException {
81 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
82
83 return accountLocalService.dynamicQuery(queryInitializer);
84 }
85
86 public static java.util.List<com.liferay.portal.model.Account> dynamicQuery(
87 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
88 int begin, int end) throws com.liferay.portal.SystemException {
89 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
90
91 return accountLocalService.dynamicQuery(queryInitializer, begin, end);
92 }
93
94 public static com.liferay.portal.model.Account updateAccount(
95 com.liferay.portal.model.Account account)
96 throws com.liferay.portal.SystemException {
97 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
98
99 return accountLocalService.updateAccount(account);
100 }
101
102 public static com.liferay.portal.model.Account getAccount(long accountId)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException {
105 AccountLocalService accountLocalService = AccountLocalServiceFactory.getService();
106
107 return accountLocalService.getAccount(accountId);
108 }
109 }