001    /**
002     * Copyright (c) 2000-2013 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.portlet.dynamicdatamapping.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface DDMTemplateFinder {
024            public int countByKeywords(long companyId, long groupId, long classNameId,
025                    long classPK, java.lang.String keywords, java.lang.String type,
026                    java.lang.String mode)
027                    throws com.liferay.portal.kernel.exception.SystemException;
028    
029            public int countByKeywords(long companyId, long[] groupIds,
030                    long[] classNameIds, long[] classPKs, java.lang.String keywords,
031                    java.lang.String type, java.lang.String mode)
032                    throws com.liferay.portal.kernel.exception.SystemException;
033    
034            public int countByG_SC(long groupId, long structureClassNameId)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int countByC_G_C_C_N_D_T_M_L(long companyId, long groupId,
038                    long classNameId, long classPK, java.lang.String name,
039                    java.lang.String description, java.lang.String type,
040                    java.lang.String mode, java.lang.String language, boolean andOperator)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public int countByC_G_C_C_N_D_T_M_L(long companyId, long groupId,
044                    long classNameId, long classPK, java.lang.String[] names,
045                    java.lang.String[] descriptions, java.lang.String[] types,
046                    java.lang.String[] modes, java.lang.String[] languages,
047                    boolean andOperator)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public int countByC_G_C_C_N_D_T_M_L(long companyId, long[] groupIds,
051                    long[] classNameIds, long[] classPKs, java.lang.String name,
052                    java.lang.String description, java.lang.String type,
053                    java.lang.String mode, java.lang.String language, boolean andOperator)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public int countByC_G_C_C_N_D_T_M_L(long companyId, long[] groupIds,
057                    long[] classNameIds, long[] classPKs, java.lang.String[] names,
058                    java.lang.String[] descriptions, java.lang.String[] types,
059                    java.lang.String[] modes, java.lang.String[] languages,
060                    boolean andOperator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public int filterCountByKeywords(long companyId, long groupId,
064                    long classNameId, long classPK, java.lang.String keywords,
065                    java.lang.String type, java.lang.String mode)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public int filterCountByKeywords(long companyId, long[] groupIds,
069                    long[] classNameIds, long[] classPKs, java.lang.String keywords,
070                    java.lang.String type, java.lang.String mode)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public int filterCountByC_G_C_C_N_D_T_M_L(long companyId, long groupId,
074                    long classNameId, long classPK, java.lang.String name,
075                    java.lang.String description, java.lang.String type,
076                    java.lang.String mode, java.lang.String language, boolean andOperator)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public int filterCountByC_G_C_C_N_D_T_M_L(long companyId, long groupId,
080                    long classNameId, long classPK, java.lang.String[] names,
081                    java.lang.String[] descriptions, java.lang.String[] types,
082                    java.lang.String[] modes, java.lang.String[] languages,
083                    boolean andOperator)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public int filterCountByC_G_C_C_N_D_T_M_L(long companyId, long[] groupIds,
087                    long[] classNameIds, long[] classPKs, java.lang.String name,
088                    java.lang.String description, java.lang.String type,
089                    java.lang.String mode, java.lang.String language, boolean andOperator)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public int filterCountByC_G_C_C_N_D_T_M_L(long companyId, long[] groupIds,
093                    long[] classNameIds, long[] classPKs, java.lang.String[] names,
094                    java.lang.String[] descriptions, java.lang.String[] types,
095                    java.lang.String[] modes, java.lang.String[] languages,
096                    boolean andOperator)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public int filterCountByG_SC(long groupId, long structureClassNameId)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public int filterCountByG_SC(long[] groupIds, long structureClassNameId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByKeywords(
106                    long companyId, long groupId, long classNameId, long classPK,
107                    java.lang.String keywords, java.lang.String type,
108                    java.lang.String mode, int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByKeywords(
113                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
114                    java.lang.String keywords, java.lang.String type,
115                    java.lang.String mode, int start, int end,
116                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_C_C_N_D_T_M_L(
120                    long companyId, long groupId, long classNameId, long classPK,
121                    java.lang.String name, java.lang.String description,
122                    java.lang.String type, java.lang.String mode,
123                    java.lang.String language, boolean andOperator, int start, int end,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_C_C_N_D_T_M_L(
128                    long companyId, long groupId, long classNameId, long classPK,
129                    java.lang.String[] names, java.lang.String[] descriptions,
130                    java.lang.String[] types, java.lang.String[] modes,
131                    java.lang.String[] languages, boolean andOperator, int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_C_C_N_D_T_M_L(
136                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
137                    java.lang.String name, java.lang.String description,
138                    java.lang.String type, java.lang.String mode,
139                    java.lang.String language, boolean andOperator, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByC_G_C_C_N_D_T_M_L(
144                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
145                    java.lang.String[] names, java.lang.String[] descriptions,
146                    java.lang.String[] types, java.lang.String[] modes,
147                    java.lang.String[] languages, boolean andOperator, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_SC(
152                    long groupId, long structureClassNameId, int start, int end,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_SC(
157                    long[] groupIds, long structureClassNameId, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByKeywords(
162                    long companyId, long groupId, long classNameId, long classPK,
163                    java.lang.String keywords, java.lang.String type,
164                    java.lang.String mode, int start, int end,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByKeywords(
169                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
170                    java.lang.String keywords, java.lang.String type,
171                    java.lang.String mode, int start, int end,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_SC(
176                    long groupId, long structureClassNameId, int start, int end,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_SC(
181                    long[] groupIds, long structureClassNameId, int start, int end,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_C_C_N_D_T_M_L(
186                    long companyId, long groupId, long classNameId, long classPK,
187                    java.lang.String name, java.lang.String description,
188                    java.lang.String type, java.lang.String mode,
189                    java.lang.String language, boolean andOperator, int start, int end,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_C_C_N_D_T_M_L(
194                    long companyId, long groupId, long classNameId, long classPK,
195                    java.lang.String[] names, java.lang.String[] descriptions,
196                    java.lang.String[] types, java.lang.String[] modes,
197                    java.lang.String[] languages, boolean andOperator, int start, int end,
198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_C_C_N_D_T_M_L(
202                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
203                    java.lang.String name, java.lang.String description,
204                    java.lang.String type, java.lang.String mode,
205                    java.lang.String language, boolean andOperator, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_G_C_C_N_D_T_M_L(
210                    long companyId, long[] groupIds, long[] classNameIds, long[] classPKs,
211                    java.lang.String[] names, java.lang.String[] descriptions,
212                    java.lang.String[] types, java.lang.String[] modes,
213                    java.lang.String[] languages, boolean andOperator, int start, int end,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    }