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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     */
025    @ProviderType
026    public class DDMStructureFinderUtil {
027            public static int countByKeywords(long companyId, long[] groupIds,
028                    long[] classNameIds, java.lang.String keywords)
029                    throws com.liferay.portal.kernel.exception.SystemException {
030                    return getFinder()
031                                       .countByKeywords(companyId, groupIds, classNameIds, keywords);
032            }
033    
034            public static int countByC_G_C_N_D_S_T(long companyId, long[] groupIds,
035                    long[] classNameIds, java.lang.String name,
036                    java.lang.String description, java.lang.String storageType, int type,
037                    boolean andOperator)
038                    throws com.liferay.portal.kernel.exception.SystemException {
039                    return getFinder()
040                                       .countByC_G_C_N_D_S_T(companyId, groupIds, classNameIds,
041                            name, description, storageType, type, andOperator);
042            }
043    
044            public static int countByC_G_C_N_D_S_T(long companyId, long[] groupIds,
045                    long[] classNameIds, java.lang.String[] names,
046                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
047                    int type, boolean andOperator)
048                    throws com.liferay.portal.kernel.exception.SystemException {
049                    return getFinder()
050                                       .countByC_G_C_N_D_S_T(companyId, groupIds, classNameIds,
051                            names, descriptions, storageTypes, type, andOperator);
052            }
053    
054            public static int filterCountByKeywords(long companyId, long[] groupIds,
055                    long[] classNameIds, java.lang.String keywords)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    return getFinder()
058                                       .filterCountByKeywords(companyId, groupIds, classNameIds,
059                            keywords);
060            }
061    
062            public static int filterCountByC_G_C_N_D_S_T(long companyId,
063                    long[] groupIds, long[] classNameIds, java.lang.String name,
064                    java.lang.String description, java.lang.String storageType, int type,
065                    boolean andOperator)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return getFinder()
068                                       .filterCountByC_G_C_N_D_S_T(companyId, groupIds,
069                            classNameIds, name, description, storageType, type, andOperator);
070            }
071    
072            public static int filterCountByC_G_C_N_D_S_T(long companyId,
073                    long[] groupIds, long[] classNameIds, java.lang.String[] names,
074                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
075                    int type, boolean andOperator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return getFinder()
078                                       .filterCountByC_G_C_N_D_S_T(companyId, groupIds,
079                            classNameIds, names, descriptions, storageTypes, type, andOperator);
080            }
081    
082            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByKeywords(
083                    long companyId, long[] groupIds, long[] classNameIds,
084                    java.lang.String keywords, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return getFinder()
088                                       .filterFindByKeywords(companyId, groupIds, classNameIds,
089                            keywords, start, end, orderByComparator);
090            }
091    
092            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByC_G_C_N_D_S_T(
093                    long companyId, long[] groupIds, long[] classNameIds,
094                    java.lang.String name, java.lang.String description,
095                    java.lang.String storageType, int type, boolean andOperator, int start,
096                    int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return getFinder()
100                                       .filterFindByC_G_C_N_D_S_T(companyId, groupIds,
101                            classNameIds, name, description, storageType, type, andOperator,
102                            start, end, orderByComparator);
103            }
104    
105            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByC_G_C_N_D_S_T(
106                    long companyId, long[] groupIds, long[] classNameIds,
107                    java.lang.String[] names, java.lang.String[] descriptions,
108                    java.lang.String[] storageTypes, int type, boolean andOperator,
109                    int start, int end,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    return getFinder()
113                                       .filterFindByC_G_C_N_D_S_T(companyId, groupIds,
114                            classNameIds, names, descriptions, storageTypes, type, andOperator,
115                            start, end, orderByComparator);
116            }
117    
118            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByKeywords(
119                    long companyId, long[] groupIds, long[] classNameIds,
120                    java.lang.String keywords, int start, int end,
121                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getFinder()
124                                       .findByKeywords(companyId, groupIds, classNameIds, keywords,
125                            start, end, orderByComparator);
126            }
127    
128            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S_T(
129                    long companyId, long[] groupIds, long[] classNameIds,
130                    java.lang.String name, java.lang.String description,
131                    java.lang.String storageType, int type, boolean andOperator, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return getFinder()
136                                       .findByC_G_C_N_D_S_T(companyId, groupIds, classNameIds,
137                            name, description, storageType, type, andOperator, start, end,
138                            orderByComparator);
139            }
140    
141            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S_T(
142                    long companyId, long[] groupIds, long[] classNameIds,
143                    java.lang.String[] names, java.lang.String[] descriptions,
144                    java.lang.String[] storageTypes, int type, boolean andOperator,
145                    int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return getFinder()
149                                       .findByC_G_C_N_D_S_T(companyId, groupIds, classNameIds,
150                            names, descriptions, storageTypes, type, andOperator, start, end,
151                            orderByComparator);
152            }
153    
154            public static DDMStructureFinder getFinder() {
155                    if (_finder == null) {
156                            _finder = (DDMStructureFinder)PortalBeanLocatorUtil.locate(DDMStructureFinder.class.getName());
157    
158                            ReferenceRegistry.registerReference(DDMStructureFinderUtil.class,
159                                    "_finder");
160                    }
161    
162                    return _finder;
163            }
164    
165            public void setFinder(DDMStructureFinder finder) {
166                    _finder = finder;
167    
168                    ReferenceRegistry.registerReference(DDMStructureFinderUtil.class,
169                            "_finder");
170            }
171    
172            private static DDMStructureFinder _finder;
173    }