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