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 AccountLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see AccountLocalService
024     * @generated
025     */
026    @ProviderType
027    public class AccountLocalServiceWrapper implements AccountLocalService,
028            ServiceWrapper<AccountLocalService> {
029            public AccountLocalServiceWrapper(AccountLocalService accountLocalService) {
030                    _accountLocalService = accountLocalService;
031            }
032    
033            /**
034            * Adds the account to the database. Also notifies the appropriate model listeners.
035            *
036            * @param account the account
037            * @return the account that was added
038            */
039            @Override
040            public com.liferay.portal.model.Account addAccount(
041                    com.liferay.portal.model.Account account) {
042                    return _accountLocalService.addAccount(account);
043            }
044    
045            /**
046            * Creates a new account with the primary key. Does not add the account to the database.
047            *
048            * @param accountId the primary key for the new account
049            * @return the new account
050            */
051            @Override
052            public com.liferay.portal.model.Account createAccount(long accountId) {
053                    return _accountLocalService.createAccount(accountId);
054            }
055    
056            /**
057            * Deletes the account from the database. Also notifies the appropriate model listeners.
058            *
059            * @param account the account
060            * @return the account that was removed
061            */
062            @Override
063            public com.liferay.portal.model.Account deleteAccount(
064                    com.liferay.portal.model.Account account) {
065                    return _accountLocalService.deleteAccount(account);
066            }
067    
068            /**
069            * Deletes the account with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param accountId the primary key of the account
072            * @return the account that was removed
073            * @throws PortalException if a account with the primary key could not be found
074            */
075            @Override
076            public com.liferay.portal.model.Account deleteAccount(long accountId)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _accountLocalService.deleteAccount(accountId);
079            }
080    
081            /**
082            * @throws PortalException
083            */
084            @Override
085            public com.liferay.portal.model.PersistedModel deletePersistedModel(
086                    com.liferay.portal.model.PersistedModel persistedModel)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return _accountLocalService.deletePersistedModel(persistedModel);
089            }
090    
091            @Override
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return _accountLocalService.dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            */
102            @Override
103            public <T> java.util.List<T> dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
105                    return _accountLocalService.dynamicQuery(dynamicQuery);
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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.AccountModelImpl}. 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.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            */
120            @Override
121            public <T> java.util.List<T> dynamicQuery(
122                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
123                    int end) {
124                    return _accountLocalService.dynamicQuery(dynamicQuery, start, end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * 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.AccountModelImpl}. 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.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            */
140            @Override
141            public <T> java.util.List<T> dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
145                    return _accountLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows matching the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows matching the dynamic query
154            */
155            @Override
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
158                    return _accountLocalService.dynamicQueryCount(dynamicQuery);
159            }
160    
161            /**
162            * Returns the number of rows matching the dynamic query.
163            *
164            * @param dynamicQuery the dynamic query
165            * @param projection the projection to apply to the query
166            * @return the number of rows matching the dynamic query
167            */
168            @Override
169            public long dynamicQueryCount(
170                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
171                    com.liferay.portal.kernel.dao.orm.Projection projection) {
172                    return _accountLocalService.dynamicQueryCount(dynamicQuery, projection);
173            }
174    
175            @Override
176            public com.liferay.portal.model.Account fetchAccount(long accountId) {
177                    return _accountLocalService.fetchAccount(accountId);
178            }
179    
180            /**
181            * Returns the account with the primary key.
182            *
183            * @param accountId the primary key of the account
184            * @return the account
185            * @throws PortalException if a account with the primary key could not be found
186            */
187            @Override
188            public com.liferay.portal.model.Account getAccount(long accountId)
189                    throws com.liferay.portal.kernel.exception.PortalException {
190                    return _accountLocalService.getAccount(accountId);
191            }
192    
193            @Override
194            public com.liferay.portal.model.Account getAccount(long companyId,
195                    long accountId)
196                    throws com.liferay.portal.kernel.exception.PortalException {
197                    return _accountLocalService.getAccount(companyId, accountId);
198            }
199    
200            /**
201            * Returns a range of all the accounts.
202            *
203            * <p>
204            * 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.AccountModelImpl}. 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.
205            * </p>
206            *
207            * @param start the lower bound of the range of accounts
208            * @param end the upper bound of the range of accounts (not inclusive)
209            * @return the range of accounts
210            */
211            @Override
212            public java.util.List<com.liferay.portal.model.Account> getAccounts(
213                    int start, int end) {
214                    return _accountLocalService.getAccounts(start, end);
215            }
216    
217            /**
218            * Returns the number of accounts.
219            *
220            * @return the number of accounts
221            */
222            @Override
223            public int getAccountsCount() {
224                    return _accountLocalService.getAccountsCount();
225            }
226    
227            @Override
228            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
229                    return _accountLocalService.getActionableDynamicQuery();
230            }
231    
232            @Override
233            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
234                    return _accountLocalService.getIndexableActionableDynamicQuery();
235            }
236    
237            /**
238            * Returns the OSGi service identifier.
239            *
240            * @return the OSGi service identifier
241            */
242            @Override
243            public java.lang.String getOSGiServiceIdentifier() {
244                    return _accountLocalService.getOSGiServiceIdentifier();
245            }
246    
247            @Override
248            public com.liferay.portal.model.PersistedModel getPersistedModel(
249                    java.io.Serializable primaryKeyObj)
250                    throws com.liferay.portal.kernel.exception.PortalException {
251                    return _accountLocalService.getPersistedModel(primaryKeyObj);
252            }
253    
254            /**
255            * Updates the account in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
256            *
257            * @param account the account
258            * @return the account that was updated
259            */
260            @Override
261            public com.liferay.portal.model.Account updateAccount(
262                    com.liferay.portal.model.Account account) {
263                    return _accountLocalService.updateAccount(account);
264            }
265    
266            @Override
267            public AccountLocalService getWrappedService() {
268                    return _accountLocalService;
269            }
270    
271            @Override
272            public void setWrappedService(AccountLocalService accountLocalService) {
273                    _accountLocalService = accountLocalService;
274            }
275    
276            private AccountLocalService _accountLocalService;
277    }