1
22
23 package com.liferay.portlet.tags.service.persistence;
24
25
26
39 public class TagsSourceUtil {
40 public static void cacheResult(
41 com.liferay.portlet.tags.model.TagsSource tagsSource) {
42 getPersistence().cacheResult(tagsSource);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portlet.tags.model.TagsSource> tagsSources) {
47 getPersistence().cacheResult(tagsSources);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portlet.tags.model.TagsSource create(
55 long sourceId) {
56 return getPersistence().create(sourceId);
57 }
58
59 public static com.liferay.portlet.tags.model.TagsSource remove(
60 long sourceId)
61 throws com.liferay.portal.SystemException,
62 com.liferay.portlet.tags.NoSuchSourceException {
63 return getPersistence().remove(sourceId);
64 }
65
66 public static com.liferay.portlet.tags.model.TagsSource remove(
67 com.liferay.portlet.tags.model.TagsSource tagsSource)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(tagsSource);
70 }
71
72
75 public static com.liferay.portlet.tags.model.TagsSource update(
76 com.liferay.portlet.tags.model.TagsSource tagsSource)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(tagsSource);
79 }
80
81
93 public static com.liferay.portlet.tags.model.TagsSource update(
94 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
95 throws com.liferay.portal.SystemException {
96 return getPersistence().update(tagsSource, merge);
97 }
98
99 public static com.liferay.portlet.tags.model.TagsSource updateImpl(
100 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(tagsSource, merge);
103 }
104
105 public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
106 long sourceId)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.tags.NoSuchSourceException {
109 return getPersistence().findByPrimaryKey(sourceId);
110 }
111
112 public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
113 long sourceId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(sourceId);
115 }
116
117 public static java.util.List<Object> findWithDynamicQuery(
118 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findWithDynamicQuery(dynamicQuery);
121 }
122
123 public static java.util.List<Object> findWithDynamicQuery(
124 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125 int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
127 }
128
129 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
130 throws com.liferay.portal.SystemException {
131 return getPersistence().findAll();
132 }
133
134 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
135 int start, int end) throws com.liferay.portal.SystemException {
136 return getPersistence().findAll(start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
140 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findAll(start, end, obc);
143 }
144
145 public static void removeAll() throws com.liferay.portal.SystemException {
146 getPersistence().removeAll();
147 }
148
149 public static int countAll() throws com.liferay.portal.SystemException {
150 return getPersistence().countAll();
151 }
152
153 public static TagsSourcePersistence getPersistence() {
154 return _persistence;
155 }
156
157 public void setPersistence(TagsSourcePersistence persistence) {
158 _persistence = persistence;
159 }
160
161 private static TagsSourcePersistence _persistence;
162 }