Liferay 6.0.5

com.liferay.portlet.imagegallery.model
Class IGImageWrapper

java.lang.Object
  extended by com.liferay.portlet.imagegallery.model.IGImageWrapper
All Implemented Interfaces:
BaseModel<IGImage>, IGImage, IGImageModel, Serializable, Cloneable, Comparable<IGImage>

public class IGImageWrapper
extends Object
implements IGImage

This class is a wrapper for IGImage.

See Also:
IGImage, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
IGImageWrapper(IGImage igImage)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(IGImage igImage)
           
 long getCompanyId()
          Gets the company id of this i g image.
 Date getCreateDate()
          Gets the create date of this i g image.
 long getCustom1ImageId()
          Gets the custom1 image id of this i g image.
 long getCustom2ImageId()
          Gets the custom2 image id of this i g image.
 String getDescription()
          Gets the description of this i g image.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 IGFolder getFolder()
           
 long getFolderId()
          Gets the folder id of this i g image.
 long getGroupId()
          Gets the group id of this i g image.
 long getImageId()
          Gets the image id of this i g image.
 int getImageSize()
           
 String getImageType()
           
 long getLargeImageId()
          Gets the large image id of this i g image.
 Date getModifiedDate()
          Gets the modified date of this i g image.
 String getName()
          Gets the name of this i g image.
 String getNameWithExtension()
           
 long getPrimaryKey()
          Gets the primary key of this i g image.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getSmallImageId()
          Gets the small image id of this i g image.
 long getUserId()
          Gets the user id of this i g image.
 String getUserUuid()
          Gets the user uuid of this i g image.
 String getUuid()
          Gets the uuid of this i g image.
 IGImage getWrappedIGImage()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company id of this i g image.
 void setCreateDate(Date createDate)
          Sets the create date of this i g image.
 void setCustom1ImageId(long custom1ImageId)
          Sets the custom1 image id of this i g image.
 void setCustom2ImageId(long custom2ImageId)
          Sets the custom2 image id of this i g image.
 void setDescription(String description)
          Sets the description of this i g image.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFolderId(long folderId)
          Sets the folder id of this i g image.
 void setGroupId(long groupId)
          Sets the group id of this i g image.
 void setImageId(long imageId)
          Sets the image id of this i g image.
 void setImageType(String imageType)
           
 void setLargeImageId(long largeImageId)
          Sets the large image id of this i g image.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this i g image.
 void setName(String name)
          Sets the name of this i g image.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long pk)
          Sets the primary key of this i g image
 void setSmallImageId(long smallImageId)
          Sets the small image id of this i g image.
 void setUserId(long userId)
          Sets the user id of this i g image.
 void setUserUuid(String userUuid)
          Sets the user uuid of this i g image.
 void setUuid(String uuid)
          Sets the uuid of this i g image.
 IGImage toEscapedModel()
          Gets a copy of this i g image as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IGImageWrapper

public IGImageWrapper(IGImage igImage)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: IGImageModel
Gets the primary key of this i g image.

Specified by:
getPrimaryKey in interface IGImageModel
Returns:
the primary key of this i g image

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: IGImageModel
Sets the primary key of this i g image

Specified by:
setPrimaryKey in interface IGImageModel
Parameters:
pk - the primary key of this i g image

getUuid

public String getUuid()
Description copied from interface: IGImageModel
Gets the uuid of this i g image.

Specified by:
getUuid in interface IGImageModel
Returns:
the uuid of this i g image

setUuid

public void setUuid(String uuid)
Description copied from interface: IGImageModel
Sets the uuid of this i g image.

Specified by:
setUuid in interface IGImageModel
Parameters:
uuid - the uuid of this i g image

getImageId

public long getImageId()
Description copied from interface: IGImageModel
Gets the image id of this i g image.

Specified by:
getImageId in interface IGImageModel
Returns:
the image id of this i g image

setImageId

public void setImageId(long imageId)
Description copied from interface: IGImageModel
Sets the image id of this i g image.

Specified by:
setImageId in interface IGImageModel
Parameters:
imageId - the image id of this i g image

getGroupId

public long getGroupId()
Description copied from interface: IGImageModel
Gets the group id of this i g image.

Specified by:
getGroupId in interface IGImageModel
Returns:
the group id of this i g image

setGroupId

public void setGroupId(long groupId)
Description copied from interface: IGImageModel
Sets the group id of this i g image.

Specified by:
setGroupId in interface IGImageModel
Parameters:
groupId - the group id of this i g image

getCompanyId

public long getCompanyId()
Description copied from interface: IGImageModel
Gets the company id of this i g image.

Specified by:
getCompanyId in interface IGImageModel
Returns:
the company id of this i g image

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: IGImageModel
Sets the company id of this i g image.

Specified by:
setCompanyId in interface IGImageModel
Parameters:
companyId - the company id of this i g image

getUserId

public long getUserId()
Description copied from interface: IGImageModel
Gets the user id of this i g image.

Specified by:
getUserId in interface IGImageModel
Returns:
the user id of this i g image

setUserId

public void setUserId(long userId)
Description copied from interface: IGImageModel
Sets the user id of this i g image.

Specified by:
setUserId in interface IGImageModel
Parameters:
userId - the user id of this i g image

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: IGImageModel
Gets the user uuid of this i g image.

Specified by:
getUserUuid in interface IGImageModel
Returns:
the user uuid of this i g image
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: IGImageModel
Sets the user uuid of this i g image.

Specified by:
setUserUuid in interface IGImageModel
Parameters:
userUuid - the user uuid of this i g image

getCreateDate

public Date getCreateDate()
Description copied from interface: IGImageModel
Gets the create date of this i g image.

Specified by:
getCreateDate in interface IGImageModel
Returns:
the create date of this i g image

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: IGImageModel
Sets the create date of this i g image.

Specified by:
setCreateDate in interface IGImageModel
Parameters:
createDate - the create date of this i g image

getModifiedDate

public Date getModifiedDate()
Description copied from interface: IGImageModel
Gets the modified date of this i g image.

Specified by:
getModifiedDate in interface IGImageModel
Returns:
the modified date of this i g image

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: IGImageModel
Sets the modified date of this i g image.

Specified by:
setModifiedDate in interface IGImageModel
Parameters:
modifiedDate - the modified date of this i g image

getFolderId

public long getFolderId()
Description copied from interface: IGImageModel
Gets the folder id of this i g image.

Specified by:
getFolderId in interface IGImageModel
Returns:
the folder id of this i g image

setFolderId

public void setFolderId(long folderId)
Description copied from interface: IGImageModel
Sets the folder id of this i g image.

Specified by:
setFolderId in interface IGImageModel
Parameters:
folderId - the folder id of this i g image

getName

public String getName()
Description copied from interface: IGImageModel
Gets the name of this i g image.

Specified by:
getName in interface IGImageModel
Returns:
the name of this i g image

setName

public void setName(String name)
Description copied from interface: IGImageModel
Sets the name of this i g image.

Specified by:
setName in interface IGImageModel
Parameters:
name - the name of this i g image

getDescription

public String getDescription()
Description copied from interface: IGImageModel
Gets the description of this i g image.

Specified by:
getDescription in interface IGImageModel
Returns:
the description of this i g image

setDescription

public void setDescription(String description)
Description copied from interface: IGImageModel
Sets the description of this i g image.

Specified by:
setDescription in interface IGImageModel
Parameters:
description - the description of this i g image

getSmallImageId

public long getSmallImageId()
Description copied from interface: IGImageModel
Gets the small image id of this i g image.

Specified by:
getSmallImageId in interface IGImageModel
Returns:
the small image id of this i g image

setSmallImageId

public void setSmallImageId(long smallImageId)
Description copied from interface: IGImageModel
Sets the small image id of this i g image.

Specified by:
setSmallImageId in interface IGImageModel
Parameters:
smallImageId - the small image id of this i g image

getLargeImageId

public long getLargeImageId()
Description copied from interface: IGImageModel
Gets the large image id of this i g image.

Specified by:
getLargeImageId in interface IGImageModel
Returns:
the large image id of this i g image

setLargeImageId

public void setLargeImageId(long largeImageId)
Description copied from interface: IGImageModel
Sets the large image id of this i g image.

Specified by:
setLargeImageId in interface IGImageModel
Parameters:
largeImageId - the large image id of this i g image

getCustom1ImageId

public long getCustom1ImageId()
Description copied from interface: IGImageModel
Gets the custom1 image id of this i g image.

Specified by:
getCustom1ImageId in interface IGImageModel
Returns:
the custom1 image id of this i g image

setCustom1ImageId

public void setCustom1ImageId(long custom1ImageId)
Description copied from interface: IGImageModel
Sets the custom1 image id of this i g image.

Specified by:
setCustom1ImageId in interface IGImageModel
Parameters:
custom1ImageId - the custom1 image id of this i g image

getCustom2ImageId

public long getCustom2ImageId()
Description copied from interface: IGImageModel
Gets the custom2 image id of this i g image.

Specified by:
getCustom2ImageId in interface IGImageModel
Returns:
the custom2 image id of this i g image

setCustom2ImageId

public void setCustom2ImageId(long custom2ImageId)
Description copied from interface: IGImageModel
Sets the custom2 image id of this i g image.

Specified by:
setCustom2ImageId in interface IGImageModel
Parameters:
custom2ImageId - the custom2 image id of this i g image

toEscapedModel

public IGImage toEscapedModel()
Description copied from interface: IGImageModel
Gets a copy of this i g image as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface IGImageModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<IGImage>
Specified by:
isNew in interface IGImageModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<IGImage>
Specified by:
setNew in interface IGImageModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<IGImage>
Specified by:
isCachedModel in interface IGImageModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<IGImage>
Specified by:
setCachedModel in interface IGImageModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<IGImage>
Specified by:
isEscapedModel in interface IGImageModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<IGImage>
Specified by:
setEscapedModel in interface IGImageModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<IGImage>
Specified by:
getPrimaryKeyObj in interface IGImageModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<IGImage>
Specified by:
getExpandoBridge in interface IGImageModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<IGImage>
Specified by:
setExpandoBridgeAttributes in interface IGImageModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<IGImage>
Specified by:
clone in interface IGImageModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(IGImage igImage)
Specified by:
compareTo in interface IGImageModel
Specified by:
compareTo in interface Comparable<IGImage>

hashCode

public int hashCode()
Specified by:
hashCode in interface IGImageModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface IGImageModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<IGImage>
Specified by:
toXmlString in interface IGImageModel
Returns:
the XML representation of this model instance

getFolder

public IGFolder getFolder()
Specified by:
getFolder in interface IGImage

getImageSize

public int getImageSize()
Specified by:
getImageSize in interface IGImage

getImageType

public String getImageType()
Specified by:
getImageType in interface IGImage

getNameWithExtension

public String getNameWithExtension()
Specified by:
getNameWithExtension in interface IGImage

setImageType

public void setImageType(String imageType)
Specified by:
setImageType in interface IGImage

getWrappedIGImage

public IGImage getWrappedIGImage()

Liferay 6.0.5