1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Shard;
18  
19  /**
20   * <a href="ShardPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ShardPersistenceImpl
29   * @see       ShardUtil
30   * @generated
31   */
32  public interface ShardPersistence extends BasePersistence<Shard> {
33      public void cacheResult(com.liferay.portal.model.Shard shard);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Shard> shards);
37  
38      public com.liferay.portal.model.Shard create(long shardId);
39  
40      public com.liferay.portal.model.Shard remove(long shardId)
41          throws com.liferay.portal.NoSuchShardException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Shard updateImpl(
45          com.liferay.portal.model.Shard shard, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Shard findByPrimaryKey(long shardId)
49          throws com.liferay.portal.NoSuchShardException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Shard fetchByPrimaryKey(long shardId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public com.liferay.portal.model.Shard findByName(java.lang.String name)
56          throws com.liferay.portal.NoSuchShardException,
57              com.liferay.portal.kernel.exception.SystemException;
58  
59      public com.liferay.portal.model.Shard fetchByName(java.lang.String name)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public com.liferay.portal.model.Shard fetchByName(java.lang.String name,
63          boolean retrieveFromCache)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public com.liferay.portal.model.Shard findByC_C(long classNameId,
67          long classPK)
68          throws com.liferay.portal.NoSuchShardException,
69              com.liferay.portal.kernel.exception.SystemException;
70  
71      public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
72          long classPK)
73          throws com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portal.model.Shard fetchByC_C(long classNameId,
76          long classPK, boolean retrieveFromCache)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public java.util.List<com.liferay.portal.model.Shard> findAll()
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
83          int end) throws com.liferay.portal.kernel.exception.SystemException;
84  
85      public java.util.List<com.liferay.portal.model.Shard> findAll(int start,
86          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public void removeByName(java.lang.String name)
90          throws com.liferay.portal.NoSuchShardException,
91              com.liferay.portal.kernel.exception.SystemException;
92  
93      public void removeByC_C(long classNameId, long classPK)
94          throws com.liferay.portal.NoSuchShardException,
95              com.liferay.portal.kernel.exception.SystemException;
96  
97      public void removeAll()
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public int countByName(java.lang.String name)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public int countByC_C(long classNameId, long classPK)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public int countAll()
107         throws com.liferay.portal.kernel.exception.SystemException;
108 }