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.asset.kernel.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     * @generated
025     */
026    @ProviderType
027    public class AssetEntryFinderUtil {
028            public static int countEntries(AssetEntryQuery entryQuery) {
029                    return getFinder().countEntries(entryQuery);
030            }
031    
032            public static java.util.List<com.liferay.asset.kernel.model.AssetEntry> findByDLFileEntryC_T(
033                    long classNameId, java.lang.String treePath) {
034                    return getFinder().findByDLFileEntryC_T(classNameId, treePath);
035            }
036    
037            public static java.util.List<com.liferay.asset.kernel.model.AssetEntry> findByDLFolderC_T(
038                    long classNameId, java.lang.String treePath) {
039                    return getFinder().findByDLFolderC_T(classNameId, treePath);
040            }
041    
042            public static java.util.List<com.liferay.asset.kernel.model.AssetEntry> findEntries(
043                    AssetEntryQuery entryQuery) {
044                    return getFinder().findEntries(entryQuery);
045            }
046    
047            public static AssetEntryFinder getFinder() {
048                    if (_finder == null) {
049                            _finder = (AssetEntryFinder)PortalBeanLocatorUtil.locate(AssetEntryFinder.class.getName());
050    
051                            ReferenceRegistry.registerReference(AssetEntryFinderUtil.class,
052                                    "_finder");
053                    }
054    
055                    return _finder;
056            }
057    
058            public void setFinder(AssetEntryFinder finder) {
059                    _finder = finder;
060    
061                    ReferenceRegistry.registerReference(AssetEntryFinderUtil.class,
062                            "_finder");
063            }
064    
065            private static AssetEntryFinder _finder;
066    }