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