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 @Override 198 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 199 return _orgLaborLocalService.getIndexableActionableDynamicQuery(); 200 } 201 202 /** 203 * Returns the OSGi service identifier. 204 * 205 * @return the OSGi service identifier 206 */ 207 @Override 208 public java.lang.String getOSGiServiceIdentifier() { 209 return _orgLaborLocalService.getOSGiServiceIdentifier(); 210 } 211 212 /** 213 * Returns the org labor with the primary key. 214 * 215 * @param orgLaborId the primary key of the org labor 216 * @return the org labor 217 * @throws PortalException if a org labor with the primary key could not be found 218 */ 219 @Override 220 public com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId) 221 throws com.liferay.portal.kernel.exception.PortalException { 222 return _orgLaborLocalService.getOrgLabor(orgLaborId); 223 } 224 225 @Override 226 public java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors( 227 long organizationId) { 228 return _orgLaborLocalService.getOrgLabors(organizationId); 229 } 230 231 /** 232 * Returns a range of all the org labors. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param start the lower bound of the range of org labors 239 * @param end the upper bound of the range of org labors (not inclusive) 240 * @return the range of org labors 241 */ 242 @Override 243 public java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors( 244 int start, int end) { 245 return _orgLaborLocalService.getOrgLabors(start, end); 246 } 247 248 /** 249 * Returns the number of org labors. 250 * 251 * @return the number of org labors 252 */ 253 @Override 254 public int getOrgLaborsCount() { 255 return _orgLaborLocalService.getOrgLaborsCount(); 256 } 257 258 @Override 259 public com.liferay.portal.model.PersistedModel getPersistedModel( 260 java.io.Serializable primaryKeyObj) 261 throws com.liferay.portal.kernel.exception.PortalException { 262 return _orgLaborLocalService.getPersistedModel(primaryKeyObj); 263 } 264 265 /** 266 * Updates the org labor in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 267 * 268 * @param orgLabor the org labor 269 * @return the org labor that was updated 270 */ 271 @Override 272 public com.liferay.portal.model.OrgLabor updateOrgLabor( 273 com.liferay.portal.model.OrgLabor orgLabor) { 274 return _orgLaborLocalService.updateOrgLabor(orgLabor); 275 } 276 277 @Override 278 public com.liferay.portal.model.OrgLabor updateOrgLabor(long orgLaborId, 279 long typeId, int sunOpen, int sunClose, int monOpen, int monClose, 280 int tueOpen, int tueClose, int wedOpen, int wedClose, int thuOpen, 281 int thuClose, int friOpen, int friClose, int satOpen, int satClose) 282 throws com.liferay.portal.kernel.exception.PortalException { 283 return _orgLaborLocalService.updateOrgLabor(orgLaborId, typeId, 284 sunOpen, sunClose, monOpen, monClose, tueOpen, tueClose, wedOpen, 285 wedClose, thuOpen, thuClose, friOpen, friClose, satOpen, satClose); 286 } 287 288 @Override 289 public OrgLaborLocalService getWrappedService() { 290 return _orgLaborLocalService; 291 } 292 293 @Override 294 public void setWrappedService(OrgLaborLocalService orgLaborLocalService) { 295 _orgLaborLocalService = orgLaborLocalService; 296 } 297 298 private OrgLaborLocalService _orgLaborLocalService; 299 }