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