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.WorkflowDefinitionLink;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       WorkflowDefinitionLinkPersistenceImpl
022     * @see       WorkflowDefinitionLinkUtil
023     * @generated
024     */
025    public interface WorkflowDefinitionLinkPersistence extends BasePersistence<WorkflowDefinitionLink> {
026            public void cacheResult(
027                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink);
028    
029            public void cacheResult(
030                    java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks);
031    
032            public com.liferay.portal.model.WorkflowDefinitionLink create(
033                    long workflowDefinitionLinkId);
034    
035            public com.liferay.portal.model.WorkflowDefinitionLink remove(
036                    long workflowDefinitionLinkId)
037                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
038                            com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
041                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
046                    long workflowDefinitionLinkId)
047                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            public com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
051                    long workflowDefinitionLinkId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
055                    long companyId)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
059                    long companyId, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
063                    long companyId, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
068                    long companyId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
074                    long companyId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
080                    long workflowDefinitionLinkId, long companyId,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
086                    long groupId, long companyId, long classNameId)
087                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
088                            com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
091                    long groupId, long companyId, long classNameId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
095                    long groupId, long companyId, long classNameId,
096                    boolean retrieveFromCache)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
100                    long companyId, java.lang.String workflowDefinitionName,
101                    int workflowDefinitionVersion)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
105                    long companyId, java.lang.String workflowDefinitionName,
106                    int workflowDefinitionVersion, int start, int end)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
110                    long companyId, java.lang.String workflowDefinitionName,
111                    int workflowDefinitionVersion, int start, int end,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
116                    long companyId, java.lang.String workflowDefinitionName,
117                    int workflowDefinitionVersion,
118                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
123                    long companyId, java.lang.String workflowDefinitionName,
124                    int workflowDefinitionVersion,
125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
130                    long workflowDefinitionLinkId, long companyId,
131                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
140                    int start, int end)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
144                    int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public void removeByCompanyId(long companyId)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public void removeByG_C_C(long groupId, long companyId, long classNameId)
152                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            public void removeByC_W_W(long companyId,
156                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void removeAll()
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countByCompanyId(long companyId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public int countByG_C_C(long groupId, long companyId, long classNameId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public int countByC_W_W(long companyId,
169                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            public int countAll()
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    }