1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  import com.liferay.portal.model.Lock;
26  
27  /**
28   * <a href="LockPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       LockPersistenceImpl
37   * @see       LockUtil
38   * @generated
39   */
40  public interface LockPersistence extends BasePersistence<Lock> {
41      public void cacheResult(com.liferay.portal.model.Lock lock);
42  
43      public void cacheResult(java.util.List<com.liferay.portal.model.Lock> locks);
44  
45      public com.liferay.portal.model.Lock create(long lockId);
46  
47      public com.liferay.portal.model.Lock remove(long lockId)
48          throws com.liferay.portal.NoSuchLockException,
49              com.liferay.portal.SystemException;
50  
51      /**
52       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
53       */
54      public com.liferay.portal.model.Lock update(
55          com.liferay.portal.model.Lock lock)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portal.model.Lock updateImpl(
59          com.liferay.portal.model.Lock lock, boolean merge)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.Lock findByPrimaryKey(long lockId)
63          throws com.liferay.portal.NoSuchLockException,
64              com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.Lock fetchByPrimaryKey(long lockId)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
70          java.lang.String uuid) throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
73          java.lang.String uuid, int start, int end)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
77          java.lang.String uuid, int start, int end,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.Lock findByUuid_First(
82          java.lang.String uuid,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.NoSuchLockException,
85              com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.Lock findByUuid_Last(
88          java.lang.String uuid,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.NoSuchLockException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.Lock[] findByUuid_PrevAndNext(long lockId,
94          java.lang.String uuid,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.NoSuchLockException,
97              com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
100         java.util.Date expirationDate)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
104         java.util.Date expirationDate, int start, int end)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
108         java.util.Date expirationDate, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.Lock findByExpirationDate_First(
113         java.util.Date expirationDate,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.NoSuchLockException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portal.model.Lock findByExpirationDate_Last(
119         java.util.Date expirationDate,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.NoSuchLockException,
122             com.liferay.portal.SystemException;
123 
124     public com.liferay.portal.model.Lock[] findByExpirationDate_PrevAndNext(
125         long lockId, java.util.Date expirationDate,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.NoSuchLockException,
128             com.liferay.portal.SystemException;
129 
130     public com.liferay.portal.model.Lock findByC_K(java.lang.String className,
131         java.lang.String key)
132         throws com.liferay.portal.NoSuchLockException,
133             com.liferay.portal.SystemException;
134 
135     public com.liferay.portal.model.Lock fetchByC_K(
136         java.lang.String className, java.lang.String key)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portal.model.Lock fetchByC_K(
140         java.lang.String className, java.lang.String key,
141         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portal.model.Lock> findAll()
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
147         int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
150         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByUuid(java.lang.String uuid)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeByExpirationDate(java.util.Date expirationDate)
157         throws com.liferay.portal.SystemException;
158 
159     public void removeByC_K(java.lang.String className, java.lang.String key)
160         throws com.liferay.portal.NoSuchLockException,
161             com.liferay.portal.SystemException;
162 
163     public void removeAll() throws com.liferay.portal.SystemException;
164 
165     public int countByUuid(java.lang.String uuid)
166         throws com.liferay.portal.SystemException;
167 
168     public int countByExpirationDate(java.util.Date expirationDate)
169         throws com.liferay.portal.SystemException;
170 
171     public int countByC_K(java.lang.String className, java.lang.String key)
172         throws com.liferay.portal.SystemException;
173 
174     public int countAll() throws com.liferay.portal.SystemException;
175 }