1
22
23 package com.liferay.portlet.tags.service.persistence;
24
25
31 public class TagsSourceUtil {
32 public static com.liferay.portlet.tags.model.TagsSource create(
33 long sourceId) {
34 return getPersistence().create(sourceId);
35 }
36
37 public static com.liferay.portlet.tags.model.TagsSource remove(
38 long sourceId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.tags.NoSuchSourceException {
41 return getPersistence().remove(sourceId);
42 }
43
44 public static com.liferay.portlet.tags.model.TagsSource remove(
45 com.liferay.portlet.tags.model.TagsSource tagsSource)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(tagsSource);
48 }
49
50 public static com.liferay.portlet.tags.model.TagsSource update(
51 com.liferay.portlet.tags.model.TagsSource tagsSource)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(tagsSource);
54 }
55
56 public static com.liferay.portlet.tags.model.TagsSource update(
57 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
58 throws com.liferay.portal.SystemException {
59 return getPersistence().update(tagsSource, merge);
60 }
61
62 public static com.liferay.portlet.tags.model.TagsSource updateImpl(
63 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(tagsSource, merge);
66 }
67
68 public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
69 long sourceId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.tags.NoSuchSourceException {
72 return getPersistence().findByPrimaryKey(sourceId);
73 }
74
75 public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
76 long sourceId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(sourceId);
78 }
79
80 public static java.util.List findWithDynamicQuery(
81 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().findWithDynamicQuery(queryInitializer);
84 }
85
86 public static java.util.List findWithDynamicQuery(
87 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
88 int begin, int end) throws com.liferay.portal.SystemException {
89 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
90 end);
91 }
92
93 public static java.util.List findAll()
94 throws com.liferay.portal.SystemException {
95 return getPersistence().findAll();
96 }
97
98 public static java.util.List findAll(int begin, int end)
99 throws com.liferay.portal.SystemException {
100 return getPersistence().findAll(begin, end);
101 }
102
103 public static java.util.List findAll(int begin, int end,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().findAll(begin, end, obc);
107 }
108
109 public static void removeAll() throws com.liferay.portal.SystemException {
110 getPersistence().removeAll();
111 }
112
113 public static int countAll() throws com.liferay.portal.SystemException {
114 return getPersistence().countAll();
115 }
116
117 public static TagsSourcePersistence getPersistence() {
118 return _getUtil()._persistence;
119 }
120
121 public void setPersistence(TagsSourcePersistence persistence) {
122 _persistence = persistence;
123 }
124
125 private static TagsSourceUtil _getUtil() {
126 if (_util == null) {
127 _util = (TagsSourceUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
128 }
129
130 return _util;
131 }
132
133 private static final String _UTIL = TagsSourceUtil.class.getName();
134 private static TagsSourceUtil _util;
135 private TagsSourcePersistence _persistence;
136 }