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.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.kernel.exception.SystemException;
44  
45      public com.liferay.portal.model.ResourceAction updateImpl(
46          com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
47          throws com.liferay.portal.kernel.exception.SystemException;
48  
49      public com.liferay.portal.model.ResourceAction findByPrimaryKey(
50          long resourceActionId)
51          throws com.liferay.portal.NoSuchResourceActionException,
52              com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
55          long resourceActionId)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
59          java.lang.String name)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
63          java.lang.String name, int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
67          java.lang.String name, int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public com.liferay.portal.model.ResourceAction findByName_First(
72          java.lang.String name,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.NoSuchResourceActionException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.ResourceAction findByName_Last(
78          java.lang.String name,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.NoSuchResourceActionException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
84          long resourceActionId, java.lang.String name,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchResourceActionException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      public com.liferay.portal.model.ResourceAction findByN_A(
90          java.lang.String name, java.lang.String actionId)
91          throws com.liferay.portal.NoSuchResourceActionException,
92              com.liferay.portal.kernel.exception.SystemException;
93  
94      public com.liferay.portal.model.ResourceAction fetchByN_A(
95          java.lang.String name, java.lang.String actionId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.ResourceAction fetchByN_A(
99          java.lang.String name, java.lang.String actionId,
100         boolean retrieveFromCache)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.ResourceAction> findAll()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
107         int start, int end)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
111         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public void removeByName(java.lang.String name)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public void removeByN_A(java.lang.String name, java.lang.String actionId)
118         throws com.liferay.portal.NoSuchResourceActionException,
119             com.liferay.portal.kernel.exception.SystemException;
120 
121     public void removeAll()
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public int countByName(java.lang.String name)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public int countByN_A(java.lang.String name, java.lang.String actionId)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public int countAll()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 }