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