1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class AccountUtil {
29 public static void cacheResult(com.liferay.portal.model.Account account) {
30 getPersistence().cacheResult(account);
31 }
32
33 public static void cacheResult(
34 java.util.List<com.liferay.portal.model.Account> accounts) {
35 getPersistence().cacheResult(accounts);
36 }
37
38 public static void clearCache() {
39 getPersistence().clearCache();
40 }
41
42 public static com.liferay.portal.model.Account create(long accountId) {
43 return getPersistence().create(accountId);
44 }
45
46 public static com.liferay.portal.model.Account remove(long accountId)
47 throws com.liferay.portal.NoSuchAccountException,
48 com.liferay.portal.SystemException {
49 return getPersistence().remove(accountId);
50 }
51
52 public static com.liferay.portal.model.Account remove(
53 com.liferay.portal.model.Account account)
54 throws com.liferay.portal.SystemException {
55 return getPersistence().remove(account);
56 }
57
58
61 public static com.liferay.portal.model.Account update(
62 com.liferay.portal.model.Account account)
63 throws com.liferay.portal.SystemException {
64 return getPersistence().update(account);
65 }
66
67
80 public static com.liferay.portal.model.Account update(
81 com.liferay.portal.model.Account account, boolean merge)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().update(account, merge);
84 }
85
86 public static com.liferay.portal.model.Account updateImpl(
87 com.liferay.portal.model.Account account, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().updateImpl(account, merge);
90 }
91
92 public static com.liferay.portal.model.Account findByPrimaryKey(
93 long accountId)
94 throws com.liferay.portal.NoSuchAccountException,
95 com.liferay.portal.SystemException {
96 return getPersistence().findByPrimaryKey(accountId);
97 }
98
99 public static com.liferay.portal.model.Account fetchByPrimaryKey(
100 long accountId) throws com.liferay.portal.SystemException {
101 return getPersistence().fetchByPrimaryKey(accountId);
102 }
103
104 public static java.util.List<Object> findWithDynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().findWithDynamicQuery(dynamicQuery);
108 }
109
110 public static java.util.List<Object> findWithDynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.SystemException {
113 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
114 }
115
116 public static java.util.List<com.liferay.portal.model.Account> findAll()
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findAll();
119 }
120
121 public static java.util.List<com.liferay.portal.model.Account> findAll(
122 int start, int end) throws com.liferay.portal.SystemException {
123 return getPersistence().findAll(start, end);
124 }
125
126 public static java.util.List<com.liferay.portal.model.Account> findAll(
127 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException {
129 return getPersistence().findAll(start, end, obc);
130 }
131
132 public static void removeAll() throws com.liferay.portal.SystemException {
133 getPersistence().removeAll();
134 }
135
136 public static int countAll() throws com.liferay.portal.SystemException {
137 return getPersistence().countAll();
138 }
139
140 public static AccountPersistence getPersistence() {
141 return _persistence;
142 }
143
144 public void setPersistence(AccountPersistence persistence) {
145 _persistence = persistence;
146 }
147
148 private static AccountPersistence _persistence;
149 }