@ProviderType public interface ImageModel extends BaseModel<Image>, MVCCModel, ShardedModel
This interface and its corresponding implementation com.liferay.portal.model.impl.ImageModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portal.model.impl.ImageImpl.
Image,
com.liferay.portal.model.impl.ImageImpl,
com.liferay.portal.model.impl.ImageModelImpl| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Image image) |
long |
getCompanyId()
Returns the company ID of this image.
|
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.
|
Date |
getModifiedDate()
Returns the modified date of this image.
|
long |
getMvccVersion()
Returns the mvcc version of this image.
|
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() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isNew()
Returns
true 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 image.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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 |
setModifiedDate(Date modifiedDate)
Sets the modified date of this image.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this image.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
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. |
String |
toString() |
Image |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributesgetModelClass, getModelClassNamelong getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this imagelong getMvccVersion()
getMvccVersion in interface MVCCModelvoid setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this imagelong getImageId()
void setImageId(long imageId)
imageId - the image ID of this imagelong getCompanyId()
getCompanyId in interface ShardedModelvoid setCompanyId(long companyId)
setCompanyId in interface ShardedModelcompanyId - the company ID of this imageDate getModifiedDate()
void setModifiedDate(Date modifiedDate)
modifiedDate - the modified date of this image@AutoEscape String getType()
void setType(String type)
type - the type of this imageint getHeight()
void setHeight(int height)
height - the height of this imageint getWidth()
void setWidth(int width)
width - the width of this imageint getSize()
void setSize(int size)
size - the size of this imageboolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.void setNew(boolean n)
BaseModelboolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Image>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Image>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Image>true if this model instance is escaped;
false otherwiseSerializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Image>getPrimaryKeyObj in interface ClassedModelvoid setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Image>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Image>getExpandoBridge in interface ClassedModelvoid setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Image>void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Image>void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Image>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()Object clone()
BaseModelint compareTo(Image image)
compareTo in interface Comparable<Image>CacheModel<Image> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Image>Image toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Image>AutoEscapeBeanHandlerImage toUnescapedModel()
toUnescapedModel in interface BaseModel<Image>String toXmlString()
BaseModeltoXmlString in interface BaseModel<Image>