Class TicketWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Ticket>
com.liferay.portal.kernel.model.TicketWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<Ticket>, ClassedModel, ModelWrapper<Ticket>, MVCCModel, PersistedModel, ShardedModel, Ticket, TicketModel, TypedModel, Serializable, Cloneable, Comparable<Ticket>

public class TicketWrapper extends BaseModelWrapper<Ticket> implements ModelWrapper<Ticket>, Ticket

This class is a wrapper for Ticket.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • TicketWrapper

      public TicketWrapper(Ticket ticket)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface BaseModel<Ticket>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface BaseModel<Ticket>
    • cloneWithOriginalValues

      public Ticket cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<Ticket>
      Specified by:
      cloneWithOriginalValues in interface TicketModel
    • getClassName

      public String getClassName()
      Returns the fully qualified class name of this ticket.
      Specified by:
      getClassName in interface TicketModel
      Specified by:
      getClassName in interface TypedModel
      Returns:
      the fully qualified class name of this ticket
    • getClassNameId

      public long getClassNameId()
      Returns the class name ID of this ticket.
      Specified by:
      getClassNameId in interface TicketModel
      Specified by:
      getClassNameId in interface TypedModel
      Returns:
      the class name ID of this ticket
    • getClassPK

      public long getClassPK()
      Returns the class pk of this ticket.
      Specified by:
      getClassPK in interface AttachedModel
      Specified by:
      getClassPK in interface TicketModel
      Returns:
      the class pk of this ticket
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this ticket.
      Specified by:
      getCompanyId in interface ShardedModel
      Specified by:
      getCompanyId in interface TicketModel
      Returns:
      the company ID of this ticket
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this ticket.
      Specified by:
      getCreateDate in interface TicketModel
      Returns:
      the create date of this ticket
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expiration date of this ticket.
      Specified by:
      getExpirationDate in interface TicketModel
      Returns:
      the expiration date of this ticket
    • getExtraInfo

      public String getExtraInfo()
      Returns the extra info of this ticket.
      Specified by:
      getExtraInfo in interface TicketModel
      Returns:
      the extra info of this ticket
    • getKey

      public String getKey()
      Returns the key of this ticket.
      Specified by:
      getKey in interface TicketModel
      Returns:
      the key of this ticket
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this ticket.
      Specified by:
      getMvccVersion in interface MVCCModel
      Specified by:
      getMvccVersion in interface TicketModel
      Returns:
      the mvcc version of this ticket
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this ticket.
      Specified by:
      getPrimaryKey in interface TicketModel
      Returns:
      the primary key of this ticket
    • getTicketId

      public long getTicketId()
      Returns the ticket ID of this ticket.
      Specified by:
      getTicketId in interface TicketModel
      Returns:
      the ticket ID of this ticket
    • getType

      public int getType()
      Returns the type of this ticket.
      Specified by:
      getType in interface TicketModel
      Returns:
      the type of this ticket
    • isExpired

      public boolean isExpired()
      Specified by:
      isExpired in interface Ticket
    • persist

      public void persist()
      Description copied from interface: PersistedModel
      Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
      Specified by:
      persist in interface PersistedModel
    • setClassName

      public void setClassName(String className)
      Specified by:
      setClassName in interface TicketModel
    • setClassNameId

      public void setClassNameId(long classNameId)
      Sets the class name ID of this ticket.
      Specified by:
      setClassNameId in interface TicketModel
      Specified by:
      setClassNameId in interface TypedModel
      Parameters:
      classNameId - the class name ID of this ticket
    • setClassPK

      public void setClassPK(long classPK)
      Sets the class pk of this ticket.
      Specified by:
      setClassPK in interface AttachedModel
      Specified by:
      setClassPK in interface TicketModel
      Parameters:
      classPK - the class pk of this ticket
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this ticket.
      Specified by:
      setCompanyId in interface ShardedModel
      Specified by:
      setCompanyId in interface TicketModel
      Parameters:
      companyId - the company ID of this ticket
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this ticket.
      Specified by:
      setCreateDate in interface TicketModel
      Parameters:
      createDate - the create date of this ticket
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the expiration date of this ticket.
      Specified by:
      setExpirationDate in interface TicketModel
      Parameters:
      expirationDate - the expiration date of this ticket
    • setExtraInfo

      public void setExtraInfo(String extraInfo)
      Sets the extra info of this ticket.
      Specified by:
      setExtraInfo in interface TicketModel
      Parameters:
      extraInfo - the extra info of this ticket
    • setKey

      public void setKey(String key)
      Sets the key of this ticket.
      Specified by:
      setKey in interface TicketModel
      Parameters:
      key - the key of this ticket
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this ticket.
      Specified by:
      setMvccVersion in interface MVCCModel
      Specified by:
      setMvccVersion in interface TicketModel
      Parameters:
      mvccVersion - the mvcc version of this ticket
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this ticket.
      Specified by:
      setPrimaryKey in interface TicketModel
      Parameters:
      primaryKey - the primary key of this ticket
    • setTicketId

      public void setTicketId(long ticketId)
      Sets the ticket ID of this ticket.
      Specified by:
      setTicketId in interface TicketModel
      Parameters:
      ticketId - the ticket ID of this ticket
    • setType

      public void setType(int type)
      Sets the type of this ticket.
      Specified by:
      setType in interface TicketModel
      Parameters:
      type - the type of this ticket
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface TicketModel
    • wrap

      protected TicketWrapper wrap(Ticket ticket)
      Specified by:
      wrap in class BaseModelWrapper<Ticket>