@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 pk 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 pk 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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Ticket>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Ticket>
public Object clone()
BaseModel
clone
in interface BaseModel<Ticket>
clone
in interface TicketModel
clone
in class Object
public int compareTo(Ticket ticket)
compareTo
in interface TicketModel
compareTo
in interface Comparable<Ticket>
public String getClassName()
getClassName
in interface TicketModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface TicketModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface TicketModel
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface TicketModel
public Date getCreateDate()
getCreateDate
in interface TicketModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Ticket>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface TicketModel
public Date getExpirationDate()
getExpirationDate
in interface TicketModel
public String getExtraInfo()
getExtraInfo
in interface TicketModel
public String getKey()
getKey
in interface TicketModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface TicketModel
public long getPrimaryKey()
getPrimaryKey
in interface TicketModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Ticket>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface TicketModel
public long getTicketId()
getTicketId
in interface TicketModel
public int getType()
getType
in interface TicketModel
public int hashCode()
hashCode
in interface TicketModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<Ticket>
isCachedModel
in interface TicketModel
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<Ticket>
isEscapedModel
in interface TicketModel
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<Ticket>
isNew
in interface TicketModel
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<Ticket>
setCachedModel
in interface TicketModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface TicketModel
public void setClassNameId(long classNameId)
setClassNameId
in interface TicketModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this ticketpublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface TicketModel
classPK
- the class pk of this ticketpublic void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface TicketModel
companyId
- the company ID of this ticketpublic void setCreateDate(Date createDate)
setCreateDate
in interface TicketModel
createDate
- the create date of this ticketpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Ticket>
setExpandoBridgeAttributes
in interface TicketModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Ticket>
setExpandoBridgeAttributes
in interface TicketModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Ticket>
setExpandoBridgeAttributes
in interface TicketModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setExpirationDate(Date expirationDate)
setExpirationDate
in interface TicketModel
expirationDate
- the expiration date of this ticketpublic void setExtraInfo(String extraInfo)
setExtraInfo
in interface TicketModel
extraInfo
- the extra info of this ticketpublic void setKey(String key)
setKey
in interface TicketModel
key
- the key of this ticketpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface TicketModel
mvccVersion
- the mvcc version of this ticketpublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Ticket>
setNew
in interface TicketModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface TicketModel
primaryKey
- the primary key of this ticketpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Ticket>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface TicketModel
primaryKeyObj
- the primary key of this model instancepublic void setTicketId(long ticketId)
setTicketId
in interface TicketModel
ticketId
- the ticket ID of this ticketpublic void setType(int type)
setType
in interface TicketModel
type
- the type of this ticketpublic CacheModel<Ticket> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Ticket>
toCacheModel
in interface TicketModel
public Ticket toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Ticket>
toEscapedModel
in interface TicketModel
AutoEscapeBeanHandler
public String toString()
toString
in interface TicketModel
toString
in class Object
public Ticket toUnescapedModel()
toUnescapedModel
in interface BaseModel<Ticket>
toUnescapedModel
in interface TicketModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Ticket>
toXmlString
in interface TicketModel
public boolean equals(Object obj)
equals
in class Object
public Ticket getWrappedModel()
getWrappedModel
in interface ModelWrapper<Ticket>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<Ticket>