@ProviderType public class SocialRelationWrapper extends Object implements SocialRelation, ModelWrapper<SocialRelation>
This class is a wrapper for SocialRelation
.
SocialRelation
,
Serialized FormRELATION_ID_ACCESSOR
Constructor and Description |
---|
SocialRelationWrapper(SocialRelation socialRelation) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(SocialRelation socialRelation) |
boolean |
equals(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.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this social relation.
|
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.
|
String |
getUuid()
Returns the uuid of this social relation.
|
SocialRelation |
getWrappedModel() |
int |
hashCode() |
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.
|
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(Map<String,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(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(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 . |
String |
toString() |
SocialRelation |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public SocialRelationWrapper(SocialRelation socialRelation)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<SocialRelation>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<SocialRelation>
public Object clone()
BaseModel
clone
in interface BaseModel<SocialRelation>
clone
in interface SocialRelationModel
clone
in class Object
public int compareTo(SocialRelation socialRelation)
compareTo
in interface SocialRelationModel
compareTo
in interface Comparable<SocialRelation>
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface SocialRelationModel
public long getCreateDate()
getCreateDate
in interface SocialRelationModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SocialRelation>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface SocialRelationModel
public long getPrimaryKey()
getPrimaryKey
in interface SocialRelationModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SocialRelation>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface SocialRelationModel
public long getRelationId()
getRelationId
in interface SocialRelationModel
public int getType()
getType
in interface SocialRelationModel
public long getUserId1()
getUserId1
in interface SocialRelationModel
public long getUserId2()
getUserId2
in interface SocialRelationModel
public String getUuid()
getUuid
in interface SocialRelationModel
public int hashCode()
hashCode
in interface SocialRelationModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<SocialRelation>
isCachedModel
in interface SocialRelationModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<SocialRelation>
isEscapedModel
in interface SocialRelationModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<SocialRelation>
isNew
in interface SocialRelationModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<SocialRelation>
setCachedModel
in interface SocialRelationModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface SocialRelationModel
companyId
- the company ID of this social relationpublic void setCreateDate(long createDate)
setCreateDate
in interface SocialRelationModel
createDate
- the create date of this social relationpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<SocialRelation>
setNew
in interface SocialRelationModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface SocialRelationModel
primaryKey
- the primary key of this social relationpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<SocialRelation>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface SocialRelationModel
primaryKeyObj
- the primary key of this model instancepublic void setRelationId(long relationId)
setRelationId
in interface SocialRelationModel
relationId
- the relation ID of this social relationpublic void setType(int type)
setType
in interface SocialRelationModel
type
- the type of this social relationpublic void setUserId1(long userId1)
setUserId1
in interface SocialRelationModel
userId1
- the user id1 of this social relationpublic void setUserId2(long userId2)
setUserId2
in interface SocialRelationModel
userId2
- the user id2 of this social relationpublic void setUuid(String uuid)
setUuid
in interface SocialRelationModel
uuid
- the uuid of this social relationpublic CacheModel<SocialRelation> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<SocialRelation>
toCacheModel
in interface SocialRelationModel
public SocialRelation toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<SocialRelation>
toEscapedModel
in interface SocialRelationModel
AutoEscapeBeanHandler
public String toString()
toString
in interface SocialRelationModel
toString
in class Object
public SocialRelation toUnescapedModel()
toUnescapedModel
in interface BaseModel<SocialRelation>
toUnescapedModel
in interface SocialRelationModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<SocialRelation>
toXmlString
in interface SocialRelationModel
public boolean equals(Object obj)
equals
in class Object
public SocialRelation getWrappedModel()
getWrappedModel
in interface ModelWrapper<SocialRelation>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<SocialRelation>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<SocialRelation>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<SocialRelation>