1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Lock;
18  
19  /**
20   * <a href="LockPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       LockPersistenceImpl
29   * @see       LockUtil
30   * @generated
31   */
32  public interface LockPersistence extends BasePersistence<Lock> {
33      public void cacheResult(com.liferay.portal.model.Lock lock);
34  
35      public void cacheResult(java.util.List<com.liferay.portal.model.Lock> locks);
36  
37      public com.liferay.portal.model.Lock create(long lockId);
38  
39      public com.liferay.portal.model.Lock remove(long lockId)
40          throws com.liferay.portal.NoSuchLockException,
41              com.liferay.portal.kernel.exception.SystemException;
42  
43      public com.liferay.portal.model.Lock updateImpl(
44          com.liferay.portal.model.Lock lock, boolean merge)
45          throws com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.Lock findByPrimaryKey(long lockId)
48          throws com.liferay.portal.NoSuchLockException,
49              com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.Lock fetchByPrimaryKey(long lockId)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
55          java.lang.String uuid)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
59          java.lang.String uuid, int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Lock> findByUuid(
63          java.lang.String uuid, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public com.liferay.portal.model.Lock findByUuid_First(
68          java.lang.String uuid,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchLockException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Lock findByUuid_Last(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchLockException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.Lock[] findByUuid_PrevAndNext(long lockId,
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchLockException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
86          java.util.Date expirationDate)
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
90          java.util.Date expirationDate, int start, int end)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.Lock> findByExpirationDate(
94          java.util.Date expirationDate, int start, int end,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.Lock findByExpirationDate_First(
99          java.util.Date expirationDate,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.NoSuchLockException,
102             com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.Lock findByExpirationDate_Last(
105         java.util.Date expirationDate,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.NoSuchLockException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portal.model.Lock[] findByExpirationDate_PrevAndNext(
111         long lockId, java.util.Date expirationDate,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.NoSuchLockException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portal.model.Lock findByC_K(java.lang.String className,
117         java.lang.String key)
118         throws com.liferay.portal.NoSuchLockException,
119             com.liferay.portal.kernel.exception.SystemException;
120 
121     public com.liferay.portal.model.Lock fetchByC_K(
122         java.lang.String className, java.lang.String key)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public com.liferay.portal.model.Lock fetchByC_K(
126         java.lang.String className, java.lang.String key,
127         boolean retrieveFromCache)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.Lock> findAll()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
134         int end) throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
137         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void removeByUuid(java.lang.String uuid)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public void removeByExpirationDate(java.util.Date expirationDate)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public void removeByC_K(java.lang.String className, java.lang.String key)
147         throws com.liferay.portal.NoSuchLockException,
148             com.liferay.portal.kernel.exception.SystemException;
149 
150     public void removeAll()
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public int countByUuid(java.lang.String uuid)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public int countByExpirationDate(java.util.Date expirationDate)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public int countByC_K(java.lang.String className, java.lang.String key)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public int countAll()
163         throws com.liferay.portal.kernel.exception.SystemException;
164 }