@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 pk 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 pk 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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Subscription>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Subscription>
public Object clone()
BaseModel
clone
in interface BaseModel<Subscription>
clone
in interface SubscriptionModel
clone
in class Object
public int compareTo(Subscription subscription)
compareTo
in interface SubscriptionModel
compareTo
in interface Comparable<Subscription>
public String getClassName()
getClassName
in interface SubscriptionModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface SubscriptionModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface SubscriptionModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface SubscriptionModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface SubscriptionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Subscription>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface SubscriptionModel
public String getFrequency()
getFrequency
in interface SubscriptionModel
public long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface SubscriptionModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface SubscriptionModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface SubscriptionModel
public long getPrimaryKey()
getPrimaryKey
in interface SubscriptionModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Subscription>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface SubscriptionModel
public long getSubscriptionId()
getSubscriptionId
in interface SubscriptionModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface SubscriptionModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface SubscriptionModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface SubscriptionModel
public int hashCode()
hashCode
in interface SubscriptionModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<Subscription>
isCachedModel
in interface SubscriptionModel
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 BaseModel<Subscription>
isEscapedModel
in interface SubscriptionModel
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 BaseModel<Subscription>
isNew
in interface SubscriptionModel
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 BaseModel<Subscription>
setCachedModel
in interface SubscriptionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface SubscriptionModel
public void setClassNameId(long classNameId)
setClassNameId
in interface SubscriptionModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this subscriptionpublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface SubscriptionModel
classPK
- the class pk of this subscriptionpublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface SubscriptionModel
companyId
- the company ID of this subscriptionpublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface SubscriptionModel
createDate
- the create date of this subscriptionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Subscription>
setExpandoBridgeAttributes
in interface SubscriptionModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Subscription>
setExpandoBridgeAttributes
in interface SubscriptionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Subscription>
setExpandoBridgeAttributes
in interface SubscriptionModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setFrequency(String frequency)
setFrequency
in interface SubscriptionModel
frequency
- the frequency of this subscriptionpublic void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface SubscriptionModel
groupId
- the group ID of this subscriptionpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface SubscriptionModel
modifiedDate
- the modified date of this subscriptionpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface SubscriptionModel
mvccVersion
- the mvcc version of this subscriptionpublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Subscription>
setNew
in interface SubscriptionModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface SubscriptionModel
primaryKey
- the primary key of this subscriptionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Subscription>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface SubscriptionModel
primaryKeyObj
- the primary key of this model instancepublic void setSubscriptionId(long subscriptionId)
setSubscriptionId
in interface SubscriptionModel
subscriptionId
- the subscription ID of this subscriptionpublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface SubscriptionModel
userId
- the user ID of this subscriptionpublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface SubscriptionModel
userName
- the user name of this subscriptionpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface SubscriptionModel
userUuid
- the user uuid of this subscriptionpublic CacheModel<Subscription> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Subscription>
toCacheModel
in interface SubscriptionModel
public Subscription toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Subscription>
toEscapedModel
in interface SubscriptionModel
AutoEscapeBeanHandler
public String toString()
toString
in interface SubscriptionModel
toString
in class Object
public Subscription toUnescapedModel()
toUnescapedModel
in interface BaseModel<Subscription>
toUnescapedModel
in interface SubscriptionModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Subscription>
toXmlString
in interface SubscriptionModel
public boolean equals(Object obj)
equals
in class Object
public Subscription getWrappedModel()
getWrappedModel
in interface ModelWrapper<Subscription>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<Subscription>