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