Package ru.bitel.bgbilling.kernel.contract.status.common.bean

# Class ContractStatus

java.lang.Object
ru.bitel.common.model.Id
ru.bitel.bgbilling.kernel.contract.status.common.bean.ContractStatus

All Implemented Interfaces:
  `Serializable`, `Idable`

Direct Known Subclasses:
  `ContractStatus`

public class ContractStatus extends Id

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContractStatus()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ContractStatus`
  `clone()`
  Клонирование статуса.
  `static ContractStatus`
  `fromJson(org.json.JSONObject json)`
  `String`
  `getComment()`
  `int`
  `getContractId()`
  `Date`
  `getDateFrom()`
  `Date`
  `getDateTo()`
  `int`
  `getObjectId()`
  `int`
  `getStatus()`
  `int`
  `getUserId()`
  `ContractStatus`
  `setComment(String comment)`
  `ContractStatus`
  `setContractId(int contractId)`
  `ContractStatus`
  `setDateFrom(Date dateFrom)`
  `ContractStatus`
  `setDateTo(Date dateTo)`
  `ContractStatus`
  `setId(int id)`
  Устанавливает id объекта
  `ContractStatus`
  `setObjectId(int objectId)`
  `ContractStatus`
  `setStatus(int status)`
  `ContractStatus`
  `setUserId(int userId)`
  `org.json.JSONObject`
  `toJson()`
  `String`
  `toString()`

  ### Methods inherited from class ru.bitel.common.model.Id

  `copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap`

  ### Methods inherited from class java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ContractStatus

    public ContractStatus()

- ## Method Details

  - ### clone

    public ContractStatus clone()
    Клонирование статуса. Копируются все поля, кроме id, которое устанавливается в ноль.
    Overrides:
      `clone` in class `Object`

  - ### getComment

    public String getComment()

  - ### getContractId

    public int getContractId()

  - ### getDateFrom

    public Date getDateFrom()

  - ### getDateTo

    public Date getDateTo()

  - ### getObjectId

    public int getObjectId()

  - ### getStatus

    public int getStatus()

  - ### getUserId

    public int getUserId()

  - ### setComment

    public ContractStatus setComment(String comment)

  - ### setContractId

    public ContractStatus setContractId(int contractId)

  - ### setDateFrom

    public ContractStatus setDateFrom(Date dateFrom)

  - ### setDateTo

    public ContractStatus setDateTo(Date dateTo)

  - ### setId

    public ContractStatus setId(int id)
    Description copied from class: `Id`
    Устанавливает id объекта
    Overrides:
      `setId` in class `Id`

  - ### setObjectId

    public ContractStatus setObjectId(int objectId)

  - ### setStatus

    public ContractStatus setStatus(int status)

  - ### setUserId

    public ContractStatus setUserId(int userId)

  - ### toJson

    public org.json.JSONObject toJson()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Id`

  - ### fromJson

    public static ContractStatus fromJson(org.json.JSONObject json)