1
14
15 package com.liferay.portlet.tags.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.tags.model.TagsSource;
23
24 import java.util.List;
25
26
39 public class TagsSourceUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(TagsSource tagsSource) {
51 getPersistence().clearCache(tagsSource);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static TagsSource remove(TagsSource tagsSource)
82 throws SystemException {
83 return getPersistence().remove(tagsSource);
84 }
85
86
89 public static TagsSource update(TagsSource tagsSource, boolean merge)
90 throws SystemException {
91 return getPersistence().update(tagsSource, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.tags.model.TagsSource tagsSource) {
96 getPersistence().cacheResult(tagsSource);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.tags.model.TagsSource> tagsSources) {
101 getPersistence().cacheResult(tagsSources);
102 }
103
104 public static com.liferay.portlet.tags.model.TagsSource create(
105 long sourceId) {
106 return getPersistence().create(sourceId);
107 }
108
109 public static com.liferay.portlet.tags.model.TagsSource remove(
110 long sourceId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.tags.NoSuchSourceException {
113 return getPersistence().remove(sourceId);
114 }
115
116
119 public static com.liferay.portlet.tags.model.TagsSource update(
120 com.liferay.portlet.tags.model.TagsSource tagsSource)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(tagsSource);
123 }
124
125 public static com.liferay.portlet.tags.model.TagsSource updateImpl(
126 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
127 throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(tagsSource, merge);
129 }
130
131 public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
132 long sourceId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.tags.NoSuchSourceException {
135 return getPersistence().findByPrimaryKey(sourceId);
136 }
137
138 public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
139 long sourceId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(sourceId);
141 }
142
143 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findAll();
146 }
147
148 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
149 int start, int end) throws com.liferay.portal.SystemException {
150 return getPersistence().findAll(start, end);
151 }
152
153 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
154 int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(start, end, orderByComparator);
158 }
159
160 public static void removeAll() throws com.liferay.portal.SystemException {
161 getPersistence().removeAll();
162 }
163
164 public static int countAll() throws com.liferay.portal.SystemException {
165 return getPersistence().countAll();
166 }
167
168 public static TagsSourcePersistence getPersistence() {
169 if (_persistence == null) {
170 _persistence = (TagsSourcePersistence)PortalBeanLocatorUtil.locate(TagsSourcePersistence.class.getName());
171
172 ReferenceRegistry.registerReference(TagsSourceUtil.class,
173 "_persistence");
174 }
175
176 return _persistence;
177 }
178
179 public void setPersistence(TagsSourcePersistence persistence) {
180 _persistence = persistence;
181
182 ReferenceRegistry.registerReference(TagsSourceUtil.class, "_persistence");
183 }
184
185 private static TagsSourcePersistence _persistence;
186 }