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