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.SystemException,
38 com.liferay.portal.NoSuchContactException {
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 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 public static com.liferay.portal.model.Contact update(
55 com.liferay.portal.model.Contact contact, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(contact, merge);
58 }
59
60 public static com.liferay.portal.model.Contact updateImpl(
61 com.liferay.portal.model.Contact contact, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(contact, merge);
64 }
65
66 public static com.liferay.portal.model.Contact findByPrimaryKey(
67 long contactId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portal.NoSuchContactException {
70 return getPersistence().findByPrimaryKey(contactId);
71 }
72
73 public static com.liferay.portal.model.Contact fetchByPrimaryKey(
74 long contactId) throws com.liferay.portal.SystemException {
75 return getPersistence().fetchByPrimaryKey(contactId);
76 }
77
78 public static java.util.List findByCompanyId(long companyId)
79 throws com.liferay.portal.SystemException {
80 return getPersistence().findByCompanyId(companyId);
81 }
82
83 public static java.util.List findByCompanyId(long companyId, int begin,
84 int end) throws com.liferay.portal.SystemException {
85 return getPersistence().findByCompanyId(companyId, begin, end);
86 }
87
88 public static java.util.List findByCompanyId(long companyId, int begin,
89 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException {
91 return getPersistence().findByCompanyId(companyId, begin, end, obc);
92 }
93
94 public static com.liferay.portal.model.Contact findByCompanyId_First(
95 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portal.NoSuchContactException {
98 return getPersistence().findByCompanyId_First(companyId, obc);
99 }
100
101 public static com.liferay.portal.model.Contact findByCompanyId_Last(
102 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portal.NoSuchContactException {
105 return getPersistence().findByCompanyId_Last(companyId, obc);
106 }
107
108 public static com.liferay.portal.model.Contact[] findByCompanyId_PrevAndNext(
109 long contactId, long companyId,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portal.NoSuchContactException {
113 return getPersistence().findByCompanyId_PrevAndNext(contactId,
114 companyId, obc);
115 }
116
117 public static java.util.List findWithDynamicQuery(
118 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findWithDynamicQuery(queryInitializer);
121 }
122
123 public static java.util.List findWithDynamicQuery(
124 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
125 int begin, int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
127 end);
128 }
129
130 public static java.util.List findAll()
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findAll();
133 }
134
135 public static java.util.List findAll(int begin, int end)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findAll(begin, end);
138 }
139
140 public static java.util.List findAll(int begin, int end,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findAll(begin, end, obc);
144 }
145
146 public static void removeByCompanyId(long companyId)
147 throws com.liferay.portal.SystemException {
148 getPersistence().removeByCompanyId(companyId);
149 }
150
151 public static void removeAll() throws com.liferay.portal.SystemException {
152 getPersistence().removeAll();
153 }
154
155 public static int countByCompanyId(long companyId)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().countByCompanyId(companyId);
158 }
159
160 public static int countAll() throws com.liferay.portal.SystemException {
161 return getPersistence().countAll();
162 }
163
164 public static ContactPersistence getPersistence() {
165 return _getUtil()._persistence;
166 }
167
168 public void setPersistence(ContactPersistence persistence) {
169 _persistence = persistence;
170 }
171
172 private static ContactUtil _getUtil() {
173 if (_util == null) {
174 _util = (ContactUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
175 }
176
177 return _util;
178 }
179
180 private static final String _UTIL = ContactUtil.class.getName();
181 private static ContactUtil _util;
182 private ContactPersistence _persistence;
183 }