1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.OrgLabor;
18  
19  /**
20   * <a href="OrgLaborPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       OrgLaborPersistenceImpl
29   * @see       OrgLaborUtil
30   * @generated
31   */
32  public interface OrgLaborPersistence extends BasePersistence<OrgLabor> {
33      public void cacheResult(com.liferay.portal.model.OrgLabor orgLabor);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.OrgLabor> orgLabors);
37  
38      public com.liferay.portal.model.OrgLabor create(long orgLaborId);
39  
40      public com.liferay.portal.model.OrgLabor remove(long orgLaborId)
41          throws com.liferay.portal.NoSuchOrgLaborException,
42              com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.OrgLabor update(
48          com.liferay.portal.model.OrgLabor orgLabor)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.OrgLabor updateImpl(
52          com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.OrgLabor findByPrimaryKey(long orgLaborId)
56          throws com.liferay.portal.NoSuchOrgLaborException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.OrgLabor fetchByPrimaryKey(long orgLaborId)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
63          long organizationId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
66          long organizationId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
70          long organizationId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.OrgLabor findByOrganizationId_First(
75          long organizationId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchOrgLaborException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
81          long organizationId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchOrgLaborException,
84              com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
87          long orgLaborId, long organizationId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.NoSuchOrgLaborException,
90              com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.OrgLabor> findAll()
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.OrgLabor> findAll(
96          int start, int end) throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.OrgLabor> findAll(
99          int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101         throws com.liferay.portal.SystemException;
102 
103     public void removeByOrganizationId(long organizationId)
104         throws com.liferay.portal.SystemException;
105 
106     public void removeAll() throws com.liferay.portal.SystemException;
107 
108     public int countByOrganizationId(long organizationId)
109         throws com.liferay.portal.SystemException;
110 
111     public int countAll() throws com.liferay.portal.SystemException;
112 }