@ProviderType public interface ImageModel extends BaseModel<Image>, MVCCModel, ShardedModel
This interface and its corresponding implementation ImageModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ImageImpl
.
Image
,
ImageImpl
,
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, setModelAttributes
getModelClass, getModelClassName
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this imagelong getMvccVersion()
getMvccVersion
in interface MVCCModel
void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this imagelong getImageId()
void setImageId(long imageId)
imageId
- the image ID of this imagelong getCompanyId()
getCompanyId
in interface ShardedModel
void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
companyId
- 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()
BaseModel
true
if this model instance does not yet exist in
the database.void setNew(boolean n)
BaseModel
boolean isCachedModel()
BaseModel
true
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)
BaseModel
setCachedModel
in interface BaseModel<Image>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<Image>
true
if this model instance is escaped;
false
otherwiseSerializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Image>
getPrimaryKeyObj
in interface ClassedModel
void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Image>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Image>
getExpandoBridge
in interface ClassedModel
void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Image>
void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Image>
void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Image>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
Object clone()
BaseModel
int hashCode()
hashCode
in class Object
CacheModel<Image> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Image>
Image toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Image>
AutoEscapeBeanHandler
Image toUnescapedModel()
toUnescapedModel
in interface BaseModel<Image>
String toString()
toString
in class Object
String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Image>