1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class AccountUtil {
32 public static com.liferay.portal.model.Account create(long accountId) {
33 return getPersistence().create(accountId);
34 }
35
36 public static com.liferay.portal.model.Account remove(long accountId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portal.NoSuchAccountException {
39 return getPersistence().remove(accountId);
40 }
41
42 public static com.liferay.portal.model.Account remove(
43 com.liferay.portal.model.Account account)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(account);
46 }
47
48
51 public static com.liferay.portal.model.Account update(
52 com.liferay.portal.model.Account account)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(account);
55 }
56
57
70 public static com.liferay.portal.model.Account update(
71 com.liferay.portal.model.Account account, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(account, merge);
74 }
75
76 public static com.liferay.portal.model.Account updateImpl(
77 com.liferay.portal.model.Account account, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(account, merge);
80 }
81
82 public static com.liferay.portal.model.Account findByPrimaryKey(
83 long accountId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.NoSuchAccountException {
86 return getPersistence().findByPrimaryKey(accountId);
87 }
88
89 public static com.liferay.portal.model.Account fetchByPrimaryKey(
90 long accountId) throws com.liferay.portal.SystemException {
91 return getPersistence().fetchByPrimaryKey(accountId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Account> findWithDynamicQuery(
95 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
96 throws com.liferay.portal.SystemException {
97 return getPersistence().findWithDynamicQuery(queryInitializer);
98 }
99
100 public static java.util.List<com.liferay.portal.model.Account> findWithDynamicQuery(
101 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
102 int begin, int end) throws com.liferay.portal.SystemException {
103 return getPersistence()
104 .findWithDynamicQuery(queryInitializer, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portal.model.Account> findAll()
108 throws com.liferay.portal.SystemException {
109 return getPersistence().findAll();
110 }
111
112 public static java.util.List<com.liferay.portal.model.Account> findAll(
113 int begin, int end) throws com.liferay.portal.SystemException {
114 return getPersistence().findAll(begin, end);
115 }
116
117 public static java.util.List<com.liferay.portal.model.Account> findAll(
118 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findAll(begin, end, obc);
121 }
122
123 public static void removeAll() throws com.liferay.portal.SystemException {
124 getPersistence().removeAll();
125 }
126
127 public static int countAll() throws com.liferay.portal.SystemException {
128 return getPersistence().countAll();
129 }
130
131 public static AccountPersistence getPersistence() {
132 return _getUtil()._persistence;
133 }
134
135 public void setPersistence(AccountPersistence persistence) {
136 _persistence = persistence;
137 }
138
139 private static AccountUtil _getUtil() {
140 if (_util == null) {
141 _util = (AccountUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
142 }
143
144 return _util;
145 }
146
147 private static final String _UTIL = AccountUtil.class.getName();
148 private static AccountUtil _util;
149 private AccountPersistence _persistence;
150 }