|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.impl.BaseModelImpl<SocialRelation> com.liferay.portlet.social.model.impl.SocialRelationModelImpl
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 FormField 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 |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
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()
|
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()
|
SocialRelation |
toUnescapedModel()
|
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, setNew |
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, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
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 long COMPANYID_COLUMN_BITMASK
public static long TYPE_COLUMN_BITMASK
public static long USERID1_COLUMN_BITMASK
public static long USERID2_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public SocialRelationModelImpl()
Method Detail |
---|
public long getPrimaryKey()
SocialRelationModel
getPrimaryKey
in interface SocialRelationModel
public void setPrimaryKey(long primaryKey)
SocialRelationModel
setPrimaryKey
in interface SocialRelationModel
primaryKey
- the primary key of this social relationpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SocialRelation>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface SocialRelationModel
public 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 Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 SocialRelationModel
public void setUuid(String uuid)
SocialRelationModel
setUuid
in interface SocialRelationModel
uuid
- the uuid of this social relationpublic String getOriginalUuid()
public long getRelationId()
SocialRelationModel
getRelationId
in interface SocialRelationModel
public void setRelationId(long relationId)
SocialRelationModel
setRelationId
in interface SocialRelationModel
relationId
- the relation ID of this social relationpublic long getCompanyId()
SocialRelationModel
getCompanyId
in interface SocialRelationModel
public void setCompanyId(long companyId)
SocialRelationModel
setCompanyId
in interface SocialRelationModel
companyId
- the company ID of this social relationpublic long getOriginalCompanyId()
public long getCreateDate()
SocialRelationModel
getCreateDate
in interface SocialRelationModel
public void setCreateDate(long createDate)
SocialRelationModel
setCreateDate
in interface SocialRelationModel
createDate
- the create date of this social relationpublic long getUserId1()
SocialRelationModel
getUserId1
in interface SocialRelationModel
public void setUserId1(long userId1)
SocialRelationModel
setUserId1
in interface SocialRelationModel
userId1
- the user id1 of this social relationpublic long getOriginalUserId1()
public long getUserId2()
SocialRelationModel
getUserId2
in interface SocialRelationModel
public void setUserId2(long userId2)
SocialRelationModel
setUserId2
in interface SocialRelationModel
userId2
- the user id2 of this social relationpublic long getOriginalUserId2()
public int getType()
SocialRelationModel
getType
in interface SocialRelationModel
public void setType(int type)
SocialRelationModel
setType
in interface SocialRelationModel
type
- the type of this social relationpublic int getOriginalType()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SocialRelation>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface SocialRelationModel
getExpandoBridge
in class BaseModelImpl<SocialRelation>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
setExpandoBridgeAttributes
in class BaseModelImpl<SocialRelation>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public SocialRelation toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<SocialRelation>
toEscapedModel
in interface SocialRelationModel
toEscapedModel
in class BaseModelImpl<SocialRelation>
AutoEscapeBeanHandler
public SocialRelation toUnescapedModel()
toUnescapedModel
in interface BaseModel<SocialRelation>
toUnescapedModel
in interface SocialRelationModel
toUnescapedModel
in class BaseModelImpl<SocialRelation>
public Object clone()
BaseModel
clone
in interface BaseModel<SocialRelation>
clone
in interface SocialRelationModel
clone
in class BaseModelImpl<SocialRelation>
public int compareTo(SocialRelation socialRelation)
compareTo
in interface SocialRelationModel
compareTo
in interface Comparable<SocialRelation>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface SocialRelationModel
hashCode
in class Object
public 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 SocialRelationModel
toCacheModel
in class BaseModelImpl<SocialRelation>
public String toString()
toString
in interface SocialRelationModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<SocialRelation>
toXmlString
in interface SocialRelationModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |