|
Liferay 6.2.0-ce-rc2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Image>
com.liferay.portal.model.impl.ImageModelImpl
@JSON(strict=true) public class ImageModelImpl
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.
ImageImpl,
Image,
ImageModel,
Serialized Form| Field Summary | |
|---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
IMAGEID_COLUMN_BITMASK
|
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 |
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 |
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()
|
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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static long SIZE_COLUMN_BITMASK
public static long IMAGEID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public ImageModelImpl()
| Method Detail |
|---|
public static Image toModel(ImageSoap soapModel)
soapModel - the soap model instance to convert
public static List<Image> toModels(ImageSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
ImageModel
getPrimaryKey in interface ImageModelpublic void setPrimaryKey(long primaryKey)
ImageModel
setPrimaryKey in interface ImageModelprimaryKey - the primary key of this imagepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Image>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ImageModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Image>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ImageModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Image>getModelAttributes in class BaseModelImpl<Image>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Image>setModelAttributes in class BaseModelImpl<Image>@JSON public long getImageId()
ImageModel
getImageId in interface ImageModelpublic void setImageId(long imageId)
ImageModel
setImageId in interface ImageModelimageId - the image ID of this image@JSON public Date getModifiedDate()
ImageModel
getModifiedDate in interface ImageModelpublic void setModifiedDate(Date modifiedDate)
ImageModel
setModifiedDate in interface ImageModelmodifiedDate - the modified date of this image@JSON public String getType()
ImageModel
getType in interface ImageModelpublic void setType(String type)
ImageModel
setType in interface ImageModeltype - the type of this image@JSON public int getHeight()
ImageModel
getHeight in interface ImageModelpublic void setHeight(int height)
ImageModel
setHeight in interface ImageModelheight - the height of this image@JSON public int getWidth()
ImageModel
getWidth in interface ImageModelpublic void setWidth(int width)
ImageModel
setWidth in interface ImageModelwidth - the width of this image@JSON public int getSize()
ImageModel
getSize in interface ImageModelpublic void setSize(int size)
ImageModel
setSize in interface ImageModelsize - the size of this imagepublic int getOriginalSize()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Image>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ImageModelgetExpandoBridge in class BaseModelImpl<Image>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Image>setExpandoBridgeAttributes in interface ImageModelsetExpandoBridgeAttributes in class BaseModelImpl<Image>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Image toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Image>toEscapedModel in interface ImageModeltoEscapedModel in class BaseModelImpl<Image>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<Image>clone in interface ImageModelclone in class BaseModelImpl<Image>public int compareTo(Image image)
compareTo in interface ImageModelcompareTo in interface Comparable<Image>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface ImageModelhashCode in class Objectpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Image>resetOriginalValues in class BaseModelImpl<Image>public CacheModel<Image> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Image>toCacheModel in interface ImageModeltoCacheModel in class BaseModelImpl<Image>public String toString()
toString in interface ImageModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Image>toXmlString in interface ImageModel
|
Liferay 6.2.0-ce-rc2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||