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