com.liferay.portal.model
Class ResourceWrapper
java.lang.Object
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:
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
ResourceWrapper
public ResourceWrapper(Resource resource)
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
toEscapedModel
public Resource toEscapedModel()
- Specified by:
toEscapedModel
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
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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getCompanyId
in interface Resource
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getName
public java.lang.String getName()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getName
in interface Resource
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getScope
public int getScope()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getScope
in interface Resource
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.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()