1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class ContactUtil {
29 public static com.liferay.portal.model.Contact create(long contactId) {
30 return getPersistence().create(contactId);
31 }
32
33 public static com.liferay.portal.model.Contact remove(long contactId)
34 throws com.liferay.portal.NoSuchContactException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(contactId);
37 }
38
39 public static com.liferay.portal.model.Contact remove(
40 com.liferay.portal.model.Contact contact)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(contact);
43 }
44
45
48 public static com.liferay.portal.model.Contact update(
49 com.liferay.portal.model.Contact contact)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(contact);
52 }
53
54
67 public static com.liferay.portal.model.Contact update(
68 com.liferay.portal.model.Contact contact, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(contact, merge);
71 }
72
73 public static com.liferay.portal.model.Contact updateImpl(
74 com.liferay.portal.model.Contact contact, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(contact, merge);
77 }
78
79 public static com.liferay.portal.model.Contact findByPrimaryKey(
80 long contactId)
81 throws com.liferay.portal.NoSuchContactException,
82 com.liferay.portal.SystemException {
83 return getPersistence().findByPrimaryKey(contactId);
84 }
85
86 public static com.liferay.portal.model.Contact fetchByPrimaryKey(
87 long contactId) throws com.liferay.portal.SystemException {
88 return getPersistence().fetchByPrimaryKey(contactId);
89 }
90
91 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
92 long companyId) throws com.liferay.portal.SystemException {
93 return getPersistence().findByCompanyId(companyId);
94 }
95
96 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
97 long companyId, int start, int end)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findByCompanyId(companyId, start, end);
100 }
101
102 public static java.util.List<com.liferay.portal.model.Contact> findByCompanyId(
103 long companyId, int start, int end,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().findByCompanyId(companyId, start, end, obc);
107 }
108
109 public static com.liferay.portal.model.Contact findByCompanyId_First(
110 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.NoSuchContactException,
112 com.liferay.portal.SystemException {
113 return getPersistence().findByCompanyId_First(companyId, obc);
114 }
115
116 public static com.liferay.portal.model.Contact findByCompanyId_Last(
117 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.NoSuchContactException,
119 com.liferay.portal.SystemException {
120 return getPersistence().findByCompanyId_Last(companyId, obc);
121 }
122
123 public static com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
124 long contactId, long companyId,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.NoSuchContactException,
127 com.liferay.portal.SystemException {
128 return getPersistence()
129 .findByCompanyId_PrevAndNext(contactId, companyId, obc);
130 }
131
132 public static java.util.List<Object> findWithDynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findWithDynamicQuery(dynamicQuery);
136 }
137
138 public static java.util.List<Object> findWithDynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end) throws com.liferay.portal.SystemException {
141 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
142 }
143
144 public static java.util.List<com.liferay.portal.model.Contact> findAll()
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findAll();
147 }
148
149 public static java.util.List<com.liferay.portal.model.Contact> findAll(
150 int start, int end) throws com.liferay.portal.SystemException {
151 return getPersistence().findAll(start, end);
152 }
153
154 public static java.util.List<com.liferay.portal.model.Contact> findAll(
155 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(start, end, obc);
158 }
159
160 public static void removeByCompanyId(long companyId)
161 throws com.liferay.portal.SystemException {
162 getPersistence().removeByCompanyId(companyId);
163 }
164
165 public static void removeAll() throws com.liferay.portal.SystemException {
166 getPersistence().removeAll();
167 }
168
169 public static int countByCompanyId(long companyId)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().countByCompanyId(companyId);
172 }
173
174 public static int countAll() throws com.liferay.portal.SystemException {
175 return getPersistence().countAll();
176 }
177
178 public static ContactPersistence getPersistence() {
179 return _persistence;
180 }
181
182 public void setPersistence(ContactPersistence persistence) {
183 _persistence = persistence;
184 }
185
186 private static ContactPersistence _persistence;
187 }