1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface ResourceCodePersistence {
32 public com.liferay.portal.model.ResourceCode create(long codeId);
33
34 public com.liferay.portal.model.ResourceCode remove(long codeId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchResourceCodeException;
37
38 public com.liferay.portal.model.ResourceCode remove(
39 com.liferay.portal.model.ResourceCode resourceCode)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.ResourceCode update(
43 com.liferay.portal.model.ResourceCode resourceCode)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.ResourceCode update(
47 com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.ResourceCode updateImpl(
51 com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portal.model.ResourceCode findByPrimaryKey(long codeId)
55 throws com.liferay.portal.SystemException,
56 com.liferay.portal.NoSuchResourceCodeException;
57
58 public com.liferay.portal.model.ResourceCode fetchByPrimaryKey(long codeId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByCompanyId(long companyId)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByCompanyId(long companyId, int begin, int end)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByCompanyId(long companyId, int begin, int end,
68 com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException;
70
71 public com.liferay.portal.model.ResourceCode findByCompanyId_First(
72 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.NoSuchResourceCodeException;
75
76 public com.liferay.portal.model.ResourceCode findByCompanyId_Last(
77 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portal.NoSuchResourceCodeException;
80
81 public com.liferay.portal.model.ResourceCode[] findByCompanyId_PrevAndNext(
82 long codeId, long companyId,
83 com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.NoSuchResourceCodeException;
86
87 public java.util.List findByName(java.lang.String name)
88 throws com.liferay.portal.SystemException;
89
90 public java.util.List findByName(java.lang.String name, int begin, int end)
91 throws com.liferay.portal.SystemException;
92
93 public java.util.List findByName(java.lang.String name, int begin, int end,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.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.SystemException,
101 com.liferay.portal.NoSuchResourceCodeException;
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.SystemException,
107 com.liferay.portal.NoSuchResourceCodeException;
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.SystemException,
113 com.liferay.portal.NoSuchResourceCodeException;
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.SystemException,
118 com.liferay.portal.NoSuchResourceCodeException;
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.SystemException;
123
124 public java.util.List findWithDynamicQuery(
125 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List findWithDynamicQuery(
129 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
130 int begin, int end) throws com.liferay.portal.SystemException;
131
132 public java.util.List findAll() throws com.liferay.portal.SystemException;
133
134 public java.util.List findAll(int begin, int end)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List findAll(int begin, int end,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException;
140
141 public void removeByCompanyId(long companyId)
142 throws com.liferay.portal.SystemException;
143
144 public void removeByName(java.lang.String name)
145 throws com.liferay.portal.SystemException;
146
147 public void removeByC_N_S(long companyId, java.lang.String name, int scope)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portal.NoSuchResourceCodeException;
150
151 public void removeAll() throws com.liferay.portal.SystemException;
152
153 public int countByCompanyId(long companyId)
154 throws com.liferay.portal.SystemException;
155
156 public int countByName(java.lang.String name)
157 throws com.liferay.portal.SystemException;
158
159 public int countByC_N_S(long companyId, java.lang.String name, int scope)
160 throws com.liferay.portal.SystemException;
161
162 public int countAll() throws com.liferay.portal.SystemException;
163 }