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.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    /**
027     * The base model interface for the Shard service. Represents a row in the "Shard" database table, with each column mapped to a property of this class.
028     *
029     * <p>
030     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.ShardModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.ShardImpl}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see Shard
035     * @see com.liferay.portal.model.impl.ShardImpl
036     * @see com.liferay.portal.model.impl.ShardModelImpl
037     * @generated
038     */
039    @ProviderType
040    public interface ShardModel extends AttachedModel, BaseModel<Shard>, MVCCModel {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. All methods that expect a shard model instance should use the {@link Shard} interface instead.
045             */
046    
047            /**
048             * Returns the primary key of this shard.
049             *
050             * @return the primary key of this shard
051             */
052            public long getPrimaryKey();
053    
054            /**
055             * Sets the primary key of this shard.
056             *
057             * @param primaryKey the primary key of this shard
058             */
059            public void setPrimaryKey(long primaryKey);
060    
061            /**
062             * Returns the mvcc version of this shard.
063             *
064             * @return the mvcc version of this shard
065             */
066            @Override
067            public long getMvccVersion();
068    
069            /**
070             * Sets the mvcc version of this shard.
071             *
072             * @param mvccVersion the mvcc version of this shard
073             */
074            @Override
075            public void setMvccVersion(long mvccVersion);
076    
077            /**
078             * Returns the shard ID of this shard.
079             *
080             * @return the shard ID of this shard
081             */
082            public long getShardId();
083    
084            /**
085             * Sets the shard ID of this shard.
086             *
087             * @param shardId the shard ID of this shard
088             */
089            public void setShardId(long shardId);
090    
091            /**
092             * Returns the fully qualified class name of this shard.
093             *
094             * @return the fully qualified class name of this shard
095             */
096            @Override
097            public String getClassName();
098    
099            public void setClassName(String className);
100    
101            /**
102             * Returns the class name ID of this shard.
103             *
104             * @return the class name ID of this shard
105             */
106            @Override
107            public long getClassNameId();
108    
109            /**
110             * Sets the class name ID of this shard.
111             *
112             * @param classNameId the class name ID of this shard
113             */
114            @Override
115            public void setClassNameId(long classNameId);
116    
117            /**
118             * Returns the class p k of this shard.
119             *
120             * @return the class p k of this shard
121             */
122            @Override
123            public long getClassPK();
124    
125            /**
126             * Sets the class p k of this shard.
127             *
128             * @param classPK the class p k of this shard
129             */
130            @Override
131            public void setClassPK(long classPK);
132    
133            /**
134             * Returns the name of this shard.
135             *
136             * @return the name of this shard
137             */
138            @AutoEscape
139            public String getName();
140    
141            /**
142             * Sets the name of this shard.
143             *
144             * @param name the name of this shard
145             */
146            public void setName(String name);
147    
148            @Override
149            public boolean isNew();
150    
151            @Override
152            public void setNew(boolean n);
153    
154            @Override
155            public boolean isCachedModel();
156    
157            @Override
158            public void setCachedModel(boolean cachedModel);
159    
160            @Override
161            public boolean isEscapedModel();
162    
163            @Override
164            public Serializable getPrimaryKeyObj();
165    
166            @Override
167            public void setPrimaryKeyObj(Serializable primaryKeyObj);
168    
169            @Override
170            public ExpandoBridge getExpandoBridge();
171    
172            @Override
173            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
174    
175            @Override
176            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
177    
178            @Override
179            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
180    
181            @Override
182            public Object clone();
183    
184            @Override
185            public int compareTo(com.liferay.portal.model.Shard shard);
186    
187            @Override
188            public int hashCode();
189    
190            @Override
191            public CacheModel<com.liferay.portal.model.Shard> toCacheModel();
192    
193            @Override
194            public com.liferay.portal.model.Shard toEscapedModel();
195    
196            @Override
197            public com.liferay.portal.model.Shard toUnescapedModel();
198    
199            @Override
200            public String toString();
201    
202            @Override
203            public String toXmlString();
204    }