|
| 1 | +package com.cloud.storage; |
| 2 | + |
| 3 | +import javax.persistence.Column; |
| 4 | +import javax.persistence.Entity; |
| 5 | + |
| 6 | +import javax.persistence.GeneratedValue; |
| 7 | +import javax.persistence.GenerationType; |
| 8 | +import javax.persistence.Id; |
| 9 | +import javax.persistence.Table; |
| 10 | + |
| 11 | +@Entity |
| 12 | +@Table(name="storage_pool_work") |
| 13 | +public class StoragePoolWorkVO { |
| 14 | + |
| 15 | + public Long getId() { |
| 16 | + return id; |
| 17 | + } |
| 18 | + |
| 19 | + public void setId(Long id) { |
| 20 | + this.id = id; |
| 21 | + } |
| 22 | + |
| 23 | + public Long getPoolId() { |
| 24 | + return poolId; |
| 25 | + } |
| 26 | + |
| 27 | + |
| 28 | + public void setPoolId(Long poolId) { |
| 29 | + this.poolId = poolId; |
| 30 | + } |
| 31 | + |
| 32 | + |
| 33 | + public boolean isStoppedForMaintenance() { |
| 34 | + return stoppedForMaintenance; |
| 35 | + } |
| 36 | + |
| 37 | + |
| 38 | + public void setStoppedForMaintenance(boolean stoppedForMaintenance) { |
| 39 | + this.stoppedForMaintenance = stoppedForMaintenance; |
| 40 | + } |
| 41 | + |
| 42 | + |
| 43 | + public boolean isStartedAfterMaintenance() { |
| 44 | + return startedAfterMaintenance; |
| 45 | + } |
| 46 | + |
| 47 | + public void setStartedAfterMaintenance(boolean startedAfterMaintenance) { |
| 48 | + this.startedAfterMaintenance = startedAfterMaintenance; |
| 49 | + } |
| 50 | + |
| 51 | + public Long getVmId() { |
| 52 | + return vmId; |
| 53 | + } |
| 54 | + |
| 55 | + public void setVmId(Long vmId) { |
| 56 | + this.vmId = vmId; |
| 57 | + } |
| 58 | + |
| 59 | + public Long getManagementServerId() { |
| 60 | + return managementServerId; |
| 61 | + } |
| 62 | + |
| 63 | + public void setManagementServerId(Long managementServerId) { |
| 64 | + this.managementServerId = managementServerId; |
| 65 | + } |
| 66 | + |
| 67 | + @Id |
| 68 | + @GeneratedValue(strategy=GenerationType.IDENTITY) |
| 69 | + @Column(name="id") |
| 70 | + private Long id; |
| 71 | + |
| 72 | + @Column(name="pool_id") |
| 73 | + private Long poolId; |
| 74 | + |
| 75 | + @Column(name="vm_id") |
| 76 | + private Long vmId; |
| 77 | + |
| 78 | + @Column(name="stopped_for_maintenance") |
| 79 | + private boolean stoppedForMaintenance; |
| 80 | + |
| 81 | + @Column(name="started_after_maintenance") |
| 82 | + private boolean startedAfterMaintenance; |
| 83 | + |
| 84 | + @Column(name="mgmt_server_id") |
| 85 | + private Long managementServerId; |
| 86 | + |
| 87 | + |
| 88 | + public StoragePoolWorkVO(long vmId, long poolId, boolean stoppedForMaintenance, boolean startedAfterMaintenance, long mgmtServerId) { |
| 89 | + super(); |
| 90 | + this.vmId = vmId; |
| 91 | + this.poolId = poolId; |
| 92 | + this.stoppedForMaintenance = stoppedForMaintenance; |
| 93 | + this.startedAfterMaintenance = startedAfterMaintenance; |
| 94 | + this.managementServerId = mgmtServerId; |
| 95 | + } |
| 96 | + |
| 97 | + public StoragePoolWorkVO() { |
| 98 | + |
| 99 | + } |
| 100 | +} |
0 commit comments