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.expando.model;
016    
017    import com.liferay.portal.model.BaseModel;
018    import com.liferay.portal.model.CacheModel;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import java.io.Serializable;
022    
023    import java.util.Date;
024    
025    /**
026     * The base model interface for the ExpandoRow service. Represents a row in the "ExpandoRow" database table, with each column mapped to a property of this class.
027     *
028     * <p>
029     * This interface and its corresponding implementation {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl} 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.expando.model.impl.ExpandoRowImpl}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see ExpandoRow
034     * @see com.liferay.portlet.expando.model.impl.ExpandoRowImpl
035     * @see com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl
036     * @generated
037     */
038    public interface ExpandoRowModel extends BaseModel<ExpandoRow> {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * Never modify or reference this interface directly. All methods that expect a expando row model instance should use the {@link ExpandoRow} interface instead.
043             */
044    
045            /**
046             * Returns the primary key of this expando row.
047             *
048             * @return the primary key of this expando row
049             */
050            public long getPrimaryKey();
051    
052            /**
053             * Sets the primary key of this expando row.
054             *
055             * @param primaryKey the primary key of this expando row
056             */
057            public void setPrimaryKey(long primaryKey);
058    
059            /**
060             * Returns the row ID of this expando row.
061             *
062             * @return the row ID of this expando row
063             */
064            public long getRowId();
065    
066            /**
067             * Sets the row ID of this expando row.
068             *
069             * @param rowId the row ID of this expando row
070             */
071            public void setRowId(long rowId);
072    
073            /**
074             * Returns the company ID of this expando row.
075             *
076             * @return the company ID of this expando row
077             */
078            public long getCompanyId();
079    
080            /**
081             * Sets the company ID of this expando row.
082             *
083             * @param companyId the company ID of this expando row
084             */
085            public void setCompanyId(long companyId);
086    
087            /**
088             * Returns the modified date of this expando row.
089             *
090             * @return the modified date of this expando row
091             */
092            public Date getModifiedDate();
093    
094            /**
095             * Sets the modified date of this expando row.
096             *
097             * @param modifiedDate the modified date of this expando row
098             */
099            public void setModifiedDate(Date modifiedDate);
100    
101            /**
102             * Returns the table ID of this expando row.
103             *
104             * @return the table ID of this expando row
105             */
106            public long getTableId();
107    
108            /**
109             * Sets the table ID of this expando row.
110             *
111             * @param tableId the table ID of this expando row
112             */
113            public void setTableId(long tableId);
114    
115            /**
116             * Returns the class p k of this expando row.
117             *
118             * @return the class p k of this expando row
119             */
120            public long getClassPK();
121    
122            /**
123             * Sets the class p k of this expando row.
124             *
125             * @param classPK the class p k of this expando row
126             */
127            public void setClassPK(long classPK);
128    
129            public boolean isNew();
130    
131            public void setNew(boolean n);
132    
133            public boolean isCachedModel();
134    
135            public void setCachedModel(boolean cachedModel);
136    
137            public boolean isEscapedModel();
138    
139            public Serializable getPrimaryKeyObj();
140    
141            public void setPrimaryKeyObj(Serializable primaryKeyObj);
142    
143            public ExpandoBridge getExpandoBridge();
144    
145            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
146    
147            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
148    
149            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
150    
151            public Object clone();
152    
153            public int compareTo(ExpandoRow expandoRow);
154    
155            public int hashCode();
156    
157            public CacheModel<ExpandoRow> toCacheModel();
158    
159            public ExpandoRow toEscapedModel();
160    
161            public ExpandoRow toUnescapedModel();
162    
163            public String toString();
164    
165            public String toXmlString();
166    }