1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class AccountUtil {
29 public static com.liferay.portal.model.Account create(long accountId) {
30 return getPersistence().create(accountId);
31 }
32
33 public static com.liferay.portal.model.Account remove(long accountId)
34 throws com.liferay.portal.NoSuchAccountException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(accountId);
37 }
38
39 public static com.liferay.portal.model.Account remove(
40 com.liferay.portal.model.Account account)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(account);
43 }
44
45
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
67 public static com.liferay.portal.model.Account update(
68 com.liferay.portal.model.Account account, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(account, merge);
71 }
72
73 public static com.liferay.portal.model.Account updateImpl(
74 com.liferay.portal.model.Account account, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(account, merge);
77 }
78
79 public static com.liferay.portal.model.Account findByPrimaryKey(
80 long accountId)
81 throws com.liferay.portal.NoSuchAccountException,
82 com.liferay.portal.SystemException {
83 return getPersistence().findByPrimaryKey(accountId);
84 }
85
86 public static com.liferay.portal.model.Account fetchByPrimaryKey(
87 long accountId) throws com.liferay.portal.SystemException {
88 return getPersistence().fetchByPrimaryKey(accountId);
89 }
90
91 public static java.util.List<Object> findWithDynamicQuery(
92 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
93 throws com.liferay.portal.SystemException {
94 return getPersistence().findWithDynamicQuery(dynamicQuery);
95 }
96
97 public static java.util.List<Object> findWithDynamicQuery(
98 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
99 int end) throws com.liferay.portal.SystemException {
100 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
101 }
102
103 public static java.util.List<com.liferay.portal.model.Account> findAll()
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findAll();
106 }
107
108 public static java.util.List<com.liferay.portal.model.Account> findAll(
109 int start, int end) throws com.liferay.portal.SystemException {
110 return getPersistence().findAll(start, end);
111 }
112
113 public static java.util.List<com.liferay.portal.model.Account> findAll(
114 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException {
116 return getPersistence().findAll(start, end, obc);
117 }
118
119 public static void removeAll() throws com.liferay.portal.SystemException {
120 getPersistence().removeAll();
121 }
122
123 public static int countAll() throws com.liferay.portal.SystemException {
124 return getPersistence().countAll();
125 }
126
127 public static AccountPersistence getPersistence() {
128 return _persistence;
129 }
130
131 public void setPersistence(AccountPersistence persistence) {
132 _persistence = persistence;
133 }
134
135 private static AccountPersistence _persistence;
136 }