You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/02/07 21:04:12 UTC

[11/51] [abbrv] git commit: refs/heads/ui-plugins - CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion

CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d65bfc56
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d65bfc56
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d65bfc56

Branch: refs/heads/ui-plugins
Commit: d65bfc56cd9aaaed2567826214801d0944ed8b0e
Parents: 5a2cd68
Author: Mice Xia <mi...@tcloudcomputing.com>
Authored: Wed Feb 6 15:54:15 2013 +0800
Committer: Mice Xia <mi...@tcloudcomputing.com>
Committed: Wed Feb 6 15:54:15 2013 +0800

----------------------------------------------------------------------
 core/src/com/cloud/storage/SnapshotVO.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d65bfc56/core/src/com/cloud/storage/SnapshotVO.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/storage/SnapshotVO.java b/core/src/com/cloud/storage/SnapshotVO.java
index 413083e..0aa489b 100644
--- a/core/src/com/cloud/storage/SnapshotVO.java
+++ b/core/src/com/cloud/storage/SnapshotVO.java
@@ -59,7 +59,7 @@ public class SnapshotVO implements Snapshot {
     @Expose
     @Column(name="status", updatable = true, nullable=false)
     @Enumerated(value=EnumType.STRING)
-    private State status;
+    private State state;
 
     @Column(name="snapshot_type")
     short snapshotType;
@@ -117,7 +117,7 @@ public class SnapshotVO implements Snapshot {
         this.snapshotType = snapshotType;
         this.typeDescription = typeDescription;
         this.size = size;
-        this.status = State.Creating;
+        this.state = State.Creating;
         this.prevSnapshotId = 0;
         this.hypervisorType = hypervisorType;
         this.version = "2.2";
@@ -245,11 +245,11 @@ public class SnapshotVO implements Snapshot {
 
     @Override
     public State getState() {
-        return status;
+        return state;
     }
 
-	public void setStatus(State status) {
-        this.status = status;
+	public void setStatus(State state) {
+        this.state = state;
     }
 
     public String getBackupSnapshotId(){