Adding a spot for database column name in Column. Allows us to create an updated SQL statement when the sort column changes, using only the Column itself.

Review at http://gwt-code-reviews.appspot.com/1503806

Review by: jlabanca@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10487 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/cellview/client/Column.java b/user/src/com/google/gwt/user/cellview/client/Column.java
index 81decbf..8fe3a8b 100644
--- a/user/src/com/google/gwt/user/cellview/client/Column.java
+++ b/user/src/com/google/gwt/user/cellview/client/Column.java
@@ -50,6 +50,7 @@
 
   private boolean isDefaultSortAscending = true;
   private boolean isSortable = false;
+  private String dataStoreName = null;
   private HorizontalAlignmentConstant hAlign = null;
   private VerticalAlignmentConstant vAlign = null;
 
@@ -86,6 +87,13 @@
   }
 
   /**
+   * @return the database name of the column, or null if it's never been set
+   */
+  public String getDataStoreName() {
+    return dataStoreName;
+  }
+
+  /**
    * Returns the {@link FieldUpdater} used for updating values in the column.
    * 
    * @return an instance of FieldUpdater<T, C>
@@ -100,7 +108,7 @@
   public HorizontalAlignmentConstant getHorizontalAlignment() {
     return hAlign;
   }
-
+  
   /**
    * Returns the column value from within the underlying data object.
    */
@@ -176,6 +184,15 @@
   }
 
   /**
+   * Sets a string that identifies this column in a data query.
+   * 
+   * @param name name of the column from the data store's perspective
+   */
+  public void setDataStoreName(String name) {
+    this.dataStoreName = name;
+  }
+
+  /**
    * Set whether or not the default sort order is ascending.
    * 
    * @param isAscending true to set the default order to ascending, false for