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 public static com.liferay.portal.model.Account update(
49 com.liferay.portal.model.Account account)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(account);
52 }
53
54 public static com.liferay.portal.model.Account update(
55 com.liferay.portal.model.Account account, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(account, merge);
58 }
59
60 public static com.liferay.portal.model.Account updateImpl(
61 com.liferay.portal.model.Account account, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(account, merge);
64 }
65
66 public static com.liferay.portal.model.Account findByPrimaryKey(
67 long accountId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portal.NoSuchAccountException {
70 return getPersistence().findByPrimaryKey(accountId);
71 }
72
73 public static com.liferay.portal.model.Account fetchByPrimaryKey(
74 long accountId) throws com.liferay.portal.SystemException {
75 return getPersistence().fetchByPrimaryKey(accountId);
76 }
77
78 public static java.util.List findWithDynamicQuery(
79 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().findWithDynamicQuery(queryInitializer);
82 }
83
84 public static java.util.List findWithDynamicQuery(
85 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
86 int begin, int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
88 end);
89 }
90
91 public static java.util.List findAll()
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findAll();
94 }
95
96 public static java.util.List findAll(int begin, int end)
97 throws com.liferay.portal.SystemException {
98 return getPersistence().findAll(begin, end);
99 }
100
101 public static java.util.List findAll(int begin, int end,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findAll(begin, end, obc);
105 }
106
107 public static void removeAll() throws com.liferay.portal.SystemException {
108 getPersistence().removeAll();
109 }
110
111 public static int countAll() throws com.liferay.portal.SystemException {
112 return getPersistence().countAll();
113 }
114
115 public static AccountPersistence getPersistence() {
116 return _getUtil()._persistence;
117 }
118
119 public void setPersistence(AccountPersistence persistence) {
120 _persistence = persistence;
121 }
122
123 private static AccountUtil _getUtil() {
124 if (_util == null) {
125 _util = (AccountUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
126 }
127
128 return _util;
129 }
130
131 private static final String _UTIL = AccountUtil.class.getName();
132 private static AccountUtil _util;
133 private AccountPersistence _persistence;
134 }