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 orderByComparator)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.ResourceCode findByCompanyId_First(
75          long companyId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchResourceCodeException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
81          long companyId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchResourceCodeException,
84              com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
87          long codeId, long companyId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.NoSuchResourceCodeException,
90              com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
93          java.lang.String name) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
96          java.lang.String name, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
100         java.lang.String name, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.ResourceCode findByName_First(
105         java.lang.String name,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.NoSuchResourceCodeException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.ResourceCode findByName_Last(
111         java.lang.String name,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.NoSuchResourceCodeException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
117         long codeId, java.lang.String name,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.NoSuchResourceCodeException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portal.model.ResourceCode findByC_N_S(long companyId,
123         java.lang.String name, int scope)
124         throws com.liferay.portal.NoSuchResourceCodeException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
128         java.lang.String name, int scope)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
132         java.lang.String name, int scope, boolean retrieveFromCache)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portal.model.ResourceCode> findAll()
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
139         int start, int end) throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
142         int start, int end,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeByCompanyId(long companyId)
147         throws com.liferay.portal.SystemException;
148 
149     public void removeByName(java.lang.String name)
150         throws com.liferay.portal.SystemException;
151 
152     public void removeByC_N_S(long companyId, java.lang.String name, int scope)
153         throws com.liferay.portal.NoSuchResourceCodeException,
154             com.liferay.portal.SystemException;
155 
156     public void removeAll() throws com.liferay.portal.SystemException;
157 
158     public int countByCompanyId(long companyId)
159         throws com.liferay.portal.SystemException;
160 
161     public int countByName(java.lang.String name)
162         throws com.liferay.portal.SystemException;
163 
164     public int countByC_N_S(long companyId, java.lang.String name, int scope)
165         throws com.liferay.portal.SystemException;
166 
167     public int countAll() throws com.liferay.portal.SystemException;
168 }