com.liferay.portal.model
Class ResourceWrapper

java.lang.Object
  extended by com.liferay.portal.model.ResourceWrapper
All Implemented Interfaces:
BaseModel<Resource>, Resource, ResourceModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Resource>

public class ResourceWrapper
extends java.lang.Object
implements Resource

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class is a wrapper for Resource.

Author:
Brian Wing Shun Chan
See Also:
Resource, Serialized Form
Generated:

Constructor Summary
ResourceWrapper(Resource resource)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(Resource resource)
           
 long getCodeId()
           
 long getCompanyId()
           
 ExpandoBridge getExpandoBridge()
           
 java.lang.String getName()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 java.lang.String getPrimKey()
           
 long getResourceId()
           
 int getScope()
           
 Resource getWrappedResource()
           
 int hashCode()
           
 boolean isCachedModel()
           
 boolean isEscapedModel()
           
 boolean isNew()
           
 void setCachedModel(boolean cachedModel)
           
 void setCodeId(long codeId)
           
 void setCompanyId(long companyId)
           
 void setEscapedModel(boolean escapedModel)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
           
 void setName(java.lang.String name)
           
 boolean setNew(boolean n)
           
 void setPrimaryKey(long pk)
           
 void setPrimKey(java.lang.String primKey)
           
 void setResourceId(long resourceId)
           
 void setScope(int scope)
           
 Resource toEscapedModel()
           
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceWrapper

public ResourceWrapper(Resource resource)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface ResourceModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface ResourceModel

getResourceId

public long getResourceId()
Specified by:
getResourceId in interface ResourceModel

setResourceId

public void setResourceId(long resourceId)
Specified by:
setResourceId in interface ResourceModel

getCodeId

public long getCodeId()
Specified by:
getCodeId in interface ResourceModel

setCodeId

public void setCodeId(long codeId)
Specified by:
setCodeId in interface ResourceModel

getPrimKey

public java.lang.String getPrimKey()
Specified by:
getPrimKey in interface ResourceModel

setPrimKey

public void setPrimKey(java.lang.String primKey)
Specified by:
setPrimKey in interface ResourceModel

isNew

public boolean isNew()
Specified by:
isNew in interface BaseModel<Resource>
Specified by:
isNew in interface ResourceModel

setNew

public boolean setNew(boolean n)
Specified by:
setNew in interface BaseModel<Resource>
Specified by:
setNew in interface ResourceModel

isCachedModel

public boolean isCachedModel()
Specified by:
isCachedModel in interface BaseModel<Resource>
Specified by:
isCachedModel in interface ResourceModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Specified by:
setCachedModel in interface BaseModel<Resource>
Specified by:
setCachedModel in interface ResourceModel

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface BaseModel<Resource>
Specified by:
isEscapedModel in interface ResourceModel

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Specified by:
setEscapedModel in interface BaseModel<Resource>
Specified by:
setEscapedModel in interface ResourceModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface BaseModel<Resource>
Specified by:
getPrimaryKeyObj in interface ResourceModel

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface BaseModel<Resource>
Specified by:
getExpandoBridge in interface ResourceModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Resource>
Specified by:
setExpandoBridgeAttributes in interface ResourceModel

clone

public java.lang.Object clone()
Specified by:
clone in interface BaseModel<Resource>
Specified by:
clone in interface ResourceModel
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(Resource resource)
Specified by:
compareTo in interface ResourceModel
Specified by:
compareTo in interface java.lang.Comparable<Resource>

hashCode

public int hashCode()
Specified by:
hashCode in interface ResourceModel
Overrides:
hashCode in class java.lang.Object

toEscapedModel

public Resource toEscapedModel()
Specified by:
toEscapedModel in interface BaseModel<Resource>
Specified by:
toEscapedModel in interface ResourceModel

toString

public java.lang.String toString()
Specified by:
toString in interface ResourceModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface BaseModel<Resource>
Specified by:
toXmlString in interface ResourceModel

getCompanyId

public long getCompanyId()
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Specified by:
getCompanyId in interface Resource
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getName

public java.lang.String getName()
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Specified by:
getName in interface Resource
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getScope

public int getScope()
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException
Specified by:
getScope in interface Resource
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface Resource

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Resource

setScope

public void setScope(int scope)
Specified by:
setScope in interface Resource

getWrappedResource

public Resource getWrappedResource()