|
Liferay 6.0.5 | |||||||||
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
.
Never modify or reference this class directly. All methods that expect a social relation model instance should use the SocialRelation
interface instead.
SocialRelationImpl
,
SocialRelation
,
SocialRelationModel
,
Serialized FormField Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
SocialRelationModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(SocialRelation socialRelation)
|
boolean |
equals(Object obj)
|
long |
getCompanyId()
Gets the company id of this social relation. |
long |
getCreateDate()
Gets the create date of this social relation. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
int |
getOriginalType()
|
long |
getOriginalUserId1()
|
long |
getOriginalUserId2()
|
long |
getPrimaryKey()
Gets the primary key of this social relation. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRelationId()
Gets the relation id of this social relation. |
int |
getType()
Gets the type of this social relation. |
long |
getUserId1()
Gets the user id1 of this social relation. |
long |
getUserId2()
Gets the user id2 of this social relation. |
String |
getUuid()
Gets the uuid of this social relation. |
int |
hashCode()
|
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 |
setPrimaryKey(long pk)
Sets the primary key of this social relation |
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. |
SocialRelation |
toEscapedModel()
Gets a copy of this social relation as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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, setEscapedModel, 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 long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public SocialRelationModelImpl()
Method Detail |
---|
public long getPrimaryKey()
SocialRelationModel
getPrimaryKey
in interface SocialRelationModel
public void setPrimaryKey(long pk)
SocialRelationModel
setPrimaryKey
in interface SocialRelationModel
pk
- the primary key of this social relationpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SocialRelation>
getPrimaryKeyObj
in interface SocialRelationModel
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 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 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 SocialRelation toEscapedModel()
SocialRelationModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface SocialRelationModel
AutoEscapeBeanHandler
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SocialRelation>
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 context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
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 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.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |