@ProviderType public class AnnouncementsFlagWrapper extends Object implements AnnouncementsFlag, ModelWrapper<AnnouncementsFlag>
This class is a wrapper for AnnouncementsFlag
.
AnnouncementsFlag
,
Serialized FormFLAG_ID_ACCESSOR
Constructor and Description |
---|
AnnouncementsFlagWrapper(AnnouncementsFlag announcementsFlag) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(AnnouncementsFlag announcementsFlag) |
boolean |
equals(Object obj) |
long |
getCompanyId()
Returns the company ID of this announcements flag.
|
Date |
getCreateDate()
Returns the create date of this announcements flag.
|
long |
getEntryId()
Returns the entry ID of this announcements flag.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getFlagId()
Returns the flag ID of this announcements flag.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this announcements flag.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this announcements flag.
|
String |
getUserUuid()
Returns the user uuid of this announcements flag.
|
int |
getValue()
Returns the value of this announcements flag.
|
AnnouncementsFlag |
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 announcements flag.
|
void |
setCreateDate(Date createDate)
Sets the create date of this announcements flag.
|
void |
setEntryId(long entryId)
Sets the entry ID of this announcements flag.
|
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 |
setFlagId(long flagId)
Sets the flag ID of this announcements flag.
|
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 announcements flag.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this announcements flag.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this announcements flag.
|
void |
setValue(int value)
Sets the value of this announcements flag.
|
CacheModel<AnnouncementsFlag> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
AnnouncementsFlag |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
AnnouncementsFlag |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public AnnouncementsFlagWrapper(AnnouncementsFlag announcementsFlag)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AnnouncementsFlag>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AnnouncementsFlag>
public Object clone()
BaseModel
clone
in interface AnnouncementsFlagModel
clone
in interface BaseModel<AnnouncementsFlag>
clone
in class Object
public int compareTo(AnnouncementsFlag announcementsFlag)
compareTo
in interface AnnouncementsFlagModel
compareTo
in interface Comparable<AnnouncementsFlag>
public long getCompanyId()
getCompanyId
in interface AnnouncementsFlagModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface AnnouncementsFlagModel
public long getEntryId()
getEntryId
in interface AnnouncementsFlagModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AnnouncementsFlagModel
getExpandoBridge
in interface BaseModel<AnnouncementsFlag>
getExpandoBridge
in interface ClassedModel
public long getFlagId()
getFlagId
in interface AnnouncementsFlagModel
public long getPrimaryKey()
getPrimaryKey
in interface AnnouncementsFlagModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface AnnouncementsFlagModel
getPrimaryKeyObj
in interface BaseModel<AnnouncementsFlag>
getPrimaryKeyObj
in interface ClassedModel
public long getUserId()
getUserId
in interface AnnouncementsFlagModel
public String getUserUuid()
getUserUuid
in interface AnnouncementsFlagModel
public int getValue()
getValue
in interface AnnouncementsFlagModel
public int hashCode()
hashCode
in interface AnnouncementsFlagModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface AnnouncementsFlagModel
isCachedModel
in interface BaseModel<AnnouncementsFlag>
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 AnnouncementsFlagModel
isEscapedModel
in interface BaseModel<AnnouncementsFlag>
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 AnnouncementsFlagModel
isNew
in interface BaseModel<AnnouncementsFlag>
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 AnnouncementsFlagModel
setCachedModel
in interface BaseModel<AnnouncementsFlag>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface AnnouncementsFlagModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this announcements flagpublic void setCreateDate(Date createDate)
setCreateDate
in interface AnnouncementsFlagModel
createDate
- the create date of this announcements flagpublic void setEntryId(long entryId)
setEntryId
in interface AnnouncementsFlagModel
entryId
- the entry ID of this announcements flagpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface AnnouncementsFlagModel
setExpandoBridgeAttributes
in interface BaseModel<AnnouncementsFlag>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface AnnouncementsFlagModel
setExpandoBridgeAttributes
in interface BaseModel<AnnouncementsFlag>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AnnouncementsFlagModel
setExpandoBridgeAttributes
in interface BaseModel<AnnouncementsFlag>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setFlagId(long flagId)
setFlagId
in interface AnnouncementsFlagModel
flagId
- the flag ID of this announcements flagpublic void setNew(boolean n)
BaseModel
setNew
in interface AnnouncementsFlagModel
setNew
in interface BaseModel<AnnouncementsFlag>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AnnouncementsFlagModel
primaryKey
- the primary key of this announcements flagpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface AnnouncementsFlagModel
setPrimaryKeyObj
in interface BaseModel<AnnouncementsFlag>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setUserId(long userId)
setUserId
in interface AnnouncementsFlagModel
userId
- the user ID of this announcements flagpublic void setUserUuid(String userUuid)
setUserUuid
in interface AnnouncementsFlagModel
userUuid
- the user uuid of this announcements flagpublic void setValue(int value)
setValue
in interface AnnouncementsFlagModel
value
- the value of this announcements flagpublic CacheModel<AnnouncementsFlag> toCacheModel()
BaseModel
toCacheModel
in interface AnnouncementsFlagModel
toCacheModel
in interface BaseModel<AnnouncementsFlag>
public AnnouncementsFlag toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface AnnouncementsFlagModel
toEscapedModel
in interface BaseModel<AnnouncementsFlag>
AutoEscapeBeanHandler
public String toString()
toString
in interface AnnouncementsFlagModel
toString
in class Object
public AnnouncementsFlag toUnescapedModel()
toUnescapedModel
in interface AnnouncementsFlagModel
toUnescapedModel
in interface BaseModel<AnnouncementsFlag>
public String toXmlString()
BaseModel
toXmlString
in interface AnnouncementsFlagModel
toXmlString
in interface BaseModel<AnnouncementsFlag>
public boolean equals(Object obj)
equals
in class Object
public AnnouncementsFlag getWrappedModel()
getWrappedModel
in interface ModelWrapper<AnnouncementsFlag>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<AnnouncementsFlag>
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<AnnouncementsFlag>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<AnnouncementsFlag>