1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ShardUtil {
40 public static void cacheResult(com.liferay.portal.model.Shard shard) {
41 getPersistence().cacheResult(shard);
42 }
43
44 public static void cacheResult(
45 java.util.List<com.liferay.portal.model.Shard> shards) {
46 getPersistence().cacheResult(shards);
47 }
48
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53 public static com.liferay.portal.model.Shard create(long shardId) {
54 return getPersistence().create(shardId);
55 }
56
57 public static com.liferay.portal.model.Shard remove(long shardId)
58 throws com.liferay.portal.NoSuchShardException,
59 com.liferay.portal.SystemException {
60 return getPersistence().remove(shardId);
61 }
62
63 public static com.liferay.portal.model.Shard remove(
64 com.liferay.portal.model.Shard shard)
65 throws com.liferay.portal.SystemException {
66 return getPersistence().remove(shard);
67 }
68
69
72 public static com.liferay.portal.model.Shard update(
73 com.liferay.portal.model.Shard shard)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(shard);
76 }
77
78
90 public static com.liferay.portal.model.Shard update(
91 com.liferay.portal.model.Shard shard, boolean merge)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().update(shard, merge);
94 }
95
96 public static com.liferay.portal.model.Shard updateImpl(
97 com.liferay.portal.model.Shard shard, boolean merge)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().updateImpl(shard, merge);
100 }
101
102 public static com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
103 throws com.liferay.portal.NoSuchShardException,
104 com.liferay.portal.SystemException {
105 return getPersistence().findByPrimaryKey(shardId);
106 }
107
108 public static com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
109 throws com.liferay.portal.SystemException {
110 return getPersistence().fetchByPrimaryKey(shardId);
111 }
112
113 public static com.liferay.portal.model.Shard findByName(
114 java.lang.String name)
115 throws com.liferay.portal.NoSuchShardException,
116 com.liferay.portal.SystemException {
117 return getPersistence().findByName(name);
118 }
119
120 public static com.liferay.portal.model.Shard fetchByName(
121 java.lang.String name) throws com.liferay.portal.SystemException {
122 return getPersistence().fetchByName(name);
123 }
124
125 public static com.liferay.portal.model.Shard fetchByName(
126 java.lang.String name, boolean retrieveFromCache)
127 throws com.liferay.portal.SystemException {
128 return getPersistence().fetchByName(name, retrieveFromCache);
129 }
130
131 public static com.liferay.portal.model.Shard findByC_C(long classNameId,
132 long classPK)
133 throws com.liferay.portal.NoSuchShardException,
134 com.liferay.portal.SystemException {
135 return getPersistence().findByC_C(classNameId, classPK);
136 }
137
138 public static com.liferay.portal.model.Shard fetchByC_C(long classNameId,
139 long classPK) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByC_C(classNameId, classPK);
141 }
142
143 public static com.liferay.portal.model.Shard fetchByC_C(long classNameId,
144 long classPK, boolean retrieveFromCache)
145 throws com.liferay.portal.SystemException {
146 return getPersistence()
147 .fetchByC_C(classNameId, classPK, retrieveFromCache);
148 }
149
150 public static java.util.List<Object> findWithDynamicQuery(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findWithDynamicQuery(dynamicQuery);
154 }
155
156 public static java.util.List<Object> findWithDynamicQuery(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158 int end) throws com.liferay.portal.SystemException {
159 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
160 }
161
162 public static java.util.List<com.liferay.portal.model.Shard> findAll()
163 throws com.liferay.portal.SystemException {
164 return getPersistence().findAll();
165 }
166
167 public static java.util.List<com.liferay.portal.model.Shard> findAll(
168 int start, int end) throws com.liferay.portal.SystemException {
169 return getPersistence().findAll(start, end);
170 }
171
172 public static java.util.List<com.liferay.portal.model.Shard> findAll(
173 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException {
175 return getPersistence().findAll(start, end, obc);
176 }
177
178 public static void removeByName(java.lang.String name)
179 throws com.liferay.portal.NoSuchShardException,
180 com.liferay.portal.SystemException {
181 getPersistence().removeByName(name);
182 }
183
184 public static void removeByC_C(long classNameId, long classPK)
185 throws com.liferay.portal.NoSuchShardException,
186 com.liferay.portal.SystemException {
187 getPersistence().removeByC_C(classNameId, classPK);
188 }
189
190 public static void removeAll() throws com.liferay.portal.SystemException {
191 getPersistence().removeAll();
192 }
193
194 public static int countByName(java.lang.String name)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().countByName(name);
197 }
198
199 public static int countByC_C(long classNameId, long classPK)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().countByC_C(classNameId, classPK);
202 }
203
204 public static int countAll() throws com.liferay.portal.SystemException {
205 return getPersistence().countAll();
206 }
207
208 public static ShardPersistence getPersistence() {
209 return _persistence;
210 }
211
212 public void setPersistence(ShardPersistence persistence) {
213 _persistence = persistence;
214 }
215
216 private static ShardPersistence _persistence;
217 }