001    /**
002     * Copyright (c) 2000-2010 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.portal.service.persistence;
016    
017    import com.liferay.portal.model.Shard;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       ShardPersistenceImpl
022     * @see       ShardUtil
023     * @generated
024     */
025    public interface ShardPersistence extends BasePersistence<Shard> {
026            public void cacheResult(com.liferay.portal.model.Shard shard);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Shard> shards);
030    
031            public com.liferay.portal.model.Shard create(long shardId);
032    
033            public com.liferay.portal.model.Shard remove(long shardId)
034                    throws com.liferay.portal.NoSuchShardException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Shard updateImpl(
038                    com.liferay.portal.model.Shard shard, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
042                    throws com.liferay.portal.NoSuchShardException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public com.liferay.portal.model.Shard findByName(java.lang.String name)
049                    throws com.liferay.portal.NoSuchShardException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
056                    boolean retrieveFromCache)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public com.liferay.portal.model.Shard findByC_C(long classNameId,
060                    long classPK)
061                    throws com.liferay.portal.NoSuchShardException,
062                            com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
065                    long classPK)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
069                    long classPK, boolean retrieveFromCache)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            public java.util.List<com.liferay.portal.model.Shard> findAll()
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
076                    int end) throws com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
079                    int end,
080                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            public void removeByName(java.lang.String name)
084                    throws com.liferay.portal.NoSuchShardException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            public void removeByC_C(long classNameId, long classPK)
088                    throws com.liferay.portal.NoSuchShardException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public void removeAll()
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public int countByName(java.lang.String name)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public int countByC_C(long classNameId, long classPK)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public int countAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    }