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