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
53 public static com.liferay.portlet.tags.model.TagsSource update(
54 com.liferay.portlet.tags.model.TagsSource tagsSource)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(tagsSource);
57 }
58
59
72 public static com.liferay.portlet.tags.model.TagsSource update(
73 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(tagsSource, merge);
76 }
77
78 public static com.liferay.portlet.tags.model.TagsSource updateImpl(
79 com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(tagsSource, merge);
82 }
83
84 public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
85 long sourceId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.tags.NoSuchSourceException {
88 return getPersistence().findByPrimaryKey(sourceId);
89 }
90
91 public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
92 long sourceId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(sourceId);
94 }
95
96 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findWithDynamicQuery(
97 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findWithDynamicQuery(queryInitializer);
100 }
101
102 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findWithDynamicQuery(
103 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
104 int begin, int end) throws com.liferay.portal.SystemException {
105 return getPersistence()
106 .findWithDynamicQuery(queryInitializer, begin, end);
107 }
108
109 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findAll();
112 }
113
114 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
115 int begin, int end) throws com.liferay.portal.SystemException {
116 return getPersistence().findAll(begin, end);
117 }
118
119 public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
120 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findAll(begin, end, obc);
123 }
124
125 public static void removeAll() throws com.liferay.portal.SystemException {
126 getPersistence().removeAll();
127 }
128
129 public static int countAll() throws com.liferay.portal.SystemException {
130 return getPersistence().countAll();
131 }
132
133 public static TagsSourcePersistence getPersistence() {
134 return _getUtil()._persistence;
135 }
136
137 public void setPersistence(TagsSourcePersistence persistence) {
138 _persistence = persistence;
139 }
140
141 private static TagsSourceUtil _getUtil() {
142 if (_util == null) {
143 _util = (TagsSourceUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
144 }
145
146 return _util;
147 }
148
149 private static final String _UTIL = TagsSourceUtil.class.getName();
150 private static TagsSourceUtil _util;
151 private TagsSourcePersistence _persistence;
152 }