001    /**
002     * Copyright (c) 2000-present 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            */
039            @Override
040            public com.liferay.portal.model.Contact addContact(
041                    com.liferay.portal.model.Contact contact) {
042                    return _contactLocalService.addContact(contact);
043            }
044    
045            @Override
046            public com.liferay.portal.model.Contact addContact(long userId,
047                    java.lang.String className, long classPK,
048                    java.lang.String emailAddress, java.lang.String firstName,
049                    java.lang.String middleName, java.lang.String lastName, long prefixId,
050                    long suffixId, boolean male, int birthdayMonth, int birthdayDay,
051                    int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
052                    java.lang.String jabberSn, java.lang.String skypeSn,
053                    java.lang.String twitterSn, java.lang.String jobTitle)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _contactLocalService.addContact(userId, className, classPK,
056                            emailAddress, firstName, middleName, lastName, prefixId, suffixId,
057                            male, birthdayMonth, birthdayDay, birthdayYear, smsSn, facebookSn,
058                            jabberSn, skypeSn, twitterSn, jobTitle);
059            }
060    
061            /**
062            * Creates a new contact with the primary key. Does not add the contact to the database.
063            *
064            * @param contactId the primary key for the new contact
065            * @return the new contact
066            */
067            @Override
068            public com.liferay.portal.model.Contact createContact(long contactId) {
069                    return _contactLocalService.createContact(contactId);
070            }
071    
072            /**
073            * Deletes the contact from the database. Also notifies the appropriate model listeners.
074            *
075            * @param contact the contact
076            * @return the contact that was removed
077            */
078            @Override
079            public com.liferay.portal.model.Contact deleteContact(
080                    com.liferay.portal.model.Contact contact) {
081                    return _contactLocalService.deleteContact(contact);
082            }
083    
084            /**
085            * Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.
086            *
087            * @param contactId the primary key of the contact
088            * @return the contact that was removed
089            * @throws PortalException if a contact with the primary key could not be found
090            */
091            @Override
092            public com.liferay.portal.model.Contact deleteContact(long contactId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _contactLocalService.deleteContact(contactId);
095            }
096    
097            /**
098            * @throws PortalException
099            */
100            @Override
101            public com.liferay.portal.model.PersistedModel deletePersistedModel(
102                    com.liferay.portal.model.PersistedModel persistedModel)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    return _contactLocalService.deletePersistedModel(persistedModel);
105            }
106    
107            @Override
108            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
109                    return _contactLocalService.dynamicQuery();
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns the matching rows.
114            *
115            * @param dynamicQuery the dynamic query
116            * @return the matching rows
117            */
118            @Override
119            public <T> java.util.List<T> dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
121                    return _contactLocalService.dynamicQuery(dynamicQuery);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns a range of the matching rows.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @return the range of matching rows
135            */
136            @Override
137            public <T> java.util.List<T> dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end) {
140                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
154            * @return the ordered range of matching rows
155            */
156            @Override
157            public <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end,
160                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
161                    return _contactLocalService.dynamicQuery(dynamicQuery, start, end,
162                            orderByComparator);
163            }
164    
165            /**
166            * Returns the number of rows matching the dynamic query.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the number of rows matching the dynamic query
170            */
171            @Override
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _contactLocalService.dynamicQueryCount(dynamicQuery);
175            }
176    
177            /**
178            * Returns the number of rows matching the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @param projection the projection to apply to the query
182            * @return the number of rows matching the dynamic query
183            */
184            @Override
185            public long dynamicQueryCount(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
187                    com.liferay.portal.kernel.dao.orm.Projection projection) {
188                    return _contactLocalService.dynamicQueryCount(dynamicQuery, projection);
189            }
190    
191            @Override
192            public com.liferay.portal.model.Contact fetchContact(long contactId) {
193                    return _contactLocalService.fetchContact(contactId);
194            }
195    
196            @Override
197            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
198                    return _contactLocalService.getActionableDynamicQuery();
199            }
200    
201            /**
202            * Returns the contact with the primary key.
203            *
204            * @param contactId the primary key of the contact
205            * @return the contact
206            * @throws PortalException if a contact with the primary key could not be found
207            */
208            @Override
209            public com.liferay.portal.model.Contact getContact(long contactId)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _contactLocalService.getContact(contactId);
212            }
213    
214            @Override
215            public java.util.List<com.liferay.portal.model.Contact> getContacts(
216                    long classNameId, long classPK, int start, int end,
217                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Contact> orderByComparator) {
218                    return _contactLocalService.getContacts(classNameId, classPK, start,
219                            end, orderByComparator);
220            }
221    
222            /**
223            * Returns a range of all the contacts.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param start the lower bound of the range of contacts
230            * @param end the upper bound of the range of contacts (not inclusive)
231            * @return the range of contacts
232            */
233            @Override
234            public java.util.List<com.liferay.portal.model.Contact> getContacts(
235                    int start, int end) {
236                    return _contactLocalService.getContacts(start, end);
237            }
238    
239            /**
240            * Returns the number of contacts.
241            *
242            * @return the number of contacts
243            */
244            @Override
245            public int getContactsCount() {
246                    return _contactLocalService.getContactsCount();
247            }
248    
249            @Override
250            public int getContactsCount(long classNameId, long classPK) {
251                    return _contactLocalService.getContactsCount(classNameId, classPK);
252            }
253    
254            @Override
255            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
256                    return _contactLocalService.getIndexableActionableDynamicQuery();
257            }
258    
259            /**
260            * Returns the OSGi service identifier.
261            *
262            * @return the OSGi service identifier
263            */
264            @Override
265            public java.lang.String getOSGiServiceIdentifier() {
266                    return _contactLocalService.getOSGiServiceIdentifier();
267            }
268    
269            @Override
270            public com.liferay.portal.model.PersistedModel getPersistedModel(
271                    java.io.Serializable primaryKeyObj)
272                    throws com.liferay.portal.kernel.exception.PortalException {
273                    return _contactLocalService.getPersistedModel(primaryKeyObj);
274            }
275    
276            /**
277            * Updates the contact in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
278            *
279            * @param contact the contact
280            * @return the contact that was updated
281            */
282            @Override
283            public com.liferay.portal.model.Contact updateContact(
284                    com.liferay.portal.model.Contact contact) {
285                    return _contactLocalService.updateContact(contact);
286            }
287    
288            @Override
289            public com.liferay.portal.model.Contact updateContact(long contactId,
290                    java.lang.String emailAddress, java.lang.String firstName,
291                    java.lang.String middleName, java.lang.String lastName, long prefixId,
292                    long suffixId, boolean male, int birthdayMonth, int birthdayDay,
293                    int birthdayYear, java.lang.String smsSn, java.lang.String facebookSn,
294                    java.lang.String jabberSn, java.lang.String skypeSn,
295                    java.lang.String twitterSn, java.lang.String jobTitle)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _contactLocalService.updateContact(contactId, emailAddress,
298                            firstName, middleName, lastName, prefixId, suffixId, male,
299                            birthdayMonth, birthdayDay, birthdayYear, smsSn, facebookSn,
300                            jabberSn, skypeSn, twitterSn, jobTitle);
301            }
302    
303            @Override
304            public ContactLocalService getWrappedService() {
305                    return _contactLocalService;
306            }
307    
308            @Override
309            public void setWrappedService(ContactLocalService contactLocalService) {
310                    _contactLocalService = contactLocalService;
311            }
312    
313            private ContactLocalService _contactLocalService;
314    }