001 /** 002 * Copyright (c) 2000-2010 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.wiki.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.service.ServiceContext; 020 021 import com.liferay.portlet.expando.model.ExpandoBridge; 022 023 import java.io.Serializable; 024 025 /** 026 * The base model interface for the WikiPageResource service. Represents a row in the "WikiPageResource" 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.wiki.model.impl.WikiPageResourceModelImpl} 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.wiki.model.impl.WikiPageResourceImpl}. 030 * </p> 031 * 032 * <p> 033 * Never modify or reference this interface directly. All methods that expect a wiki page resource model instance should use the {@link WikiPageResource} interface instead. 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see WikiPageResource 038 * @see com.liferay.portlet.wiki.model.impl.WikiPageResourceImpl 039 * @see com.liferay.portlet.wiki.model.impl.WikiPageResourceModelImpl 040 * @generated 041 */ 042 public interface WikiPageResourceModel extends BaseModel<WikiPageResource> { 043 /** 044 * Gets the primary key of this wiki page resource. 045 * 046 * @return the primary key of this wiki page resource 047 */ 048 public long getPrimaryKey(); 049 050 /** 051 * Sets the primary key of this wiki page resource 052 * 053 * @param pk the primary key of this wiki page resource 054 */ 055 public void setPrimaryKey(long pk); 056 057 /** 058 * Gets the uuid of this wiki page resource. 059 * 060 * @return the uuid of this wiki page resource 061 */ 062 @AutoEscape 063 public String getUuid(); 064 065 /** 066 * Sets the uuid of this wiki page resource. 067 * 068 * @param uuid the uuid of this wiki page resource 069 */ 070 public void setUuid(String uuid); 071 072 /** 073 * Gets the resource prim key of this wiki page resource. 074 * 075 * @return the resource prim key of this wiki page resource 076 */ 077 public long getResourcePrimKey(); 078 079 /** 080 * Sets the resource prim key of this wiki page resource. 081 * 082 * @param resourcePrimKey the resource prim key of this wiki page resource 083 */ 084 public void setResourcePrimKey(long resourcePrimKey); 085 086 /** 087 * Gets the node id of this wiki page resource. 088 * 089 * @return the node id of this wiki page resource 090 */ 091 public long getNodeId(); 092 093 /** 094 * Sets the node id of this wiki page resource. 095 * 096 * @param nodeId the node id of this wiki page resource 097 */ 098 public void setNodeId(long nodeId); 099 100 /** 101 * Gets the title of this wiki page resource. 102 * 103 * @return the title of this wiki page resource 104 */ 105 @AutoEscape 106 public String getTitle(); 107 108 /** 109 * Sets the title of this wiki page resource. 110 * 111 * @param title the title of this wiki page resource 112 */ 113 public void setTitle(String title); 114 115 /** 116 * Gets a copy of this wiki page resource as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 117 * 118 * @return the escaped model instance 119 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 120 */ 121 public WikiPageResource toEscapedModel(); 122 123 public boolean isNew(); 124 125 public void setNew(boolean n); 126 127 public boolean isCachedModel(); 128 129 public void setCachedModel(boolean cachedModel); 130 131 public boolean isEscapedModel(); 132 133 public void setEscapedModel(boolean escapedModel); 134 135 public Serializable getPrimaryKeyObj(); 136 137 public ExpandoBridge getExpandoBridge(); 138 139 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 140 141 public Object clone(); 142 143 public int compareTo(WikiPageResource wikiPageResource); 144 145 public int hashCode(); 146 147 public String toString(); 148 149 public String toXmlString(); 150 }