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.ResourceAction;
18  
19  /**
20   * <a href="ResourceActionPersistence.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       ResourceActionPersistenceImpl
29   * @see       ResourceActionUtil
30   * @generated
31   */
32  public interface ResourceActionPersistence extends BasePersistence<ResourceAction> {
33      public void cacheResult(
34          com.liferay.portal.model.ResourceAction resourceAction);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.ResourceAction> resourceActions);
38  
39      public com.liferay.portal.model.ResourceAction create(long resourceActionId);
40  
41      public com.liferay.portal.model.ResourceAction remove(long resourceActionId)
42          throws com.liferay.portal.NoSuchResourceActionException,
43              com.liferay.portal.SystemException;
44  
45      /**
46       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
47       */
48      public com.liferay.portal.model.ResourceAction update(
49          com.liferay.portal.model.ResourceAction resourceAction)
50          throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portal.model.ResourceAction updateImpl(
53          com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.ResourceAction findByPrimaryKey(
57          long resourceActionId)
58          throws com.liferay.portal.NoSuchResourceActionException,
59              com.liferay.portal.SystemException;
60  
61      public com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
62          long resourceActionId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
65          java.lang.String name) throws com.liferay.portal.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
68          java.lang.String name, int start, int end)
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
72          java.lang.String name, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portal.model.ResourceAction findByName_First(
77          java.lang.String name,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.NoSuchResourceActionException,
80              com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.ResourceAction findByName_Last(
83          java.lang.String name,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.NoSuchResourceActionException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
89          long resourceActionId, java.lang.String name,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.NoSuchResourceActionException,
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portal.model.ResourceAction findByN_A(
95          java.lang.String name, java.lang.String actionId)
96          throws com.liferay.portal.NoSuchResourceActionException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.ResourceAction fetchByN_A(
100         java.lang.String name, java.lang.String actionId)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.ResourceAction fetchByN_A(
104         java.lang.String name, java.lang.String actionId,
105         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portal.model.ResourceAction> findAll()
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
111         int start, int end) throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
114         int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.SystemException;
117 
118     public void removeByName(java.lang.String name)
119         throws com.liferay.portal.SystemException;
120 
121     public void removeByN_A(java.lang.String name, java.lang.String actionId)
122         throws com.liferay.portal.NoSuchResourceActionException,
123             com.liferay.portal.SystemException;
124 
125     public void removeAll() throws com.liferay.portal.SystemException;
126 
127     public int countByName(java.lang.String name)
128         throws com.liferay.portal.SystemException;
129 
130     public int countByN_A(java.lang.String name, java.lang.String actionId)
131         throws com.liferay.portal.SystemException;
132 
133     public int countAll() throws com.liferay.portal.SystemException;
134 }