1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.model.ResourceCode;
26
27
40 public interface ResourceCodePersistence extends BasePersistence<ResourceCode> {
41 public void cacheResult(com.liferay.portal.model.ResourceCode resourceCode);
42
43 public void cacheResult(
44 java.util.List<com.liferay.portal.model.ResourceCode> resourceCodes);
45
46 public com.liferay.portal.model.ResourceCode create(long codeId);
47
48 public com.liferay.portal.model.ResourceCode remove(long codeId)
49 throws com.liferay.portal.NoSuchResourceCodeException,
50 com.liferay.portal.SystemException;
51
52
55 public com.liferay.portal.model.ResourceCode update(
56 com.liferay.portal.model.ResourceCode resourceCode)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.ResourceCode updateImpl(
60 com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
61 throws com.liferay.portal.SystemException;
62
63 public com.liferay.portal.model.ResourceCode findByPrimaryKey(long codeId)
64 throws com.liferay.portal.NoSuchResourceCodeException,
65 com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.ResourceCode fetchByPrimaryKey(long codeId)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
71 long companyId) throws com.liferay.portal.SystemException;
72
73 public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
74 long companyId, int start, int end)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portal.model.ResourceCode> findByCompanyId(
78 long companyId, int start, int end,
79 com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException;
81
82 public com.liferay.portal.model.ResourceCode findByCompanyId_First(
83 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.NoSuchResourceCodeException,
85 com.liferay.portal.SystemException;
86
87 public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
88 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.NoSuchResourceCodeException,
90 com.liferay.portal.SystemException;
91
92 public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
93 long codeId, long companyId,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.NoSuchResourceCodeException,
96 com.liferay.portal.SystemException;
97
98 public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
99 java.lang.String name) throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
102 java.lang.String name, int start, int end)
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List<com.liferay.portal.model.ResourceCode> findByName(
106 java.lang.String name, int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portal.model.ResourceCode findByName_First(
111 java.lang.String name,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.NoSuchResourceCodeException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portal.model.ResourceCode findByName_Last(
117 java.lang.String name,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchResourceCodeException,
120 com.liferay.portal.SystemException;
121
122 public com.liferay.portal.model.ResourceCode[] findByName_PrevAndNext(
123 long codeId, java.lang.String name,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.NoSuchResourceCodeException,
126 com.liferay.portal.SystemException;
127
128 public com.liferay.portal.model.ResourceCode findByC_N_S(long companyId,
129 java.lang.String name, int scope)
130 throws com.liferay.portal.NoSuchResourceCodeException,
131 com.liferay.portal.SystemException;
132
133 public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
134 java.lang.String name, int scope)
135 throws com.liferay.portal.SystemException;
136
137 public com.liferay.portal.model.ResourceCode fetchByC_N_S(long companyId,
138 java.lang.String name, int scope, boolean retrieveFromCache)
139 throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portal.model.ResourceCode> findAll()
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
145 int start, int end) throws com.liferay.portal.SystemException;
146
147 public java.util.List<com.liferay.portal.model.ResourceCode> findAll(
148 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException;
150
151 public void removeByCompanyId(long companyId)
152 throws com.liferay.portal.SystemException;
153
154 public void removeByName(java.lang.String name)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByC_N_S(long companyId, java.lang.String name, int scope)
158 throws com.liferay.portal.NoSuchResourceCodeException,
159 com.liferay.portal.SystemException;
160
161 public void removeAll() throws com.liferay.portal.SystemException;
162
163 public int countByCompanyId(long companyId)
164 throws com.liferay.portal.SystemException;
165
166 public int countByName(java.lang.String name)
167 throws com.liferay.portal.SystemException;
168
169 public int countByC_N_S(long companyId, java.lang.String name, int scope)
170 throws com.liferay.portal.SystemException;
171
172 public int countAll() throws com.liferay.portal.SystemException;
173 }