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