1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="UserTrackerPathPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       UserTrackerPathPersistenceImpl
36   * @see       UserTrackerPathUtil
37   * @generated
38   */
39  public interface UserTrackerPathPersistence extends BasePersistence {
40      public void cacheResult(
41          com.liferay.portal.model.UserTrackerPath userTrackerPath);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths);
45  
46      public void clearCache();
47  
48      public com.liferay.portal.model.UserTrackerPath create(
49          long userTrackerPathId);
50  
51      public com.liferay.portal.model.UserTrackerPath remove(
52          long userTrackerPathId)
53          throws com.liferay.portal.NoSuchUserTrackerPathException,
54              com.liferay.portal.SystemException;
55  
56      public com.liferay.portal.model.UserTrackerPath remove(
57          com.liferay.portal.model.UserTrackerPath userTrackerPath)
58          throws com.liferay.portal.SystemException;
59  
60      /**
61       * @deprecated Use {@link #update(UserTrackerPath, boolean merge)}.
62       */
63      public com.liferay.portal.model.UserTrackerPath update(
64          com.liferay.portal.model.UserTrackerPath userTrackerPath)
65          throws com.liferay.portal.SystemException;
66  
67      /**
68       * Add, update, or merge, the entity. This method also calls the model
69       * listeners to trigger the proper events associated with adding, deleting,
70       * or updating an entity.
71       *
72       * @param  userTrackerPath the entity to add, update, or merge
73       * @param  merge boolean value for whether to merge the entity. The default
74       *         value is false. Setting merge to true is more expensive and
75       *         should only be true when userTrackerPath is transient. See
76       *         LEP-5473 for a detailed discussion of this method.
77       * @return the entity that was added, updated, or merged
78       */
79      public com.liferay.portal.model.UserTrackerPath update(
80          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
81          throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.UserTrackerPath updateImpl(
84          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
88          long userTrackerPathId)
89          throws com.liferay.portal.NoSuchUserTrackerPathException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
93          long userTrackerPathId) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
96          long userTrackerId) throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
99          long userTrackerId, int start, int end)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
103         long userTrackerId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
108         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchUserTrackerPathException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
113         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchUserTrackerPathException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
118         long userTrackerPathId, long userTrackerId,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.NoSuchUserTrackerPathException,
121             com.liferay.portal.SystemException;
122 
123     public java.util.List<Object> findWithDynamicQuery(
124         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<Object> findWithDynamicQuery(
128         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129         int end) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
132         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
135         int start, int end) throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
138         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException;
140 
141     public void removeByUserTrackerId(long userTrackerId)
142         throws com.liferay.portal.SystemException;
143 
144     public void removeAll() throws com.liferay.portal.SystemException;
145 
146     public int countByUserTrackerId(long userTrackerId)
147         throws com.liferay.portal.SystemException;
148 
149     public int countAll() throws com.liferay.portal.SystemException;
150 }