001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Lock;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       LockPersistenceImpl
022     * @see       LockUtil
023     * @generated
024     */
025    public interface LockPersistence extends BasePersistence<Lock> {
026            public void cacheResult(com.liferay.portal.model.Lock lock);
027    
028            public void cacheResult(java.util.List<com.liferay.portal.model.Lock> locks);
029    
030            public com.liferay.portal.model.Lock create(long lockId);
031    
032            public com.liferay.portal.model.Lock remove(long lockId)
033                    throws com.liferay.portal.NoSuchLockException,
034                            com.liferay.portal.kernel.exception.SystemException;
035    
036            public com.liferay.portal.model.Lock updateImpl(
037                    com.liferay.portal.model.Lock lock, boolean merge)
038                    throws com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portal.model.Lock findByPrimaryKey(long lockId)
041                    throws com.liferay.portal.NoSuchLockException,
042                            com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portal.model.Lock fetchByPrimaryKey(long lockId)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public java.util.List<com.liferay.portal.model.Lock> findByUuid(
048                    java.lang.String uuid)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.Lock> findByUuid(
052                    java.lang.String uuid, int start, int end)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.Lock> findByUuid(
056                    java.lang.String uuid, int start, int end,
057                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public com.liferay.portal.model.Lock findByUuid_First(
061                    java.lang.String uuid,
062                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
063                    throws com.liferay.portal.NoSuchLockException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portal.model.Lock findByUuid_Last(
067                    java.lang.String uuid,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.NoSuchLockException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public com.liferay.portal.model.Lock[] findByUuid_PrevAndNext(long lockId,
073                    java.lang.String uuid,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.NoSuchLockException,
076                            com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portal.model.Lock> findByLtExpirationDate(
079                    java.util.Date expirationDate)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.Lock> findByLtExpirationDate(
083                    java.util.Date expirationDate, int start, int end)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portal.model.Lock> findByLtExpirationDate(
087                    java.util.Date expirationDate, int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.model.Lock findByLtExpirationDate_First(
092                    java.util.Date expirationDate,
093                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
094                    throws com.liferay.portal.NoSuchLockException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portal.model.Lock findByLtExpirationDate_Last(
098                    java.util.Date expirationDate,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchLockException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            public com.liferay.portal.model.Lock[] findByLtExpirationDate_PrevAndNext(
104                    long lockId, java.util.Date expirationDate,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.NoSuchLockException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portal.model.Lock findByC_K(java.lang.String className,
110                    java.lang.String key)
111                    throws com.liferay.portal.NoSuchLockException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public com.liferay.portal.model.Lock fetchByC_K(
115                    java.lang.String className, java.lang.String key)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public com.liferay.portal.model.Lock fetchByC_K(
119                    java.lang.String className, java.lang.String key,
120                    boolean retrieveFromCache)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            public java.util.List<com.liferay.portal.model.Lock> findAll()
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException;
128    
129            public java.util.List<com.liferay.portal.model.Lock> findAll(int start,
130                    int end,
131                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            public void removeByUuid(java.lang.String uuid)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public void removeByLtExpirationDate(java.util.Date expirationDate)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public void removeByC_K(java.lang.String className, java.lang.String key)
141                    throws com.liferay.portal.NoSuchLockException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void removeAll()
145                    throws com.liferay.portal.kernel.exception.SystemException;
146    
147            public int countByUuid(java.lang.String uuid)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            public int countByLtExpirationDate(java.util.Date expirationDate)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            public int countByC_K(java.lang.String className, java.lang.String key)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public int countAll()
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    }