@ProviderType public class SocialRelationWrapper extends java.lang.Object implements SocialRelation, ModelWrapper<SocialRelation>
This class is a wrapper for SocialRelation.
SocialRelation,
Serialized Form| Constructor and Description |
|---|
SocialRelationWrapper(SocialRelation socialRelation) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(SocialRelation socialRelation) |
boolean |
equals(java.lang.Object obj) |
long |
getCompanyId()
Returns the company ID of this social relation.
|
long |
getCreateDate()
Returns the create date of this social relation.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this social relation.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRelationId()
Returns the relation ID of this social relation.
|
int |
getType()
Returns the type of this social relation.
|
long |
getUserId1()
Returns the user id1 of this social relation.
|
long |
getUserId2()
Returns the user id2 of this social relation.
|
java.lang.String |
getUuid()
Returns the uuid of this social relation.
|
SocialRelation |
getWrappedModel() |
SocialRelation |
getWrappedSocialRelation()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
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 |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
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 social relation.
|
void |
setCreateDate(long createDate)
Sets the create date of this social relation.
|
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 |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
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 social relation.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRelationId(long relationId)
Sets the relation ID of this social relation.
|
void |
setType(int type)
Sets the type of this social relation.
|
void |
setUserId1(long userId1)
Sets the user id1 of this social relation.
|
void |
setUserId2(long userId2)
Sets the user id2 of this social relation.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this social relation.
|
CacheModel<SocialRelation> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
SocialRelation |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
SocialRelation |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public SocialRelationWrapper(SocialRelation socialRelation)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<SocialRelation>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<SocialRelation>public long getPrimaryKey()
getPrimaryKey in interface SocialRelationModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface SocialRelationModelprimaryKey - the primary key of this social relationpublic java.lang.String getUuid()
getUuid in interface SocialRelationModelpublic void setUuid(java.lang.String uuid)
setUuid in interface SocialRelationModeluuid - the uuid of this social relationpublic long getRelationId()
getRelationId in interface SocialRelationModelpublic void setRelationId(long relationId)
setRelationId in interface SocialRelationModelrelationId - the relation ID of this social relationpublic long getCompanyId()
getCompanyId in interface SocialRelationModelpublic void setCompanyId(long companyId)
setCompanyId in interface SocialRelationModelcompanyId - the company ID of this social relationpublic long getCreateDate()
getCreateDate in interface SocialRelationModelpublic void setCreateDate(long createDate)
setCreateDate in interface SocialRelationModelcreateDate - the create date of this social relationpublic long getUserId1()
getUserId1 in interface SocialRelationModelpublic void setUserId1(long userId1)
setUserId1 in interface SocialRelationModeluserId1 - the user id1 of this social relationpublic long getUserId2()
getUserId2 in interface SocialRelationModelpublic void setUserId2(long userId2)
setUserId2 in interface SocialRelationModeluserId2 - the user id2 of this social relationpublic int getType()
getType in interface SocialRelationModelpublic void setType(int type)
setType in interface SocialRelationModeltype - the type of this social relationpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<SocialRelation>isNew in interface SocialRelationModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<SocialRelation>setNew in interface SocialRelationModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<SocialRelation>isCachedModel in interface SocialRelationModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<SocialRelation>setCachedModel in interface SocialRelationModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<SocialRelation>isEscapedModel in interface SocialRelationModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<SocialRelation>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface SocialRelationModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<SocialRelation>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface SocialRelationModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<SocialRelation>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface SocialRelationModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<SocialRelation>clone in interface SocialRelationModelclone in class java.lang.Objectpublic int compareTo(SocialRelation socialRelation)
compareTo in interface SocialRelationModelcompareTo in interface java.lang.Comparable<SocialRelation>public int hashCode()
hashCode in interface SocialRelationModelhashCode in class java.lang.Objectpublic CacheModel<SocialRelation> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<SocialRelation>toCacheModel in interface SocialRelationModelpublic SocialRelation toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<SocialRelation>toEscapedModel in interface SocialRelationModelAutoEscapeBeanHandlerpublic SocialRelation toUnescapedModel()
toUnescapedModel in interface BaseModel<SocialRelation>toUnescapedModel in interface SocialRelationModelpublic java.lang.String toString()
toString in interface SocialRelationModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<SocialRelation>toXmlString in interface SocialRelationModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic SocialRelation getWrappedSocialRelation()
getWrappedModel()public SocialRelation getWrappedModel()
getWrappedModel in interface ModelWrapper<SocialRelation>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<SocialRelation>