1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class ReleaseUtil {
32 public static void cacheResult(com.liferay.portal.model.Release release) {
33 getPersistence().cacheResult(release);
34 }
35
36 public static void cacheResult(
37 java.util.List<com.liferay.portal.model.Release> releases) {
38 getPersistence().cacheResult(releases);
39 }
40
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45 public static com.liferay.portal.model.Release create(long releaseId) {
46 return getPersistence().create(releaseId);
47 }
48
49 public static com.liferay.portal.model.Release remove(long releaseId)
50 throws com.liferay.portal.NoSuchReleaseException,
51 com.liferay.portal.SystemException {
52 return getPersistence().remove(releaseId);
53 }
54
55 public static com.liferay.portal.model.Release remove(
56 com.liferay.portal.model.Release release)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(release);
59 }
60
61
64 public static com.liferay.portal.model.Release update(
65 com.liferay.portal.model.Release release)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(release);
68 }
69
70
83 public static com.liferay.portal.model.Release update(
84 com.liferay.portal.model.Release release, boolean merge)
85 throws com.liferay.portal.SystemException {
86 return getPersistence().update(release, merge);
87 }
88
89 public static com.liferay.portal.model.Release updateImpl(
90 com.liferay.portal.model.Release release, boolean merge)
91 throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(release, merge);
93 }
94
95 public static com.liferay.portal.model.Release findByPrimaryKey(
96 long releaseId)
97 throws com.liferay.portal.NoSuchReleaseException,
98 com.liferay.portal.SystemException {
99 return getPersistence().findByPrimaryKey(releaseId);
100 }
101
102 public static com.liferay.portal.model.Release fetchByPrimaryKey(
103 long releaseId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(releaseId);
105 }
106
107 public static java.util.List<Object> findWithDynamicQuery(
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109 throws com.liferay.portal.SystemException {
110 return getPersistence().findWithDynamicQuery(dynamicQuery);
111 }
112
113 public static java.util.List<Object> findWithDynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.SystemException {
116 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
117 }
118
119 public static java.util.List<com.liferay.portal.model.Release> findAll()
120 throws com.liferay.portal.SystemException {
121 return getPersistence().findAll();
122 }
123
124 public static java.util.List<com.liferay.portal.model.Release> findAll(
125 int start, int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findAll(start, end);
127 }
128
129 public static java.util.List<com.liferay.portal.model.Release> findAll(
130 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findAll(start, end, obc);
133 }
134
135 public static void removeAll() throws com.liferay.portal.SystemException {
136 getPersistence().removeAll();
137 }
138
139 public static int countAll() throws com.liferay.portal.SystemException {
140 return getPersistence().countAll();
141 }
142
143 public static ReleasePersistence getPersistence() {
144 return _persistence;
145 }
146
147 public void setPersistence(ReleasePersistence persistence) {
148 _persistence = persistence;
149 }
150
151 private static ReleasePersistence _persistence;
152 }