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