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.portal.model; 016 017 import com.liferay.portal.service.ServiceContext; 018 import com.liferay.portal.service.persistence.OrgGroupRolePK; 019 020 import com.liferay.portlet.expando.model.ExpandoBridge; 021 022 import java.io.Serializable; 023 024 /** 025 * The base model interface for the OrgGroupRole service. Represents a row in the "OrgGroupRole" database table, with each column mapped to a property of this class. 026 * 027 * <p> 028 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.OrgGroupRoleModelImpl} 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.OrgGroupRoleImpl}. 029 * </p> 030 * 031 * <p> 032 * Never modify or reference this interface directly. All methods that expect a org group role model instance should use the {@link OrgGroupRole} interface instead. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see OrgGroupRole 037 * @see com.liferay.portal.model.impl.OrgGroupRoleImpl 038 * @see com.liferay.portal.model.impl.OrgGroupRoleModelImpl 039 * @generated 040 */ 041 public interface OrgGroupRoleModel extends BaseModel<OrgGroupRole> { 042 /** 043 * Gets the primary key of this org group role. 044 * 045 * @return the primary key of this org group role 046 */ 047 public OrgGroupRolePK getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this org group role 051 * 052 * @param pk the primary key of this org group role 053 */ 054 public void setPrimaryKey(OrgGroupRolePK pk); 055 056 /** 057 * Gets the organization id of this org group role. 058 * 059 * @return the organization id of this org group role 060 */ 061 public long getOrganizationId(); 062 063 /** 064 * Sets the organization id of this org group role. 065 * 066 * @param organizationId the organization id of this org group role 067 */ 068 public void setOrganizationId(long organizationId); 069 070 /** 071 * Gets the group id of this org group role. 072 * 073 * @return the group id of this org group role 074 */ 075 public long getGroupId(); 076 077 /** 078 * Sets the group id of this org group role. 079 * 080 * @param groupId the group id of this org group role 081 */ 082 public void setGroupId(long groupId); 083 084 /** 085 * Gets the role id of this org group role. 086 * 087 * @return the role id of this org group role 088 */ 089 public long getRoleId(); 090 091 /** 092 * Sets the role id of this org group role. 093 * 094 * @param roleId the role id of this org group role 095 */ 096 public void setRoleId(long roleId); 097 098 /** 099 * Gets a copy of this org group role as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 100 * 101 * @return the escaped model instance 102 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 103 */ 104 public OrgGroupRole toEscapedModel(); 105 106 public boolean isNew(); 107 108 public void setNew(boolean n); 109 110 public boolean isCachedModel(); 111 112 public void setCachedModel(boolean cachedModel); 113 114 public boolean isEscapedModel(); 115 116 public void setEscapedModel(boolean escapedModel); 117 118 public Serializable getPrimaryKeyObj(); 119 120 public ExpandoBridge getExpandoBridge(); 121 122 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 123 124 public Object clone(); 125 126 public int compareTo(OrgGroupRole orgGroupRole); 127 128 public int hashCode(); 129 130 public String toString(); 131 132 public String toXmlString(); 133 }