@ProviderType public class SubscriptionWrapper extends Object implements Subscription, ModelWrapper<Subscription>
This class is a wrapper for Subscription.
Subscription,
Serialized FormSUBSCRIPTION_ID_ACCESSOR| Constructor and Description |
|---|
SubscriptionWrapper(Subscription subscription) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Subscription subscription) |
boolean |
equals(Object obj) |
String |
getClassName()
Returns the fully qualified class name of this subscription.
|
long |
getClassNameId()
Returns the class name ID of this subscription.
|
long |
getClassPK()
Returns the class p k of this subscription.
|
long |
getCompanyId()
Returns the company ID of this subscription.
|
Date |
getCreateDate()
Returns the create date of this subscription.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getFrequency()
Returns the frequency of this subscription.
|
long |
getGroupId()
Returns the group ID of this subscription.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this subscription.
|
long |
getMvccVersion()
Returns the mvcc version of this subscription.
|
long |
getPrimaryKey()
Returns the primary key of this subscription.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getSubscriptionId()
Returns the subscription ID of this subscription.
|
long |
getUserId()
Returns the user ID of this subscription.
|
String |
getUserName()
Returns the user name of this subscription.
|
String |
getUserUuid()
Returns the user uuid of this subscription.
|
Subscription |
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 |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this subscription.
|
void |
setClassPK(long classPK)
Sets the class p k of this subscription.
|
void |
setCompanyId(long companyId)
Sets the company ID of this subscription.
|
void |
setCreateDate(Date createDate)
Sets the create date of this subscription.
|
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 |
setFrequency(String frequency)
Sets the frequency of this subscription.
|
void |
setGroupId(long groupId)
Sets the group ID of this subscription.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this subscription.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this subscription.
|
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 subscription.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSubscriptionId(long subscriptionId)
Sets the subscription ID of this subscription.
|
void |
setUserId(long userId)
Sets the user ID of this subscription.
|
void |
setUserName(String userName)
Sets the user name of this subscription.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this subscription.
|
CacheModel<Subscription> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Subscription |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
Subscription |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public SubscriptionWrapper(Subscription subscription)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Subscription>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Subscription>public CacheModel<Subscription> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Subscription>toCacheModel in interface SubscriptionModelpublic Subscription toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Subscription>toEscapedModel in interface SubscriptionModelAutoEscapeBeanHandlerpublic Subscription toUnescapedModel()
toUnescapedModel in interface BaseModel<Subscription>toUnescapedModel in interface SubscriptionModelpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Subscription>isCachedModel in interface SubscriptionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Subscription>isEscapedModel in interface SubscriptionModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<Subscription>isNew in interface SubscriptionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Subscription>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface SubscriptionModelpublic int compareTo(Subscription subscription)
compareTo in interface SubscriptionModelcompareTo in interface Comparable<Subscription>public int hashCode()
hashCode in interface SubscriptionModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Subscription>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface SubscriptionModelpublic Object clone()
BaseModelclone in interface BaseModel<Subscription>clone in interface SubscriptionModelclone in class Objectpublic String getClassName()
getClassName in interface SubscriptionModelgetClassName in interface TypedModelpublic String getFrequency()
getFrequency in interface SubscriptionModelpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface SubscriptionModelpublic String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface SubscriptionModelpublic String toString()
toString in interface SubscriptionModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<Subscription>toXmlString in interface SubscriptionModelpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface SubscriptionModelpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface SubscriptionModelpublic long getClassNameId()
getClassNameId in interface SubscriptionModelgetClassNameId in interface TypedModelpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface SubscriptionModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface SubscriptionModelpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface SubscriptionModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface SubscriptionModelpublic long getPrimaryKey()
getPrimaryKey in interface SubscriptionModelpublic long getSubscriptionId()
getSubscriptionId in interface SubscriptionModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface SubscriptionModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Subscription>setCachedModel in interface SubscriptionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface SubscriptionModelpublic void setClassNameId(long classNameId)
setClassNameId in interface SubscriptionModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this subscriptionpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface SubscriptionModelclassPK - the class p k of this subscriptionpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface SubscriptionModelcompanyId - the company ID of this subscriptionpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface SubscriptionModelcreateDate - the create date of this subscriptionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Subscription>setExpandoBridgeAttributes in interface SubscriptionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Subscription>setExpandoBridgeAttributes in interface SubscriptionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Subscription>setExpandoBridgeAttributes in interface SubscriptionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setFrequency(String frequency)
setFrequency in interface SubscriptionModelfrequency - the frequency of this subscriptionpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface SubscriptionModelgroupId - the group ID of this subscriptionpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface SubscriptionModelmodifiedDate - the modified date of this subscriptionpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface SubscriptionModelmvccVersion - the mvcc version of this subscriptionpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Subscription>setNew in interface SubscriptionModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface SubscriptionModelprimaryKey - the primary key of this subscriptionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Subscription>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface SubscriptionModelprimaryKeyObj - the primary key of this model instancepublic void setSubscriptionId(long subscriptionId)
setSubscriptionId in interface SubscriptionModelsubscriptionId - the subscription ID of this subscriptionpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface SubscriptionModeluserId - the user ID of this subscriptionpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface SubscriptionModeluserName - the user name of this subscriptionpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface SubscriptionModeluserUuid - the user uuid of this subscriptionpublic Subscription getWrappedModel()
getWrappedModel in interface ModelWrapper<Subscription>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Subscription>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<Subscription>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Subscription>