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="PasswordTrackerUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PasswordTrackerUtil {
030: public static com.liferay.portal.model.PasswordTracker create(
031: long passwordTrackerId) {
032: return getPersistence().create(passwordTrackerId);
033: }
034:
035: public static com.liferay.portal.model.PasswordTracker remove(
036: long passwordTrackerId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchPasswordTrackerException {
039: return getPersistence().remove(passwordTrackerId);
040: }
041:
042: public static com.liferay.portal.model.PasswordTracker remove(
043: com.liferay.portal.model.PasswordTracker passwordTracker)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(passwordTracker);
046: }
047:
048: public static com.liferay.portal.model.PasswordTracker update(
049: com.liferay.portal.model.PasswordTracker passwordTracker)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(passwordTracker);
052: }
053:
054: public static com.liferay.portal.model.PasswordTracker update(
055: com.liferay.portal.model.PasswordTracker passwordTracker,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(passwordTracker, merge);
058: }
059:
060: public static com.liferay.portal.model.PasswordTracker updateImpl(
061: com.liferay.portal.model.PasswordTracker passwordTracker,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(passwordTracker, merge);
064: }
065:
066: public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
067: long passwordTrackerId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchPasswordTrackerException {
070: return getPersistence().findByPrimaryKey(passwordTrackerId);
071: }
072:
073: public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
074: long passwordTrackerId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(passwordTrackerId);
077: }
078:
079: public static java.util.List findByUserId(long userId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByUserId(userId);
082: }
083:
084: public static java.util.List findByUserId(long userId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByUserId(userId, begin, end);
087: }
088:
089: public static java.util.List findByUserId(long userId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByUserId(userId, begin, end, obc);
094: }
095:
096: public static com.liferay.portal.model.PasswordTracker findByUserId_First(
097: long userId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.NoSuchPasswordTrackerException {
101: return getPersistence().findByUserId_First(userId, obc);
102: }
103:
104: public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
105: long userId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchPasswordTrackerException {
109: return getPersistence().findByUserId_Last(userId, obc);
110: }
111:
112: public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
113: long passwordTrackerId, long userId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portal.NoSuchPasswordTrackerException {
117: return getPersistence().findByUserId_PrevAndNext(
118: passwordTrackerId, userId, obc);
119: }
120:
121: public static java.util.List findWithDynamicQuery(
122: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
123: throws com.liferay.portal.SystemException {
124: return getPersistence().findWithDynamicQuery(queryInitializer);
125: }
126:
127: public static java.util.List findWithDynamicQuery(
128: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
129: int begin, int end)
130: throws com.liferay.portal.SystemException {
131: return getPersistence().findWithDynamicQuery(queryInitializer,
132: begin, end);
133: }
134:
135: public static java.util.List findAll()
136: throws com.liferay.portal.SystemException {
137: return getPersistence().findAll();
138: }
139:
140: public static java.util.List findAll(int begin, int end)
141: throws com.liferay.portal.SystemException {
142: return getPersistence().findAll(begin, end);
143: }
144:
145: public static java.util.List findAll(int begin, int end,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException {
148: return getPersistence().findAll(begin, end, obc);
149: }
150:
151: public static void removeByUserId(long userId)
152: throws com.liferay.portal.SystemException {
153: getPersistence().removeByUserId(userId);
154: }
155:
156: public static void removeAll()
157: throws com.liferay.portal.SystemException {
158: getPersistence().removeAll();
159: }
160:
161: public static int countByUserId(long userId)
162: throws com.liferay.portal.SystemException {
163: return getPersistence().countByUserId(userId);
164: }
165:
166: public static int countAll()
167: throws com.liferay.portal.SystemException {
168: return getPersistence().countAll();
169: }
170:
171: public static PasswordTrackerPersistence getPersistence() {
172: return _getUtil()._persistence;
173: }
174:
175: public void setPersistence(PasswordTrackerPersistence persistence) {
176: _persistence = persistence;
177: }
178:
179: private static PasswordTrackerUtil _getUtil() {
180: if (_util == null) {
181: _util = (PasswordTrackerUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
182: .locate(_UTIL);
183: }
184:
185: return _util;
186: }
187:
188: private static final String _UTIL = PasswordTrackerUtil.class
189: .getName();
190: private static PasswordTrackerUtil _util;
191: private PasswordTrackerPersistence _persistence;
192: }
|