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.ResourceCode;
18  
19  /**
20   * <a href="ResourceCodePersistence.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       ResourceCodePersistenceImpl
29   * @see       ResourceCodeUtil
30   * @generated
31   */
32  public interface ResourceCodePersistence extends BasePersistence<ResourceCode> {
33      public void cacheResult(com.liferay.portal.model.ResourceCode resourceCode);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.ResourceCode> resourceCodes);
37  
38      public com.liferay.portal.model.ResourceCode create(long codeId);
39  
40      public com.liferay.portal.model.ResourceCode remove(long codeId)
41          throws com.liferay.portal.NoSuchResourceCodeException,
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.ResourceCode update(
48          com.liferay.portal.model.ResourceCode resourceCode)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.ResourceCode updateImpl(
52          com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.ResourceCode findByPrimaryKey(long codeId)
56          throws com.liferay.portal.NoSuchResourceCodeException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.ResourceCode fetchByPrimaryKey(long codeId)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
63          long companyId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.ResourceCode findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchResourceCodeException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
80          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchResourceCodeException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
85          long codeId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchResourceCodeException,
88              com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
91          java.lang.String name) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
94          java.lang.String name, int start, int end)
95          throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
98          java.lang.String name, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.ResourceCode findByName_First(
103         java.lang.String name,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchResourceCodeException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.ResourceCode findByName_Last(
109         java.lang.String name,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchResourceCodeException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
115         long codeId, java.lang.String name,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchResourceCodeException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portal.model.ResourceCode findByC_N_S(long companyId,
121         java.lang.String name, int scope)
122         throws com.liferay.portal.NoSuchResourceCodeException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
126         java.lang.String name, int scope)
127         throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
130         java.lang.String name, int scope, boolean retrieveFromCache)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.ResourceCode> findAll()
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
137         int start, int end) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
140         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByCompanyId(long companyId)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeByName(java.lang.String name)
147         throws com.liferay.portal.SystemException;
148 
149     public void removeByC_N_S(long companyId, java.lang.String name, int scope)
150         throws com.liferay.portal.NoSuchResourceCodeException,
151             com.liferay.portal.SystemException;
152 
153     public void removeAll() throws com.liferay.portal.SystemException;
154 
155     public int countByCompanyId(long companyId)
156         throws com.liferay.portal.SystemException;
157 
158     public int countByName(java.lang.String name)
159         throws com.liferay.portal.SystemException;
160 
161     public int countByC_N_S(long companyId, java.lang.String name, int scope)
162         throws com.liferay.portal.SystemException;
163 
164     public int countAll() throws com.liferay.portal.SystemException;
165 }