001    /**
002     * Copyright (c) 2000-2013 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.portlet.documentlibrary.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.model.BaseModel;
021    import com.liferay.portal.model.CacheModel;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.expando.model.ExpandoBridge;
025    
026    import java.io.Serializable;
027    
028    import java.sql.Blob;
029    
030    /**
031     * The base model interface for the DLContent service. Represents a row in the "DLContent" database table, with each column mapped to a property of this class.
032     *
033     * <p>
034     * This interface and its corresponding implementation {@link com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl} 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.portlet.documentlibrary.model.impl.DLContentImpl}.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see DLContent
039     * @see com.liferay.portlet.documentlibrary.model.impl.DLContentImpl
040     * @see com.liferay.portlet.documentlibrary.model.impl.DLContentModelImpl
041     * @generated
042     */
043    @ProviderType
044    public interface DLContentModel extends BaseModel<DLContent> {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. All methods that expect a document library content model instance should use the {@link DLContent} interface instead.
049             */
050    
051            /**
052             * Returns the primary key of this document library content.
053             *
054             * @return the primary key of this document library content
055             */
056            public long getPrimaryKey();
057    
058            /**
059             * Sets the primary key of this document library content.
060             *
061             * @param primaryKey the primary key of this document library content
062             */
063            public void setPrimaryKey(long primaryKey);
064    
065            /**
066             * Returns the content ID of this document library content.
067             *
068             * @return the content ID of this document library content
069             */
070            public long getContentId();
071    
072            /**
073             * Sets the content ID of this document library content.
074             *
075             * @param contentId the content ID of this document library content
076             */
077            public void setContentId(long contentId);
078    
079            /**
080             * Returns the group ID of this document library content.
081             *
082             * @return the group ID of this document library content
083             */
084            public long getGroupId();
085    
086            /**
087             * Sets the group ID of this document library content.
088             *
089             * @param groupId the group ID of this document library content
090             */
091            public void setGroupId(long groupId);
092    
093            /**
094             * Returns the company ID of this document library content.
095             *
096             * @return the company ID of this document library content
097             */
098            public long getCompanyId();
099    
100            /**
101             * Sets the company ID of this document library content.
102             *
103             * @param companyId the company ID of this document library content
104             */
105            public void setCompanyId(long companyId);
106    
107            /**
108             * Returns the repository ID of this document library content.
109             *
110             * @return the repository ID of this document library content
111             */
112            public long getRepositoryId();
113    
114            /**
115             * Sets the repository ID of this document library content.
116             *
117             * @param repositoryId the repository ID of this document library content
118             */
119            public void setRepositoryId(long repositoryId);
120    
121            /**
122             * Returns the path of this document library content.
123             *
124             * @return the path of this document library content
125             */
126            @AutoEscape
127            public String getPath();
128    
129            /**
130             * Sets the path of this document library content.
131             *
132             * @param path the path of this document library content
133             */
134            public void setPath(String path);
135    
136            /**
137             * Returns the version of this document library content.
138             *
139             * @return the version of this document library content
140             */
141            @AutoEscape
142            public String getVersion();
143    
144            /**
145             * Sets the version of this document library content.
146             *
147             * @param version the version of this document library content
148             */
149            public void setVersion(String version);
150    
151            /**
152             * Returns the data of this document library content.
153             *
154             * @return the data of this document library content
155             */
156            public Blob getData();
157    
158            /**
159             * Sets the data of this document library content.
160             *
161             * @param data the data of this document library content
162             */
163            public void setData(Blob data);
164    
165            /**
166             * Returns the size of this document library content.
167             *
168             * @return the size of this document library content
169             */
170            public long getSize();
171    
172            /**
173             * Sets the size of this document library content.
174             *
175             * @param size the size of this document library content
176             */
177            public void setSize(long size);
178    
179            @Override
180            public boolean isNew();
181    
182            @Override
183            public void setNew(boolean n);
184    
185            @Override
186            public boolean isCachedModel();
187    
188            @Override
189            public void setCachedModel(boolean cachedModel);
190    
191            @Override
192            public boolean isEscapedModel();
193    
194            @Override
195            public Serializable getPrimaryKeyObj();
196    
197            @Override
198            public void setPrimaryKeyObj(Serializable primaryKeyObj);
199    
200            @Override
201            public ExpandoBridge getExpandoBridge();
202    
203            @Override
204            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
205    
206            @Override
207            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
208    
209            @Override
210            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
211    
212            @Override
213            public Object clone();
214    
215            @Override
216            public int compareTo(DLContent dlContent);
217    
218            @Override
219            public int hashCode();
220    
221            @Override
222            public CacheModel<DLContent> toCacheModel();
223    
224            @Override
225            public DLContent toEscapedModel();
226    
227            @Override
228            public DLContent toUnescapedModel();
229    
230            @Override
231            public String toString();
232    
233            @Override
234            public String toXmlString();
235    }