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.Resource;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ResourcePersistenceImpl
022     * @see       ResourceUtil
023     * @generated
024     */
025    public interface ResourcePersistence extends BasePersistence<Resource> {
026            public void cacheResult(com.liferay.portal.model.Resource resource);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Resource> resources);
030    
031            public com.liferay.portal.model.Resource create(long resourceId);
032    
033            public com.liferay.portal.model.Resource remove(long resourceId)
034                    throws com.liferay.portal.NoSuchResourceException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Resource updateImpl(
038                    com.liferay.portal.model.Resource resource, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Resource findByPrimaryKey(long resourceId)
042                    throws com.liferay.portal.NoSuchResourceException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
049                    long codeId) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
052                    long codeId, int start, int end)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
056                    long codeId, 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.Resource findByCodeId_First(long codeId,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.NoSuchResourceException,
063                            com.liferay.portal.kernel.exception.SystemException;
064    
065            public com.liferay.portal.model.Resource findByCodeId_Last(long codeId,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.NoSuchResourceException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public com.liferay.portal.model.Resource[] findByCodeId_PrevAndNext(
071                    long resourceId, long codeId,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.NoSuchResourceException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.Resource findByC_P(long codeId,
077                    java.lang.String primKey)
078                    throws com.liferay.portal.NoSuchResourceException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public com.liferay.portal.model.Resource fetchByC_P(long codeId,
082                    java.lang.String primKey)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public com.liferay.portal.model.Resource fetchByC_P(long codeId,
086                    java.lang.String primKey, boolean retrieveFromCache)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portal.model.Resource> findAll()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.util.List<com.liferay.portal.model.Resource> findAll(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public java.util.List<com.liferay.portal.model.Resource> findAll(
097                    int start, int end,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public void removeByCodeId(long codeId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public void removeByC_P(long codeId, java.lang.String primKey)
105                    throws com.liferay.portal.NoSuchResourceException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public void removeAll()
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public int countByCodeId(long codeId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            public int countByC_P(long codeId, java.lang.String primKey)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public int countAll()
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    }