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