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.mobiledevicerules.service.persistence;
016    
017    /**
018     * @author Edward C. Han
019     */
020    public interface MDRRuleGroupFinder {
021            public int countByKeywords(long groupId, java.lang.String keywords,
022                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByG_N(long groupId, java.lang.String name,
026                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
027                    boolean andOperator)
028                    throws com.liferay.portal.kernel.exception.SystemException;
029    
030            public int countByG_N(long groupId, java.lang.String[] names,
031                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
032                    boolean andOperator)
033                    throws com.liferay.portal.kernel.exception.SystemException;
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                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
042                    long groupId, java.lang.String name,
043                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
044                    boolean andOperator)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
048                    long groupId, java.lang.String name,
049                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
050                    boolean andOperator, int start, int end)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
054                    long groupId, java.lang.String[] names,
055                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
056                    boolean andOperator, int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    }