@ProviderType public class TicketWrapper extends Object implements Ticket, ModelWrapper<Ticket>
This class is a wrapper for Ticket.
Ticket,
Serialized FormTICKET_ID_ACCESSOR| Constructor and Description |
|---|
TicketWrapper(Ticket ticket) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Ticket ticket) |
boolean |
equals(Object obj) |
String |
getClassName()
Returns the fully qualified class name of this ticket.
|
long |
getClassNameId()
Returns the class name ID of this ticket.
|
long |
getClassPK()
Returns the class p k of this ticket.
|
long |
getCompanyId()
Returns the company ID of this ticket.
|
Date |
getCreateDate()
Returns the create date of this ticket.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Date |
getExpirationDate()
Returns the expiration date of this ticket.
|
String |
getExtraInfo()
Returns the extra info of this ticket.
|
String |
getKey()
Returns the key of this ticket.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this ticket.
|
long |
getPrimaryKey()
Returns the primary key of this ticket.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getTicketId()
Returns the ticket ID of this ticket.
|
int |
getType()
Returns the type of this ticket.
|
Ticket |
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 |
isExpired() |
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 ticket.
|
void |
setClassPK(long classPK)
Sets the class p k of this ticket.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ticket.
|
void |
setCreateDate(Date createDate)
Sets the create date of this ticket.
|
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 |
setExpirationDate(Date expirationDate)
Sets the expiration date of this ticket.
|
void |
setExtraInfo(String extraInfo)
Sets the extra info of this ticket.
|
void |
setKey(String key)
Sets the key of this ticket.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this ticket.
|
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 ticket.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setTicketId(long ticketId)
Sets the ticket ID of this ticket.
|
void |
setType(int type)
Sets the type of this ticket.
|
CacheModel<Ticket> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Ticket |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
Ticket |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public TicketWrapper(Ticket ticket)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Ticket>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Ticket>public CacheModel<Ticket> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Ticket>toCacheModel in interface TicketModelpublic Ticket toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Ticket>toEscapedModel in interface TicketModelAutoEscapeBeanHandlerpublic Ticket toUnescapedModel()
toUnescapedModel in interface BaseModel<Ticket>toUnescapedModel in interface TicketModelpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<Ticket>isCachedModel in interface TicketModeltrue 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<Ticket>isEscapedModel in interface TicketModeltrue 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<Ticket>isNew in interface TicketModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Ticket>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface TicketModelpublic int compareTo(Ticket ticket)
compareTo in interface TicketModelcompareTo in interface Comparable<Ticket>public int getType()
getType in interface TicketModelpublic int hashCode()
hashCode in interface TicketModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Ticket>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface TicketModelpublic Object clone()
BaseModelpublic String getClassName()
getClassName in interface TicketModelgetClassName in interface TypedModelpublic String getExtraInfo()
getExtraInfo in interface TicketModelpublic String getKey()
getKey in interface TicketModelpublic String toString()
toString in interface TicketModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<Ticket>toXmlString in interface TicketModelpublic Date getCreateDate()
getCreateDate in interface TicketModelpublic Date getExpirationDate()
getExpirationDate in interface TicketModelpublic long getClassNameId()
getClassNameId in interface TicketModelgetClassNameId in interface TypedModelpublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface TicketModelpublic long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface TicketModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface TicketModelpublic long getPrimaryKey()
getPrimaryKey in interface TicketModelpublic long getTicketId()
getTicketId in interface TicketModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Ticket>setCachedModel in interface TicketModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface TicketModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TicketModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this ticketpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface TicketModelclassPK - the class p k of this ticketpublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface TicketModelcompanyId - the company ID of this ticketpublic void setCreateDate(Date createDate)
setCreateDate in interface TicketModelcreateDate - the create date of this ticketpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Ticket>setExpandoBridgeAttributes in interface TicketModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Ticket>setExpandoBridgeAttributes in interface TicketModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Ticket>setExpandoBridgeAttributes in interface TicketModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setExpirationDate(Date expirationDate)
setExpirationDate in interface TicketModelexpirationDate - the expiration date of this ticketpublic void setExtraInfo(String extraInfo)
setExtraInfo in interface TicketModelextraInfo - the extra info of this ticketpublic void setKey(String key)
setKey in interface TicketModelkey - the key of this ticketpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface TicketModelmvccVersion - the mvcc version of this ticketpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Ticket>setNew in interface TicketModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface TicketModelprimaryKey - the primary key of this ticketpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Ticket>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface TicketModelprimaryKeyObj - the primary key of this model instancepublic void setTicketId(long ticketId)
setTicketId in interface TicketModelticketId - the ticket ID of this ticketpublic void setType(int type)
setType in interface TicketModeltype - the type of this ticketpublic Ticket getWrappedModel()
getWrappedModel in interface ModelWrapper<Ticket>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Ticket>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<Ticket>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Ticket>