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