001    /**
002     * Copyright (c) 2000-present 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.mobiledevicerules.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Edward C. Han
021     */
022    @ProviderType
023    public interface MDRRuleGroupFinder {
024            public int countByKeywords(long groupId, java.lang.String keywords,
025                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params);
026    
027            public int countByG_N(long groupId, java.lang.String name,
028                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
029                    boolean andOperator);
030    
031            public int countByG_N(long groupId, java.lang.String[] names,
032                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
033                    boolean andOperator);
034    
035            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByKeywords(
036                    long groupId, java.lang.String keywords,
037                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
038                    int start, int end);
039    
040            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
041                    long groupId, java.lang.String name,
042                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
043                    boolean andOperator);
044    
045            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
046                    long groupId, java.lang.String name,
047                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
048                    boolean andOperator, int start, int end);
049    
050            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
051                    long groupId, java.lang.String[] names,
052                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
053                    boolean andOperator, int start, int end);
054    }