001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface DDMStructureFinder {
021            public int countByKeywords(long companyId, long groupId,
022                    long[] classNameIds, java.lang.String keywords)
023                    throws com.liferay.portal.kernel.exception.SystemException;
024    
025            public int countByC_G_C_N_D_S(long companyId, long groupId,
026                    long[] classNameIds, java.lang.String name,
027                    java.lang.String description, java.lang.String storageType,
028                    boolean andOperator)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByC_G_C_N_D_S(long companyId, long groupId,
032                    long[] classNameIds, java.lang.String[] names,
033                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
034                    boolean andOperator)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByKeywords(
038                    long companyId, long groupId, long[] classNameIds,
039                    java.lang.String keywords, int start, int end,
040                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S(
044                    long companyId, long groupId, long[] classNameIds,
045                    java.lang.String name, java.lang.String description,
046                    java.lang.String storageType, boolean andOperator, int start, int end,
047                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S(
051                    long companyId, long groupId, long[] classNameIds,
052                    java.lang.String[] names, java.lang.String[] descriptions,
053                    java.lang.String[] storageTypes, boolean andOperator, int start,
054                    int end,
055                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    }