Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class ImageModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Image>
      extended by com.liferay.portal.model.impl.ImageModelImpl
All Implemented Interfaces:
BaseModel<Image>, ClassedModel, ImageModel, Serializable, Cloneable, Comparable<Image>
Direct Known Subclasses:
ImageBaseImpl

@JSON(strict=true)
public class ImageModelImpl
extends BaseModelImpl<Image>
implements ImageModel

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

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

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

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
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 long SIZE_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
ImageModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Image image)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 int getHeight()
          Returns the height of this image.
 long getImageId()
          Returns the image ID of this image.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this image.
 int getOriginalSize()
           
 long getPrimaryKey()
          Returns the primary key of this image.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getSize()
          Returns the size of this image.
 String getText()
          Returns the text of this image.
 String getType()
          Returns the type of this image.
 int getWidth()
          Returns the width of this image.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setHeight(int height)
          Sets the height of this image.
 void setImageId(long imageId)
          Sets the image ID of this image.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this image.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this image.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSize(int size)
          Sets the size of this image.
 void setText(String text)
          Sets the text of this image.
 void setType(String type)
          Sets the type of this image.
 void setWidth(int width)
          Sets the width of this image.
 CacheModel<Image> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Image toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static Image toModel(ImageSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Image> toModels(ImageSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 Image toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.ImageModel
isCachedModel, isEscapedModel, isNew, setCachedModel, 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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

SIZE_COLUMN_BITMASK

public static long SIZE_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ImageModelImpl

public ImageModelImpl()
Method Detail

toModel

public static Image toModel(ImageSoap 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<Image> toModels(ImageSoap[] 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: ImageModel
Returns the primary key of this image.

Specified by:
getPrimaryKey in interface ImageModel
Returns:
the primary key of this image

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: ImageModel
Sets the primary key of this image.

Specified by:
setPrimaryKey in interface ImageModel
Parameters:
primaryKey - the primary key of this image

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Image>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ImageModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Image>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ImageModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Image>
Overrides:
getModelAttributes in class BaseModelImpl<Image>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Image>
Overrides:
setModelAttributes in class BaseModelImpl<Image>

getImageId

@JSON
public long getImageId()
Description copied from interface: ImageModel
Returns the image ID of this image.

Specified by:
getImageId in interface ImageModel
Returns:
the image ID of this image

setImageId

public void setImageId(long imageId)
Description copied from interface: ImageModel
Sets the image ID of this image.

Specified by:
setImageId in interface ImageModel
Parameters:
imageId - the image ID of this image

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: ImageModel
Returns the modified date of this image.

Specified by:
getModifiedDate in interface ImageModel
Returns:
the modified date of this image

setModifiedDate

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

Specified by:
setModifiedDate in interface ImageModel
Parameters:
modifiedDate - the modified date of this image

getText

@JSON
public String getText()
Description copied from interface: ImageModel
Returns the text of this image.

Specified by:
getText in interface ImageModel
Returns:
the text of this image

setText

public void setText(String text)
Description copied from interface: ImageModel
Sets the text of this image.

Specified by:
setText in interface ImageModel
Parameters:
text - the text of this image

getType

@JSON
public String getType()
Description copied from interface: ImageModel
Returns the type of this image.

Specified by:
getType in interface ImageModel
Returns:
the type of this image

setType

public void setType(String type)
Description copied from interface: ImageModel
Sets the type of this image.

Specified by:
setType in interface ImageModel
Parameters:
type - the type of this image

getHeight

@JSON
public int getHeight()
Description copied from interface: ImageModel
Returns the height of this image.

Specified by:
getHeight in interface ImageModel
Returns:
the height of this image

setHeight

public void setHeight(int height)
Description copied from interface: ImageModel
Sets the height of this image.

Specified by:
setHeight in interface ImageModel
Parameters:
height - the height of this image

getWidth

@JSON
public int getWidth()
Description copied from interface: ImageModel
Returns the width of this image.

Specified by:
getWidth in interface ImageModel
Returns:
the width of this image

setWidth

public void setWidth(int width)
Description copied from interface: ImageModel
Sets the width of this image.

Specified by:
setWidth in interface ImageModel
Parameters:
width - the width of this image

getSize

@JSON
public int getSize()
Description copied from interface: ImageModel
Returns the size of this image.

Specified by:
getSize in interface ImageModel
Returns:
the size of this image

setSize

public void setSize(int size)
Description copied from interface: ImageModel
Sets the size of this image.

Specified by:
setSize in interface ImageModel
Parameters:
size - the size of this image

getOriginalSize

public int getOriginalSize()

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Image>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ImageModel
Overrides:
getExpandoBridge in class BaseModelImpl<Image>
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<Image>
Specified by:
setExpandoBridgeAttributes in interface ImageModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Image>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public Image toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Image>
Specified by:
toEscapedModel in interface ImageModel
Overrides:
toEscapedModel in class BaseModelImpl<Image>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Image toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Image>
Specified by:
toUnescapedModel in interface ImageModel
Overrides:
toUnescapedModel in class BaseModelImpl<Image>

clone

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

Specified by:
clone in interface BaseModel<Image>
Specified by:
clone in interface ImageModel
Specified by:
clone in class BaseModelImpl<Image>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Image image)
Specified by:
compareTo in interface ImageModel
Specified by:
compareTo in interface Comparable<Image>

equals

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

hashCode

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

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Image>
Overrides:
resetOriginalValues in class BaseModelImpl<Image>

toCacheModel

public CacheModel<Image> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Image>
Specified by:
toCacheModel in interface ImageModel
Overrides:
toCacheModel in class BaseModelImpl<Image>
Returns:
the cache model object

toString

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

toXmlString

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

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

Liferay 6.1.2-ce-ga3