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 OrgLaborLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see OrgLaborLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class OrgLaborLocalServiceWrapper implements OrgLaborLocalService, 028 ServiceWrapper<OrgLaborLocalService> { 029 public OrgLaborLocalServiceWrapper( 030 OrgLaborLocalService orgLaborLocalService) { 031 _orgLaborLocalService = orgLaborLocalService; 032 } 033 034 /** 035 * Adds the org labor to the database. Also notifies the appropriate model listeners. 036 * 037 * @param orgLabor the org labor 038 * @return the org labor that was added 039 */ 040 @Override 041 public com.liferay.portal.model.OrgLabor addOrgLabor( 042 com.liferay.portal.model.OrgLabor orgLabor) { 043 return _orgLaborLocalService.addOrgLabor(orgLabor); 044 } 045 046 @Override 047 public com.liferay.portal.model.OrgLabor addOrgLabor(long organizationId, 048 long typeId, int sunOpen, int sunClose, int monOpen, int monClose, 049 int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen, 050 int thuClose, int friOpen, int friClose, int satOpen, int satClose) 051 throws com.liferay.portal.kernel.exception.PortalException { 052 return _orgLaborLocalService.addOrgLabor(organizationId, typeId, 053 sunOpen, sunClose, monOpen, monClose, tueOpen, tueClose, wedOpen, 054 wedClose, thuOpen, thuClose, friOpen, friClose, satOpen, satClose); 055 } 056 057 /** 058 * Creates a new org labor with the primary key. Does not add the org labor to the database. 059 * 060 * @param orgLaborId the primary key for the new org labor 061 * @return the new org labor 062 */ 063 @Override 064 public com.liferay.portal.model.OrgLabor createOrgLabor(long orgLaborId) { 065 return _orgLaborLocalService.createOrgLabor(orgLaborId); 066 } 067 068 /** 069 * Deletes the org labor from the database. Also notifies the appropriate model listeners. 070 * 071 * @param orgLabor the org labor 072 * @return the org labor that was removed 073 */ 074 @Override 075 public com.liferay.portal.model.OrgLabor deleteOrgLabor( 076 com.liferay.portal.model.OrgLabor orgLabor) { 077 return _orgLaborLocalService.deleteOrgLabor(orgLabor); 078 } 079 080 /** 081 * Deletes the org labor with the primary key from the database. Also notifies the appropriate model listeners. 082 * 083 * @param orgLaborId the primary key of the org labor 084 * @return the org labor that was removed 085 * @throws PortalException if a org labor with the primary key could not be found 086 */ 087 @Override 088 public com.liferay.portal.model.OrgLabor deleteOrgLabor(long orgLaborId) 089 throws com.liferay.portal.kernel.exception.PortalException { 090 return _orgLaborLocalService.deleteOrgLabor(orgLaborId); 091 } 092 093 /** 094 * @throws PortalException 095 */ 096 @Override 097 public com.liferay.portal.model.PersistedModel deletePersistedModel( 098 com.liferay.portal.model.PersistedModel persistedModel) 099 throws com.liferay.portal.kernel.exception.PortalException { 100 return _orgLaborLocalService.deletePersistedModel(persistedModel); 101 } 102 103 @Override 104 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 105 return _orgLaborLocalService.dynamicQuery(); 106 } 107 108 /** 109 * Performs a dynamic query on the database and returns the matching rows. 110 * 111 * @param dynamicQuery the dynamic query 112 * @return the matching rows 113 */ 114 @Override 115 public <T> java.util.List<T> dynamicQuery( 116 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 117 return _orgLaborLocalService.dynamicQuery(dynamicQuery); 118 } 119 120 /** 121 * Performs a dynamic query on the database and returns a 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.OrgLaborModelImpl}. 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 * @return the range of matching rows 131 */ 132 @Override 133 public <T> java.util.List<T> dynamicQuery( 134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 135 int end) { 136 return _orgLaborLocalService.dynamicQuery(dynamicQuery, start, end); 137 } 138 139 /** 140 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 141 * 142 * <p> 143 * 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.OrgLaborModelImpl}. 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. 144 * </p> 145 * 146 * @param dynamicQuery the dynamic query 147 * @param start the lower bound of the range of model instances 148 * @param end the upper bound of the range of model instances (not inclusive) 149 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 150 * @return the ordered range of matching rows 151 */ 152 @Override 153 public <T> java.util.List<T> dynamicQuery( 154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 155 int end, 156 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 157 return _orgLaborLocalService.dynamicQuery(dynamicQuery, start, end, 158 orderByComparator); 159 } 160 161 /** 162 * Returns the number of rows matching the dynamic query. 163 * 164 * @param dynamicQuery the dynamic query 165 * @return the number of rows matching the dynamic query 166 */ 167 @Override 168 public long dynamicQueryCount( 169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 170 return _orgLaborLocalService.dynamicQueryCount(dynamicQuery); 171 } 172 173 /** 174 * Returns the number of rows matching the dynamic query. 175 * 176 * @param dynamicQuery the dynamic query 177 * @param projection the projection to apply to the query 178 * @return the number of rows matching the dynamic query 179 */ 180 @Override 181 public long dynamicQueryCount( 182 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 183 com.liferay.portal.kernel.dao.orm.Projection projection) { 184 return _orgLaborLocalService.dynamicQueryCount(dynamicQuery, projection); 185 } 186 187 @Override 188 public com.liferay.portal.model.OrgLabor fetchOrgLabor(long orgLaborId) { 189 return _orgLaborLocalService.fetchOrgLabor(orgLaborId); 190 } 191 192 @Override 193 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 194 return _orgLaborLocalService.getActionableDynamicQuery(); 195 } 196 197 /** 198 * Returns the OSGi service identifier. 199 * 200 * @return the OSGi service identifier 201 */ 202 @Override 203 public java.lang.String getOSGiServiceIdentifier() { 204 return _orgLaborLocalService.getOSGiServiceIdentifier(); 205 } 206 207 /** 208 * Returns the org labor with the primary key. 209 * 210 * @param orgLaborId the primary key of the org labor 211 * @return the org labor 212 * @throws PortalException if a org labor with the primary key could not be found 213 */ 214 @Override 215 public com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId) 216 throws com.liferay.portal.kernel.exception.PortalException { 217 return _orgLaborLocalService.getOrgLabor(orgLaborId); 218 } 219 220 @Override 221 public java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors( 222 long organizationId) { 223 return _orgLaborLocalService.getOrgLabors(organizationId); 224 } 225 226 /** 227 * Returns a range of all the org labors. 228 * 229 * <p> 230 * 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.OrgLaborModelImpl}. 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. 231 * </p> 232 * 233 * @param start the lower bound of the range of org labors 234 * @param end the upper bound of the range of org labors (not inclusive) 235 * @return the range of org labors 236 */ 237 @Override 238 public java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors( 239 int start, int end) { 240 return _orgLaborLocalService.getOrgLabors(start, end); 241 } 242 243 /** 244 * Returns the number of org labors. 245 * 246 * @return the number of org labors 247 */ 248 @Override 249 public int getOrgLaborsCount() { 250 return _orgLaborLocalService.getOrgLaborsCount(); 251 } 252 253 @Override 254 public com.liferay.portal.model.PersistedModel getPersistedModel( 255 java.io.Serializable primaryKeyObj) 256 throws com.liferay.portal.kernel.exception.PortalException { 257 return _orgLaborLocalService.getPersistedModel(primaryKeyObj); 258 } 259 260 /** 261 * Updates the org labor in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 262 * 263 * @param orgLabor the org labor 264 * @return the org labor that was updated 265 */ 266 @Override 267 public com.liferay.portal.model.OrgLabor updateOrgLabor( 268 com.liferay.portal.model.OrgLabor orgLabor) { 269 return _orgLaborLocalService.updateOrgLabor(orgLabor); 270 } 271 272 @Override 273 public com.liferay.portal.model.OrgLabor updateOrgLabor(long orgLaborId, 274 long typeId, int sunOpen, int sunClose, int monOpen, int monClose, 275 int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen, 276 int thuClose, int friOpen, int friClose, int satOpen, int satClose) 277 throws com.liferay.portal.kernel.exception.PortalException { 278 return _orgLaborLocalService.updateOrgLabor(orgLaborId, typeId, 279 sunOpen, sunClose, monOpen, monClose, tueOpen, tueClose, wedOpen, 280 wedClose, thuOpen, thuClose, friOpen, friClose, satOpen, satClose); 281 } 282 283 /** 284 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 285 */ 286 @Deprecated 287 public OrgLaborLocalService getWrappedOrgLaborLocalService() { 288 return _orgLaborLocalService; 289 } 290 291 /** 292 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 293 */ 294 @Deprecated 295 public void setWrappedOrgLaborLocalService( 296 OrgLaborLocalService orgLaborLocalService) { 297 _orgLaborLocalService = orgLaborLocalService; 298 } 299 300 @Override 301 public OrgLaborLocalService getWrappedService() { 302 return _orgLaborLocalService; 303 } 304 305 @Override 306 public void setWrappedService(OrgLaborLocalService orgLaborLocalService) { 307 _orgLaborLocalService = orgLaborLocalService; 308 } 309 310 private OrgLaborLocalService _orgLaborLocalService; 311 }