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.ResourceAction;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ResourceActionPersistenceImpl
022     * @see       ResourceActionUtil
023     * @generated
024     */
025    public interface ResourceActionPersistence extends BasePersistence<ResourceAction> {
026            public void cacheResult(
027                    com.liferay.portal.model.ResourceAction resourceAction);
028    
029            public void cacheResult(
030                    java.util.List<com.liferay.portal.model.ResourceAction> resourceActions);
031    
032            public com.liferay.portal.model.ResourceAction create(long resourceActionId);
033    
034            public com.liferay.portal.model.ResourceAction remove(long resourceActionId)
035                    throws com.liferay.portal.NoSuchResourceActionException,
036                            com.liferay.portal.kernel.exception.SystemException;
037    
038            public com.liferay.portal.model.ResourceAction updateImpl(
039                    com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
040                    throws com.liferay.portal.kernel.exception.SystemException;
041    
042            public com.liferay.portal.model.ResourceAction findByPrimaryKey(
043                    long resourceActionId)
044                    throws com.liferay.portal.NoSuchResourceActionException,
045                            com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.ResourceAction fetchByPrimaryKey(
048                    long resourceActionId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
052                    java.lang.String name)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
056                    java.lang.String name, int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portal.model.ResourceAction> findByName(
060                    java.lang.String name, int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portal.model.ResourceAction findByName_First(
065                    java.lang.String name,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.NoSuchResourceActionException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public com.liferay.portal.model.ResourceAction findByName_Last(
071                    java.lang.String name,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.NoSuchResourceActionException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.ResourceAction[] findByName_PrevAndNext(
077                    long resourceActionId, java.lang.String name,
078                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
079                    throws com.liferay.portal.NoSuchResourceActionException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            public com.liferay.portal.model.ResourceAction findByN_A(
083                    java.lang.String name, java.lang.String actionId)
084                    throws com.liferay.portal.NoSuchResourceActionException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            public com.liferay.portal.model.ResourceAction fetchByN_A(
088                    java.lang.String name, java.lang.String actionId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.model.ResourceAction fetchByN_A(
092                    java.lang.String name, java.lang.String actionId,
093                    boolean retrieveFromCache)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public java.util.List<com.liferay.portal.model.ResourceAction> findAll()
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
100                    int start, int end)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portal.model.ResourceAction> findAll(
104                    int start, int end,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public void removeByName(java.lang.String name)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public void removeByN_A(java.lang.String name, java.lang.String actionId)
112                    throws com.liferay.portal.NoSuchResourceActionException,
113                            com.liferay.portal.kernel.exception.SystemException;
114    
115            public void removeAll()
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public int countByName(java.lang.String name)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public int countByN_A(java.lang.String name, java.lang.String actionId)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public int countAll()
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    }