001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="PasswordPolicyRelUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PasswordPolicyRelUtil {
030: public static com.liferay.portal.model.PasswordPolicyRel create(
031: long passwordPolicyRelId) {
032: return getPersistence().create(passwordPolicyRelId);
033: }
034:
035: public static com.liferay.portal.model.PasswordPolicyRel remove(
036: long passwordPolicyRelId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchPasswordPolicyRelException {
039: return getPersistence().remove(passwordPolicyRelId);
040: }
041:
042: public static com.liferay.portal.model.PasswordPolicyRel remove(
043: com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(passwordPolicyRel);
046: }
047:
048: public static com.liferay.portal.model.PasswordPolicyRel update(
049: com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(passwordPolicyRel);
052: }
053:
054: public static com.liferay.portal.model.PasswordPolicyRel update(
055: com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(passwordPolicyRel, merge);
058: }
059:
060: public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
061: com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(passwordPolicyRel, merge);
064: }
065:
066: public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
067: long passwordPolicyRelId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchPasswordPolicyRelException {
070: return getPersistence().findByPrimaryKey(passwordPolicyRelId);
071: }
072:
073: public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
074: long passwordPolicyRelId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
077: }
078:
079: public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
080: long classNameId, long classPK)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portal.NoSuchPasswordPolicyRelException {
083: return getPersistence().findByC_C(classNameId, classPK);
084: }
085:
086: public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
087: long classNameId, long classPK)
088: throws com.liferay.portal.SystemException {
089: return getPersistence().fetchByC_C(classNameId, classPK);
090: }
091:
092: public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
093: long passwordPolicyId, long classNameId, long classPK)
094: throws com.liferay.portal.SystemException,
095: com.liferay.portal.NoSuchPasswordPolicyRelException {
096: return getPersistence().findByP_C_C(passwordPolicyId,
097: classNameId, classPK);
098: }
099:
100: public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
101: long passwordPolicyId, long classNameId, long classPK)
102: throws com.liferay.portal.SystemException {
103: return getPersistence().fetchByP_C_C(passwordPolicyId,
104: classNameId, classPK);
105: }
106:
107: public static java.util.List findWithDynamicQuery(
108: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
109: throws com.liferay.portal.SystemException {
110: return getPersistence().findWithDynamicQuery(queryInitializer);
111: }
112:
113: public static java.util.List findWithDynamicQuery(
114: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
115: int begin, int end)
116: throws com.liferay.portal.SystemException {
117: return getPersistence().findWithDynamicQuery(queryInitializer,
118: begin, end);
119: }
120:
121: public static java.util.List findAll()
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findAll();
124: }
125:
126: public static java.util.List findAll(int begin, int end)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().findAll(begin, end);
129: }
130:
131: public static java.util.List findAll(int begin, int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findAll(begin, end, obc);
135: }
136:
137: public static void removeByC_C(long classNameId, long classPK)
138: throws com.liferay.portal.SystemException,
139: com.liferay.portal.NoSuchPasswordPolicyRelException {
140: getPersistence().removeByC_C(classNameId, classPK);
141: }
142:
143: public static void removeByP_C_C(long passwordPolicyId,
144: long classNameId, long classPK)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.NoSuchPasswordPolicyRelException {
147: getPersistence().removeByP_C_C(passwordPolicyId, classNameId,
148: classPK);
149: }
150:
151: public static void removeAll()
152: throws com.liferay.portal.SystemException {
153: getPersistence().removeAll();
154: }
155:
156: public static int countByC_C(long classNameId, long classPK)
157: throws com.liferay.portal.SystemException {
158: return getPersistence().countByC_C(classNameId, classPK);
159: }
160:
161: public static int countByP_C_C(long passwordPolicyId,
162: long classNameId, long classPK)
163: throws com.liferay.portal.SystemException {
164: return getPersistence().countByP_C_C(passwordPolicyId,
165: classNameId, classPK);
166: }
167:
168: public static int countAll()
169: throws com.liferay.portal.SystemException {
170: return getPersistence().countAll();
171: }
172:
173: public static PasswordPolicyRelPersistence getPersistence() {
174: return _getUtil()._persistence;
175: }
176:
177: public void setPersistence(PasswordPolicyRelPersistence persistence) {
178: _persistence = persistence;
179: }
180:
181: private static PasswordPolicyRelUtil _getUtil() {
182: if (_util == null) {
183: _util = (PasswordPolicyRelUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
184: .locate(_UTIL);
185: }
186:
187: return _util;
188: }
189:
190: private static final String _UTIL = PasswordPolicyRelUtil.class
191: .getName();
192: private static PasswordPolicyRelUtil _util;
193: private PasswordPolicyRelPersistence _persistence;
194: }
|