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    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface DDMStructureFinder {
021            public int countByKeywords(long companyId, long[] groupIds,
022                    long[] classNameIds, java.lang.String keywords)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByC_G_C_N_D_S_T(long companyId, long[] groupIds,
026                    long[] classNameIds, java.lang.String name,
027                    java.lang.String description, java.lang.String storageType, int type,
028                    boolean andOperator)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByC_G_C_N_D_S_T(long companyId, long[] groupIds,
032                    long[] classNameIds, java.lang.String[] names,
033                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
034                    int type, boolean andOperator)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int filterCountByKeywords(long companyId, long[] groupIds,
038                    long[] classNameIds, java.lang.String keywords)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public int filterCountByC_G_C_N_D_S_T(long companyId, long[] groupIds,
042                    long[] classNameIds, java.lang.String name,
043                    java.lang.String description, java.lang.String storageType, int type,
044                    boolean andOperator)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public int filterCountByC_G_C_N_D_S_T(long companyId, long[] groupIds,
048                    long[] classNameIds, java.lang.String[] names,
049                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
050                    int type, boolean andOperator)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByKeywords(
054                    long companyId, long[] groupIds, long[] classNameIds,
055                    java.lang.String keywords, int start, int end,
056                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByC_G_C_N_D_S_T(
060                    long companyId, long[] groupIds, long[] classNameIds,
061                    java.lang.String name, java.lang.String description,
062                    java.lang.String storageType, int type, boolean andOperator, int start,
063                    int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> filterFindByC_G_C_N_D_S_T(
068                    long companyId, long[] groupIds, long[] classNameIds,
069                    java.lang.String[] names, java.lang.String[] descriptions,
070                    java.lang.String[] storageTypes, int type, boolean andOperator,
071                    int start, int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByKeywords(
076                    long companyId, long[] groupIds, long[] classNameIds,
077                    java.lang.String keywords, int start, int end,
078                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S_T(
082                    long companyId, long[] groupIds, long[] classNameIds,
083                    java.lang.String name, java.lang.String description,
084                    java.lang.String storageType, int type, boolean andOperator, int start,
085                    int end,
086                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S_T(
090                    long companyId, long[] groupIds, long[] classNameIds,
091                    java.lang.String[] names, java.lang.String[] descriptions,
092                    java.lang.String[] storageTypes, int type, boolean andOperator,
093                    int start, int end,
094                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    }