1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.ResourceCode updateImpl(
45          com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.ResourceCode findByPrimaryKey(long codeId)
49          throws com.liferay.portal.NoSuchResourceCodeException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.ResourceCode fetchByPrimaryKey(long codeId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.ResourceCode findByCompanyId_First(
69          long companyId,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.NoSuchResourceCodeException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
75          long companyId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchResourceCodeException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
81          long codeId, long companyId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchResourceCodeException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
87          java.lang.String name)
88          throws com.liferay.portal.kernel.exception.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
91          java.lang.String name, int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
95          java.lang.String name, int start, int end,
96          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portal.model.ResourceCode findByName_First(
100         java.lang.String name,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.NoSuchResourceCodeException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portal.model.ResourceCode findByName_Last(
106         java.lang.String name,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.NoSuchResourceCodeException,
109             com.liferay.portal.kernel.exception.SystemException;
110 
111     public com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
112         long codeId, java.lang.String name,
113         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114         throws com.liferay.portal.NoSuchResourceCodeException,
115             com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portal.model.ResourceCode findByC_N_S(long companyId,
118         java.lang.String name, int scope)
119         throws com.liferay.portal.NoSuchResourceCodeException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
123         java.lang.String name, int scope)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
127         java.lang.String name, int scope, boolean retrieveFromCache)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.ResourceCode> findAll()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
134         int start, int end)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
138         int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public void removeByCompanyId(long companyId)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public void removeByName(java.lang.String name)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public void removeByC_N_S(long companyId, java.lang.String name, int scope)
149         throws com.liferay.portal.NoSuchResourceCodeException,
150             com.liferay.portal.kernel.exception.SystemException;
151 
152     public void removeAll()
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public int countByCompanyId(long companyId)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public int countByName(java.lang.String name)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public int countByC_N_S(long companyId, java.lang.String name, int scope)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public int countAll()
165         throws com.liferay.portal.kernel.exception.SystemException;
166 }