/** * 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.portal.kernel.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.service.ServiceContext; import java.io.Serializable; import java.util.Date; /** * The base model interface for the Phone service. Represents a row in the "Phone" database table, with each column mapped to a property of this class. * * <p> * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.PhoneModelImpl} 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.PhoneImpl}. * </p> * * @author Brian Wing Shun Chan * @see Phone * @see com.liferay.portal.model.impl.PhoneImpl * @see com.liferay.portal.model.impl.PhoneModelImpl * @generated */ @ProviderType public interface PhoneModel extends AttachedModel, BaseModel<Phone>, MVCCModel, ShardedModel, StagedAuditedModel { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. All methods that expect a phone model instance should use the {@link Phone} interface instead. */ /** * Returns the primary key of this phone. * * @return the primary key of this phone */ public long getPrimaryKey(); /** * Sets the primary key of this phone. * * @param primaryKey the primary key of this phone */ public void setPrimaryKey(long primaryKey); /** * Returns the mvcc version of this phone. * * @return the mvcc version of this phone */ @Override public long getMvccVersion(); /** * Sets the mvcc version of this phone. * * @param mvccVersion the mvcc version of this phone */ @Override public void setMvccVersion(long mvccVersion); /** * Returns the uuid of this phone. * * @return the uuid of this phone */ @AutoEscape @Override public String getUuid(); /** * Sets the uuid of this phone. * * @param uuid the uuid of this phone */ @Override public void setUuid(String uuid); /** * Returns the phone ID of this phone. * * @return the phone ID of this phone */ public long getPhoneId(); /** * Sets the phone ID of this phone. * * @param phoneId the phone ID of this phone */ public void setPhoneId(long phoneId); /** * Returns the company ID of this phone. * * @return the company ID of this phone */ @Override public long getCompanyId(); /** * Sets the company ID of this phone. * * @param companyId the company ID of this phone */ @Override public void setCompanyId(long companyId); /** * Returns the user ID of this phone. * * @return the user ID of this phone */ @Override public long getUserId(); /** * Sets the user ID of this phone. * * @param userId the user ID of this phone */ @Override public void setUserId(long userId); /** * Returns the user uuid of this phone. * * @return the user uuid of this phone */ @Override public String getUserUuid(); /** * Sets the user uuid of this phone. * * @param userUuid the user uuid of this phone */ @Override public void setUserUuid(String userUuid); /** * Returns the user name of this phone. * * @return the user name of this phone */ @AutoEscape @Override public String getUserName(); /** * Sets the user name of this phone. * * @param userName the user name of this phone */ @Override public void setUserName(String userName); /** * Returns the create date of this phone. * * @return the create date of this phone */ @Override public Date getCreateDate(); /** * Sets the create date of this phone. * * @param createDate the create date of this phone */ @Override public void setCreateDate(Date createDate); /** * Returns the modified date of this phone. * * @return the modified date of this phone */ @Override public Date getModifiedDate(); /** * Sets the modified date of this phone. * * @param modifiedDate the modified date of this phone */ @Override public void setModifiedDate(Date modifiedDate); /** * Returns the fully qualified class name of this phone. * * @return the fully qualified class name of this phone */ @Override public String getClassName(); public void setClassName(String className); /** * Returns the class name ID of this phone. * * @return the class name ID of this phone */ @Override public long getClassNameId(); /** * Sets the class name ID of this phone. * * @param classNameId the class name ID of this phone */ @Override public void setClassNameId(long classNameId); /** * Returns the class pk of this phone. * * @return the class pk of this phone */ @Override public long getClassPK(); /** * Sets the class pk of this phone. * * @param classPK the class pk of this phone */ @Override public void setClassPK(long classPK); /** * Returns the number of this phone. * * @return the number of this phone */ @AutoEscape public String getNumber(); /** * Sets the number of this phone. * * @param number the number of this phone */ public void setNumber(String number); /** * Returns the extension of this phone. * * @return the extension of this phone */ @AutoEscape public String getExtension(); /** * Sets the extension of this phone. * * @param extension the extension of this phone */ public void setExtension(String extension); /** * Returns the type ID of this phone. * * @return the type ID of this phone */ public long getTypeId(); /** * Sets the type ID of this phone. * * @param typeId the type ID of this phone */ public void setTypeId(long typeId); /** * Returns the primary of this phone. * * @return the primary of this phone */ public boolean getPrimary(); /** * Returns <code>true</code> if this phone is primary. * * @return <code>true</code> if this phone is primary; <code>false</code> otherwise */ public boolean isPrimary(); /** * Sets whether this phone is primary. * * @param primary the primary of this phone */ public void setPrimary(boolean primary); @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(Phone phone); @Override public int hashCode(); @Override public CacheModel<Phone> toCacheModel(); @Override public Phone toEscapedModel(); @Override public Phone toUnescapedModel(); @Override public String toString(); @Override public String toXmlString(); }