001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link ContactLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ContactLocalService
024     * @generated
025     */
026    @ProviderType
027    public class ContactLocalServiceWrapper implements ContactLocalService,
028            ServiceWrapper<ContactLocalService> {
029            public ContactLocalServiceWrapper(ContactLocalService contactLocalService) {
030                    _contactLocalService = contactLocalService;
031            }
032    
033            /**
034            * Adds the contact to the database. Also notifies the appropriate model listeners.
035            *
036            * @param contact the contact
037            * @return the contact that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portal.model.Contact addContact(
042                    com.liferay.portal.model.Contact contact)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _contactLocalService.addContact(contact);
045            }
046    
047            /**
048            * Creates a new contact with the primary key. Does not add the contact to the database.
049            *
050            * @param contactId the primary key for the new contact
051            * @return the new contact
052            */
053            @Override
054            public com.liferay.portal.model.Contact createContact(long contactId) {
055                    return _contactLocalService.createContact(contactId);
056            }
057    
058            /**
059            * Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param contactId the primary key of the contact
062            * @return the contact that was removed
063            * @throws PortalException if a contact with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            @Override
067            public com.liferay.portal.model.Contact deleteContact(long contactId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _contactLocalService.deleteContact(contactId);
071            }
072    
073            /**
074            * Deletes the contact from the database. Also notifies the appropriate model listeners.
075            *
076            * @param contact the contact
077            * @return the contact that was removed
078            * @throws SystemException if a system exception occurred
079            */
080            @Override
081            public com.liferay.portal.model.Contact deleteContact(
082                    com.liferay.portal.model.Contact contact)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _contactLocalService.deleteContact(contact);
085            }
086    
087            @Override
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _contactLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @Override
100            @SuppressWarnings("rawtypes")
101            public java.util.List dynamicQuery(
102                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _contactLocalService.dynamicQuery(dynamicQuery);
105            }
106    
107            /**
108            * Performs a dynamic query on the database and returns a range of the matching rows.
109            *
110            * <p>
111            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ContactModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
112            * </p>
113            *
114            * @param dynamicQuery the dynamic query
115            * @param start the lower bound of the range of model instances
116            * @param end the upper bound of the range of model instances (not inclusive)
117            * @return the range of matching rows
118            * @throws SystemException if a system exception occurred
119            */
120            @Override
121            @SuppressWarnings("rawtypes")
122            public java.util.List dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException {
125                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end);
126            }
127    
128            /**
129            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
130            *
131            * <p>
132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ContactModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param dynamicQuery the dynamic query
136            * @param start the lower bound of the range of model instances
137            * @param end the upper bound of the range of model instances (not inclusive)
138            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
139            * @return the ordered range of matching rows
140            * @throws SystemException if a system exception occurred
141            */
142            @Override
143            @SuppressWarnings("rawtypes")
144            public java.util.List dynamicQuery(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146                    int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end,
150                            orderByComparator);
151            }
152    
153            /**
154            * Returns the number of rows that match the dynamic query.
155            *
156            * @param dynamicQuery the dynamic query
157            * @return the number of rows that match the dynamic query
158            * @throws SystemException if a system exception occurred
159            */
160            @Override
161            public long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return _contactLocalService.dynamicQueryCount(dynamicQuery);
165            }
166    
167            /**
168            * Returns the number of rows that match the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @param projection the projection to apply to the query
172            * @return the number of rows that match the dynamic query
173            * @throws SystemException if a system exception occurred
174            */
175            @Override
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _contactLocalService.dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            @Override
184            public com.liferay.portal.model.Contact fetchContact(long contactId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _contactLocalService.fetchContact(contactId);
187            }
188    
189            /**
190            * Returns the contact with the primary key.
191            *
192            * @param contactId the primary key of the contact
193            * @return the contact
194            * @throws PortalException if a contact with the primary key could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            @Override
198            public com.liferay.portal.model.Contact getContact(long contactId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return _contactLocalService.getContact(contactId);
202            }
203    
204            @Override
205            public com.liferay.portal.model.PersistedModel getPersistedModel(
206                    java.io.Serializable primaryKeyObj)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException {
209                    return _contactLocalService.getPersistedModel(primaryKeyObj);
210            }
211    
212            /**
213            * Returns a range of all the contacts.
214            *
215            * <p>
216            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ContactModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
217            * </p>
218            *
219            * @param start the lower bound of the range of contacts
220            * @param end the upper bound of the range of contacts (not inclusive)
221            * @return the range of contacts
222            * @throws SystemException if a system exception occurred
223            */
224            @Override
225            public java.util.List<com.liferay.portal.model.Contact> getContacts(
226                    int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _contactLocalService.getContacts(start, end);
229            }
230    
231            /**
232            * Returns the number of contacts.
233            *
234            * @return the number of contacts
235            * @throws SystemException if a system exception occurred
236            */
237            @Override
238            public int getContactsCount()
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _contactLocalService.getContactsCount();
241            }
242    
243            /**
244            * Updates the contact in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
245            *
246            * @param contact the contact
247            * @return the contact that was updated
248            * @throws SystemException if a system exception occurred
249            */
250            @Override
251            public com.liferay.portal.model.Contact updateContact(
252                    com.liferay.portal.model.Contact contact)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _contactLocalService.updateContact(contact);
255            }
256    
257            /**
258            * Returns the Spring bean ID for this bean.
259            *
260            * @return the Spring bean ID for this bean
261            */
262            @Override
263            public java.lang.String getBeanIdentifier() {
264                    return _contactLocalService.getBeanIdentifier();
265            }
266    
267            /**
268            * Sets the Spring bean ID for this bean.
269            *
270            * @param beanIdentifier the Spring bean ID for this bean
271            */
272            @Override
273            public void setBeanIdentifier(java.lang.String beanIdentifier) {
274                    _contactLocalService.setBeanIdentifier(beanIdentifier);
275            }
276    
277            @Override
278            public com.liferay.portal.model.Contact addContact(long userId,
279                    java.lang.String className, long classPK,
280                    java.lang.String emailAddress, java.lang.String firstName,
281                    java.lang.String middleName, java.lang.String lastName, int prefixId,
282                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
283                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
284                    java.lang.String facebookSn, java.lang.String icqSn,
285                    java.lang.String jabberSn, java.lang.String msnSn,
286                    java.lang.String mySpaceSn, java.lang.String skypeSn,
287                    java.lang.String twitterSn, java.lang.String ymSn,
288                    java.lang.String jobTitle)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _contactLocalService.addContact(userId, className, classPK,
292                            emailAddress, firstName, middleName, lastName, prefixId, suffixId,
293                            male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
294                            facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn,
295                            ymSn, jobTitle);
296            }
297    
298            @Override
299            public java.util.List<com.liferay.portal.model.Contact> getContacts(
300                    long classNameId, long classPK, int start, int end,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return _contactLocalService.getContacts(classNameId, classPK, start,
304                            end, orderByComparator);
305            }
306    
307            @Override
308            public int getContactsCount(long classNameId, long classPK)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _contactLocalService.getContactsCount(classNameId, classPK);
311            }
312    
313            @Override
314            public com.liferay.portal.model.Contact updateContact(long contactId,
315                    java.lang.String emailAddress, java.lang.String firstName,
316                    java.lang.String middleName, java.lang.String lastName, int prefixId,
317                    int suffixId, boolean male, int birthdayMonth, int birthdayDay,
318                    int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
319                    java.lang.String facebookSn, java.lang.String icqSn,
320                    java.lang.String jabberSn, java.lang.String msnSn,
321                    java.lang.String mySpaceSn, java.lang.String skypeSn,
322                    java.lang.String twitterSn, java.lang.String ymSn,
323                    java.lang.String jobTitle)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _contactLocalService.updateContact(contactId, emailAddress,
327                            firstName, middleName, lastName, prefixId, suffixId, male,
328                            birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn, facebookSn,
329                            icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn, ymSn,
330                            jobTitle);
331            }
332    
333            /**
334             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
335             */
336            public ContactLocalService getWrappedContactLocalService() {
337                    return _contactLocalService;
338            }
339    
340            /**
341             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
342             */
343            public void setWrappedContactLocalService(
344                    ContactLocalService contactLocalService) {
345                    _contactLocalService = contactLocalService;
346            }
347    
348            @Override
349            public ContactLocalService getWrappedService() {
350                    return _contactLocalService;
351            }
352    
353            @Override
354            public void setWrappedService(ContactLocalService contactLocalService) {
355                    _contactLocalService = contactLocalService;
356            }
357    
358            private ContactLocalService _contactLocalService;
359    }