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