/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.mail.reader.model; import aQute.bnd.annotation.ProviderType; import com.liferay.expando.kernel.model.ExpandoBridge; import com.liferay.portal.kernel.bean.AutoEscape; import com.liferay.portal.kernel.model.BaseModel; import com.liferay.portal.kernel.model.CacheModel; import com.liferay.portal.kernel.model.ShardedModel; import com.liferay.portal.kernel.service.ServiceContext; import java.io.Serializable; /** * The base model interface for the Attachment service. Represents a row in the "Mail_Attachment" database table, with each column mapped to a property of this class. * * <p> * This interface and its corresponding implementation {@link com.liferay.mail.reader.model.impl.AttachmentModelImpl} 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.mail.reader.model.impl.AttachmentImpl}. * </p> * * @author Brian Wing Shun Chan * @see Attachment * @see com.liferay.mail.reader.model.impl.AttachmentImpl * @see com.liferay.mail.reader.model.impl.AttachmentModelImpl * @generated */ @ProviderType public interface AttachmentModel extends BaseModel<Attachment>, ShardedModel { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. All methods that expect a attachment model instance should use the {@link Attachment} interface instead. */ /** * Returns the primary key of this attachment. * * @return the primary key of this attachment */ public long getPrimaryKey(); /** * Sets the primary key of this attachment. * * @param primaryKey the primary key of this attachment */ public void setPrimaryKey(long primaryKey); /** * Returns the attachment ID of this attachment. * * @return the attachment ID of this attachment */ public long getAttachmentId(); /** * Sets the attachment ID of this attachment. * * @param attachmentId the attachment ID of this attachment */ public void setAttachmentId(long attachmentId); /** * Returns the company ID of this attachment. * * @return the company ID of this attachment */ @Override public long getCompanyId(); /** * Sets the company ID of this attachment. * * @param companyId the company ID of this attachment */ @Override public void setCompanyId(long companyId); /** * Returns the user ID of this attachment. * * @return the user ID of this attachment */ public long getUserId(); /** * Sets the user ID of this attachment. * * @param userId the user ID of this attachment */ public void setUserId(long userId); /** * Returns the user uuid of this attachment. * * @return the user uuid of this attachment */ public String getUserUuid(); /** * Sets the user uuid of this attachment. * * @param userUuid the user uuid of this attachment */ public void setUserUuid(String userUuid); /** * Returns the account ID of this attachment. * * @return the account ID of this attachment */ public long getAccountId(); /** * Sets the account ID of this attachment. * * @param accountId the account ID of this attachment */ public void setAccountId(long accountId); /** * Returns the folder ID of this attachment. * * @return the folder ID of this attachment */ public long getFolderId(); /** * Sets the folder ID of this attachment. * * @param folderId the folder ID of this attachment */ public void setFolderId(long folderId); /** * Returns the message ID of this attachment. * * @return the message ID of this attachment */ public long getMessageId(); /** * Sets the message ID of this attachment. * * @param messageId the message ID of this attachment */ public void setMessageId(long messageId); /** * Returns the content path of this attachment. * * @return the content path of this attachment */ @AutoEscape public String getContentPath(); /** * Sets the content path of this attachment. * * @param contentPath the content path of this attachment */ public void setContentPath(String contentPath); /** * Returns the file name of this attachment. * * @return the file name of this attachment */ @AutoEscape public String getFileName(); /** * Sets the file name of this attachment. * * @param fileName the file name of this attachment */ public void setFileName(String fileName); /** * Returns the size of this attachment. * * @return the size of this attachment */ public long getSize(); /** * Sets the size of this attachment. * * @param size the size of this attachment */ public void setSize(long size); @Override public boolean isNew(); @Override public void setNew(boolean n); @Override public boolean isCachedModel(); @Override public void setCachedModel(boolean cachedModel); @Override public boolean isEscapedModel(); @Override public Serializable getPrimaryKeyObj(); @Override public void setPrimaryKeyObj(Serializable primaryKeyObj); @Override public ExpandoBridge getExpandoBridge(); @Override public void setExpandoBridgeAttributes(BaseModel<?> baseModel); @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext); @Override public Object clone(); @Override public int compareTo(Attachment attachment); @Override public int hashCode(); @Override public CacheModel<Attachment> toCacheModel(); @Override public Attachment toEscapedModel(); @Override public Attachment toUnescapedModel(); @Override public String toString(); @Override public String toXmlString(); }