|
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.portal.model.impl.BaseModelImpl<SocialRelation>
com.liferay.portlet.social.model.impl.SocialRelationModelImpl
@ProviderType public class SocialRelationModelImpl
The base model implementation for the SocialRelation service. Represents a row in the "SocialRelation" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface SocialRelationModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in SocialRelationImpl.
SocialRelationImpl,
SocialRelation,
SocialRelationModel,
Serialized Form| Field Summary | |
|---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
RELATIONID_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static Map<String,Integer> |
TABLE_COLUMNS_MAP
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
static long |
TYPE_COLUMN_BITMASK
|
static long |
USERID1_COLUMN_BITMASK
|
static long |
USERID2_COLUMN_BITMASK
|
static long |
UUID_COLUMN_BITMASK
|
| Constructor Summary | |
|---|---|
SocialRelationModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(SocialRelation socialRelation)
|
boolean |
equals(Object obj)
|
long |
getColumnBitmask()
|
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 |
getOriginalCompanyId()
|
int |
getOriginalType()
|
long |
getOriginalUserId1()
|
long |
getOriginalUserId2()
|
String |
getOriginalUuid()
|
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. |
int |
hashCode()
|
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
void |
resetOriginalValues()
Reset all original fields to current values. |
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(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 |
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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portlet.social.model.SocialRelationModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final Map<String,Integer> TABLE_COLUMNS_MAP
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long COMPANYID_COLUMN_BITMASK
public static final long TYPE_COLUMN_BITMASK
public static final long USERID1_COLUMN_BITMASK
public static final long USERID2_COLUMN_BITMASK
public static final long UUID_COLUMN_BITMASK
public static final long RELATIONID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public SocialRelationModelImpl()
| Method Detail |
|---|
public long getPrimaryKey()
SocialRelationModel
getPrimaryKey in interface SocialRelationModelpublic void setPrimaryKey(long primaryKey)
SocialRelationModel
setPrimaryKey in interface SocialRelationModelprimaryKey - the primary key of this social relationpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<SocialRelation>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface SocialRelationModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<SocialRelation>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface SocialRelationModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<SocialRelation>getModelAttributes in class BaseModelImpl<SocialRelation>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<SocialRelation>setModelAttributes in class BaseModelImpl<SocialRelation>public String getUuid()
SocialRelationModel
getUuid in interface SocialRelationModelpublic void setUuid(String uuid)
SocialRelationModel
setUuid in interface SocialRelationModeluuid - the uuid of this social relationpublic String getOriginalUuid()
public long getRelationId()
SocialRelationModel
getRelationId in interface SocialRelationModelpublic void setRelationId(long relationId)
SocialRelationModel
setRelationId in interface SocialRelationModelrelationId - the relation ID of this social relationpublic long getCompanyId()
SocialRelationModel
getCompanyId in interface ShardedModelgetCompanyId in interface SocialRelationModelpublic void setCompanyId(long companyId)
SocialRelationModel
setCompanyId in interface ShardedModelsetCompanyId in interface SocialRelationModelcompanyId - the company ID of this social relationpublic long getOriginalCompanyId()
public long getCreateDate()
SocialRelationModel
getCreateDate in interface SocialRelationModelpublic void setCreateDate(long createDate)
SocialRelationModel
setCreateDate in interface SocialRelationModelcreateDate - the create date of this social relationpublic long getUserId1()
SocialRelationModel
getUserId1 in interface SocialRelationModelpublic void setUserId1(long userId1)
SocialRelationModel
setUserId1 in interface SocialRelationModeluserId1 - the user id1 of this social relationpublic long getOriginalUserId1()
public long getUserId2()
SocialRelationModel
getUserId2 in interface SocialRelationModelpublic void setUserId2(long userId2)
SocialRelationModel
setUserId2 in interface SocialRelationModeluserId2 - the user id2 of this social relationpublic long getOriginalUserId2()
public int getType()
SocialRelationModel
getType in interface SocialRelationModelpublic void setType(int type)
SocialRelationModel
setType in interface SocialRelationModeltype - the type of this social relationpublic int getOriginalType()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<SocialRelation>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface SocialRelationModelgetExpandoBridge in class BaseModelImpl<SocialRelation>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelsetExpandoBridgeAttributes in class BaseModelImpl<SocialRelation>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public SocialRelation toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<SocialRelation>toEscapedModel in interface SocialRelationModeltoEscapedModel in class BaseModelImpl<SocialRelation>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<SocialRelation>clone in interface SocialRelationModelclone in class BaseModelImpl<SocialRelation>public int compareTo(SocialRelation socialRelation)
compareTo in interface SocialRelationModelcompareTo in interface Comparable<SocialRelation>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface SocialRelationModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue 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()
BaseModeltrue 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>resetOriginalValues in class BaseModelImpl<SocialRelation>public CacheModel<SocialRelation> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<SocialRelation>toCacheModel in interface SocialRelationModeltoCacheModel in class BaseModelImpl<SocialRelation>public String toString()
toString in interface SocialRelationModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<SocialRelation>toXmlString in interface SocialRelationModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||