001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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[] groupIds,
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_T(long companyId, long[] groupIds,
026                    long[] classNameIds, java.lang.String name,
027                    java.lang.String description, java.lang.String storageType, int type,
028                    boolean andOperator)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByC_G_C_N_D_S_T(long companyId, long[] groupIds,
032                    long[] classNameIds, java.lang.String[] names,
033                    java.lang.String[] descriptions, java.lang.String[] storageTypes,
034                    int type, 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[] groupIds, 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_T(
044                    long companyId, long[] groupIds, long[] classNameIds,
045                    java.lang.String name, java.lang.String description,
046                    java.lang.String storageType, int type, boolean andOperator, int start,
047                    int end,
048                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> findByC_G_C_N_D_S_T(
052                    long companyId, long[] groupIds, long[] classNameIds,
053                    java.lang.String[] names, java.lang.String[] descriptions,
054                    java.lang.String[] storageTypes, int type, boolean andOperator,
055                    int start, int end,
056                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    }