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