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
21 import com.liferay.portlet.tags.model.TagsSource;
22
23 import java.util.List;
24
25
38 public class TagsSourceUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static TagsSource remove(TagsSource tagsSource)
66 throws SystemException {
67 return getPersistence().remove(tagsSource);
68 }
69
70
73 public static TagsSource update(TagsSource tagsSource, boolean merge)
74 throws SystemException {
75 return getPersistence().update(tagsSource, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.tags.model.TagsSource tagsSource) {
80 getPersistence().cacheResult(tagsSource);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.tags.model.TagsSource> tagsSources) {
85 getPersistence().cacheResult(tagsSources);
86 }
87
88 public static com.liferay.portlet.tags.model.TagsSource create(
89 long sourceId) {
90 return getPersistence().create(sourceId);
91 }
92
93 public static com.liferay.portlet.tags.model.TagsSource remove(
94 long sourceId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.tags.NoSuchSourceException {
97 return getPersistence().remove(sourceId);
98 }
99
100
103 public static com.liferay.portlet.tags.model.TagsSource update(
104 com.liferay.portlet.tags.model.TagsSource tagsSource)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(tagsSource);
107 }
108
109 public static com.liferay.portlet.tags.model.TagsSource updateImpl(
110 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(tagsSource, merge);
113 }
114
115 public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
116 long sourceId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.tags.NoSuchSourceException {
119 return getPersistence().findByPrimaryKey(sourceId);
120 }
121
122 public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
123 long sourceId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(sourceId);
125 }
126
127 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
128 throws com.liferay.portal.SystemException {
129 return getPersistence().findAll();
130 }
131
132 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
133 int start, int end) throws com.liferay.portal.SystemException {
134 return getPersistence().findAll(start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
138 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findAll(start, end, obc);
141 }
142
143 public static void removeAll() throws com.liferay.portal.SystemException {
144 getPersistence().removeAll();
145 }
146
147 public static int countAll() throws com.liferay.portal.SystemException {
148 return getPersistence().countAll();
149 }
150
151 public static TagsSourcePersistence getPersistence() {
152 if (_persistence == null) {
153 _persistence = (TagsSourcePersistence)PortalBeanLocatorUtil.locate(TagsSourcePersistence.class.getName());
154 }
155
156 return _persistence;
157 }
158
159 public void setPersistence(TagsSourcePersistence persistence) {
160 _persistence = persistence;
161 }
162
163 private static TagsSourcePersistence _persistence;
164 }