1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class ContactUtil {
32 public static void cacheResult(com.liferay.portal.model.Contact contact) {
33 getPersistence().cacheResult(contact);
34 }
35
36 public static void cacheResult(
37 java.util.List<com.liferay.portal.model.Contact> contacts) {
38 getPersistence().cacheResult(contacts);
39 }
40
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45 public static com.liferay.portal.model.Contact create(long contactId) {
46 return getPersistence().create(contactId);
47 }
48
49 public static com.liferay.portal.model.Contact remove(long contactId)
50 throws com.liferay.portal.NoSuchContactException,
51 com.liferay.portal.SystemException {
52 return getPersistence().remove(contactId);
53 }
54
55 public static com.liferay.portal.model.Contact remove(
56 com.liferay.portal.model.Contact contact)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(contact);
59 }
60
61
64 public static com.liferay.portal.model.Contact update(
65 com.liferay.portal.model.Contact contact)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(contact);
68 }
69
70
83 public static com.liferay.portal.model.Contact update(
84 com.liferay.portal.model.Contact contact, boolean merge)
85 throws com.liferay.portal.SystemException {
86 return getPersistence().update(contact, merge);
87 }
88
89 public static com.liferay.portal.model.Contact updateImpl(
90 com.liferay.portal.model.Contact contact, boolean merge)
91 throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(contact, merge);
93 }
94
95 public static com.liferay.portal.model.Contact findByPrimaryKey(
96 long contactId)
97 throws com.liferay.portal.NoSuchContactException,
98 com.liferay.portal.SystemException {
99 return getPersistence().findByPrimaryKey(contactId);
100 }
101
102 public static com.liferay.portal.model.Contact fetchByPrimaryKey(
103 long contactId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(contactId);
105 }
106
107 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
108 long companyId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByCompanyId(companyId);
110 }
111
112 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
113 long companyId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByCompanyId(companyId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
119 long companyId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByCompanyId(companyId, start, end, obc);
123 }
124
125 public static com.liferay.portal.model.Contact findByCompanyId_First(
126 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchContactException,
128 com.liferay.portal.SystemException {
129 return getPersistence().findByCompanyId_First(companyId, obc);
130 }
131
132 public static com.liferay.portal.model.Contact findByCompanyId_Last(
133 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.NoSuchContactException,
135 com.liferay.portal.SystemException {
136 return getPersistence().findByCompanyId_Last(companyId, obc);
137 }
138
139 public static com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
140 long contactId, long companyId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchContactException,
143 com.liferay.portal.SystemException {
144 return getPersistence()
145 .findByCompanyId_PrevAndNext(contactId, companyId, obc);
146 }
147
148 public static java.util.List<Object> findWithDynamicQuery(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findWithDynamicQuery(dynamicQuery);
152 }
153
154 public static java.util.List<Object> findWithDynamicQuery(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
156 int end) throws com.liferay.portal.SystemException {
157 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
158 }
159
160 public static java.util.List<com.liferay.portal.model.Contact> findAll()
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findAll();
163 }
164
165 public static java.util.List<com.liferay.portal.model.Contact> findAll(
166 int start, int end) throws com.liferay.portal.SystemException {
167 return getPersistence().findAll(start, end);
168 }
169
170 public static java.util.List<com.liferay.portal.model.Contact> findAll(
171 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findAll(start, end, obc);
174 }
175
176 public static void removeByCompanyId(long companyId)
177 throws com.liferay.portal.SystemException {
178 getPersistence().removeByCompanyId(companyId);
179 }
180
181 public static void removeAll() throws com.liferay.portal.SystemException {
182 getPersistence().removeAll();
183 }
184
185 public static int countByCompanyId(long companyId)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().countByCompanyId(companyId);
188 }
189
190 public static int countAll() throws com.liferay.portal.SystemException {
191 return getPersistence().countAll();
192 }
193
194 public static ContactPersistence getPersistence() {
195 return _persistence;
196 }
197
198 public void setPersistence(ContactPersistence persistence) {
199 _persistence = persistence;
200 }
201
202 private static ContactPersistence _persistence;
203 }