|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 FormField 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 ImageModel
public void setPrimaryKey(long primaryKey)
ImageModel
setPrimaryKey
in interface ImageModel
primaryKey
- the primary key of this imagepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Image>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ImageModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Image>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ImageModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 ImageModel
public void setImageId(long imageId)
ImageModel
setImageId
in interface ImageModel
imageId
- the image ID of this image@JSON public Date getModifiedDate()
ImageModel
getModifiedDate
in interface ImageModel
public void setModifiedDate(Date modifiedDate)
ImageModel
setModifiedDate
in interface ImageModel
modifiedDate
- the modified date of this image@JSON public String getType()
ImageModel
getType
in interface ImageModel
public void setType(String type)
ImageModel
setType
in interface ImageModel
type
- the type of this image@JSON public int getHeight()
ImageModel
getHeight
in interface ImageModel
public void setHeight(int height)
ImageModel
setHeight
in interface ImageModel
height
- the height of this image@JSON public int getWidth()
ImageModel
getWidth
in interface ImageModel
public void setWidth(int width)
ImageModel
setWidth
in interface ImageModel
width
- the width of this image@JSON public int getSize()
ImageModel
getSize
in interface ImageModel
public void setSize(int size)
ImageModel
setSize
in interface ImageModel
size
- the size of this imagepublic int getOriginalSize()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Image>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ImageModel
getExpandoBridge
in class BaseModelImpl<Image>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Image>
setExpandoBridgeAttributes
in interface ImageModel
setExpandoBridgeAttributes
in class BaseModelImpl<Image>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Image toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Image>
toEscapedModel
in interface ImageModel
toEscapedModel
in class BaseModelImpl<Image>
AutoEscapeBeanHandler
public Object clone()
BaseModel
clone
in interface BaseModel<Image>
clone
in interface ImageModel
clone
in class BaseModelImpl<Image>
public int compareTo(Image image)
compareTo
in interface ImageModel
compareTo
in interface Comparable<Image>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface ImageModel
hashCode
in class Object
public 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 ImageModel
toCacheModel
in class BaseModelImpl<Image>
public String toString()
toString
in interface ImageModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Image>
toXmlString
in interface ImageModel
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |