|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.asset.model.adapter.impl.StagedAssetLinkImpl
public class StagedAssetLinkImpl
| Field Summary |
|---|
| Fields inherited from interface com.liferay.portlet.asset.model.AssetLink |
|---|
ENTRY_ID2_ACCESSOR, LINK_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
StagedAssetLinkImpl()
|
|
StagedAssetLinkImpl(AssetLink assetLink)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(AssetLink assetLink)
|
long |
getCompanyId()
Returns the company ID of this asset link. |
Date |
getCreateDate()
Returns the create date of this asset link. |
String |
getEntry1ClassName()
|
String |
getEntry1Uuid()
|
String |
getEntry2ClassName()
|
String |
getEntry2Uuid()
|
long |
getEntryId1()
Returns the entry id1 of this asset link. |
long |
getEntryId2()
Returns the entry id2 of this asset link. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getLinkId()
Returns the link ID of this asset link. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
|
long |
getPrimaryKey()
Returns the primary key of this asset link. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
StagedModelType |
getStagedModelType()
|
int |
getType()
Returns the type of this asset link. |
long |
getUserId()
Returns the user ID of this asset link. |
String |
getUserName()
Returns the user name of this asset link. |
String |
getUserUuid()
Returns the user uuid of this asset link. |
String |
getUuid()
|
int |
getWeight()
Returns the weight of this asset link. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
protected void |
populateEntry1Attributes()
|
protected void |
populateEntry2Attributes()
|
protected void |
populateUuid()
|
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setAssetLink(AssetLink assetLink)
|
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 asset link. |
void |
setCreateDate(Date createDate)
Sets the create date of this asset link. |
void |
setEntryId1(long entryId1)
Sets the entry id1 of this asset link. |
void |
setEntryId2(long entryId2)
Sets the entry id2 of this asset link. |
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 |
setLinkId(long linkId)
Sets the link ID of this asset link. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date date)
|
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 asset link. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setType(int type)
Sets the type of this asset link. |
void |
setUserId(long userId)
Sets the user ID of this asset link. |
void |
setUserName(String userName)
Sets the user name of this asset link. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset link. |
void |
setUuid(String uuid)
|
void |
setWeight(int weight)
Sets the weight of this asset link. |
CacheModel<AssetLink> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
AssetLink |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
AssetLink |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portlet.asset.model.AssetLinkModel |
|---|
hashCode, toString |
| Constructor Detail |
|---|
public StagedAssetLinkImpl()
public StagedAssetLinkImpl(AssetLink assetLink)
| Method Detail |
|---|
public Object clone()
BaseModel
clone in interface BaseModel<AssetLink>clone in interface StagedModelclone in interface AssetLinkModelclone in class Objectpublic int compareTo(AssetLink assetLink)
compareTo in interface AssetLinkModelcompareTo in interface Comparable<AssetLink>public long getCompanyId()
AssetLinkModel
getCompanyId in interface ShardedModelgetCompanyId in interface StagedModelgetCompanyId in interface AssetLinkModelpublic Date getCreateDate()
AssetLinkModel
getCreateDate in interface StagedModelgetCreateDate in interface AssetLinkModelpublic String getEntry1ClassName()
getEntry1ClassName in interface StagedAssetLinkpublic String getEntry1Uuid()
getEntry1Uuid in interface StagedAssetLinkpublic String getEntry2ClassName()
getEntry2ClassName in interface StagedAssetLinkpublic String getEntry2Uuid()
getEntry2Uuid in interface StagedAssetLinkpublic long getEntryId1()
AssetLinkModel
getEntryId1 in interface AssetLinkModelpublic long getEntryId2()
AssetLinkModel
getEntryId2 in interface AssetLinkModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<AssetLink>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface AssetLinkModelpublic long getLinkId()
AssetLinkModel
getLinkId in interface AssetLinkModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<AssetLink>public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Date getModifiedDate()
getModifiedDate in interface StagedModelpublic long getPrimaryKey()
AssetLinkModel
getPrimaryKey in interface AssetLinkModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<AssetLink>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface AssetLinkModelpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic int getType()
AssetLinkModel
getType in interface AssetLinkModelpublic long getUserId()
AssetLinkModel
getUserId in interface AssetLinkModelpublic String getUserName()
AssetLinkModel
getUserName in interface AssetLinkModelpublic String getUserUuid()
AssetLinkModel
getUserUuid in interface AssetLinkModelpublic String getUuid()
getUuid in interface StagedModelpublic int getWeight()
AssetLinkModel
getWeight in interface AssetLinkModelpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<AssetLink>isCachedModel in interface AssetLinkModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<AssetLink>true if this model's entity cache is enabled;
false otherwisepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<AssetLink>isEscapedModel in interface AssetLinkModeltrue if this model instance is escaped;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<AssetLink>true if this model's finder cache is enabled;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<AssetLink>isNew in interface AssetLinkModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<AssetLink>public void setAssetLink(AssetLink assetLink)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<AssetLink>setCachedModel in interface AssetLinkModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
AssetLinkModel
setCompanyId in interface ShardedModelsetCompanyId in interface StagedModelsetCompanyId in interface AssetLinkModelcompanyId - the company ID of this asset linkpublic void setCreateDate(Date createDate)
AssetLinkModel
setCreateDate in interface StagedModelsetCreateDate in interface AssetLinkModelcreateDate - the create date of this asset linkpublic void setEntryId1(long entryId1)
AssetLinkModel
setEntryId1 in interface AssetLinkModelentryId1 - the entry id1 of this asset linkpublic void setEntryId2(long entryId2)
AssetLinkModel
setEntryId2 in interface AssetLinkModelentryId2 - the entry id2 of this asset linkpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<AssetLink>setExpandoBridgeAttributes in interface AssetLinkModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setLinkId(long linkId)
AssetLinkModel
setLinkId in interface AssetLinkModellinkId - the link ID of this asset linkpublic void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<AssetLink>public void setModifiedDate(Date date)
setModifiedDate in interface StagedModelpublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<AssetLink>setNew in interface AssetLinkModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
AssetLinkModel
setPrimaryKey in interface AssetLinkModelprimaryKey - the primary key of this asset linkpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<AssetLink>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface AssetLinkModelprimaryKeyObj - the primary key of this model instancepublic void setType(int type)
AssetLinkModel
setType in interface AssetLinkModeltype - the type of this asset linkpublic void setUserId(long userId)
AssetLinkModel
setUserId in interface AssetLinkModeluserId - the user ID of this asset linkpublic void setUserName(String userName)
AssetLinkModel
setUserName in interface AssetLinkModeluserName - the user name of this asset linkpublic void setUserUuid(String userUuid)
AssetLinkModel
setUserUuid in interface AssetLinkModeluserUuid - the user uuid of this asset linkpublic void setUuid(String uuid)
setUuid in interface StagedModelpublic void setWeight(int weight)
AssetLinkModel
setWeight in interface AssetLinkModelweight - the weight of this asset linkpublic CacheModel<AssetLink> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<AssetLink>toCacheModel in interface AssetLinkModelpublic AssetLink toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<AssetLink>toEscapedModel in interface AssetLinkModelAutoEscapeBeanHandlerpublic AssetLink toUnescapedModel()
toUnescapedModel in interface BaseModel<AssetLink>toUnescapedModel in interface AssetLinkModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<AssetLink>toXmlString in interface AssetLinkModelprotected void populateEntry1Attributes()
protected void populateEntry2Attributes()
protected void populateUuid()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||