Liferay 6.0.5

com.liferay.portlet.imagegallery.model.impl
Class IGImageModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<IGImage>
      extended by com.liferay.portlet.imagegallery.model.impl.IGImageModelImpl
All Implemented Interfaces:
BaseModel<IGImage>, IGImageModel, Serializable, Cloneable, Comparable<IGImage>
Direct Known Subclasses:
IGImageImpl

public class IGImageModelImpl
extends BaseModelImpl<IGImage>
implements IGImageModel

The base model implementation for the IGImage service. Represents a row in the "IGImage" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface IGImageModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in IGImageImpl.

Never modify or reference this class directly. All methods that expect a i g image model instance should use the IGImage interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
IGImageModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(IGImage igImage)
           
 boolean equals(Object obj)
           
 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.
 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.
 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.
 long getOriginalCustom1ImageId()
           
 long getOriginalCustom2ImageId()
           
 long getOriginalGroupId()
           
 long getOriginalLargeImageId()
           
 long getOriginalSmallImageId()
           
 String getOriginalUuid()
           
 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.
 int hashCode()
           
 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 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 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 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.
static IGImage toModel(IGImageSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<IGImage> toModels(IGImageSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.imagegallery.model.IGImageModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

IGImageModelImpl

public IGImageModelImpl()
Method Detail

toModel

public static IGImage toModel(IGImageSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<IGImage> toModels(IGImageSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

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

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

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

getOriginalUuid

public String getOriginalUuid()

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

getOriginalGroupId

public long getOriginalGroupId()

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

getOriginalSmallImageId

public long getOriginalSmallImageId()

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

getOriginalLargeImageId

public long getOriginalLargeImageId()

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

getOriginalCustom1ImageId

public long getOriginalCustom1ImageId()

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

getOriginalCustom2ImageId

public long getOriginalCustom2ImageId()

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<IGImage>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<IGImage>
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
Specified by:
clone in class BaseModelImpl<IGImage>
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>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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

Liferay 6.0.5