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.dynamicdatalists.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface DDLRecordSetFinder {
024            public int countByKeywords(long companyId, long groupId,
025                    java.lang.String keywords, int scope)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByC_G_N_D_S(long companyId, long groupId,
029                    java.lang.String name, java.lang.String description, int scope,
030                    boolean andOperator)
031                    throws com.liferay.portal.kernel.exception.SystemException;
032    
033            public int filterCountByKeywords(long companyId, long groupId,
034                    java.lang.String keywords, int scope)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int filterCountByC_G_N_D_S(long companyId, long groupId,
038                    java.lang.String name, java.lang.String description, int scope,
039                    boolean andOperator)
040                    throws com.liferay.portal.kernel.exception.SystemException;
041    
042            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByKeywords(
043                    long companyId, long groupId, java.lang.String keywords, int scope,
044                    int start, int end,
045                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByC_G_N_D_S(
049                    long companyId, long groupId, java.lang.String name,
050                    java.lang.String description, int scope, boolean andOperator,
051                    int start, int end,
052                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByC_G_N_D_S(
056                    long companyId, long groupId, java.lang.String[] names,
057                    java.lang.String[] descriptions, int scope, boolean andOperator,
058                    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.dynamicdatalists.model.DDLRecordSet> findByKeywords(
063                    long companyId, long groupId, java.lang.String keywords, int scope,
064                    int start, int end,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByC_G_N_D_S(
069                    long companyId, long groupId, java.lang.String name,
070                    java.lang.String description, int scope, 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.dynamicdatalists.model.DDLRecordSet> findByC_G_N_D_S(
076                    long companyId, long groupId, java.lang.String[] names,
077                    java.lang.String[] descriptions, int scope, boolean andOperator,
078                    int start, int end,
079                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    }