dojo.require("esri.layers.TableDataSource")
      Description
       (Added at v2.7)
The TableDataSource class defines and provides information about a table, feature class, or raster that resides in a registered file geodatabase, SDE or Shapefile workspace. 
Requires ArcGIS Server 10.1 or greater. 
See also
 
      Samples
      Search for 
samples that use this class.
      
Class hierarchy
      esri/layers.DataSource
|_esri/layers.TableDataSource
      
      Constructors
      
      
      
      
      Properties
      
        
        | dataSourceName | String | The name of a table, feature class or raster that resides in the registered workspace. | 
        | gdbVersion | String | For versioned SDE workspaces, use this property to point to an alternate version. | 
        | workspaceId | String | The workspace id for the registered file geodatabase, SDE or Shapefile workspace. | 
      
      Methods
      
        
        | toJson() | Object | Converts object to its ArcGIS Server JSON representation. | 
      
      
      Constructor Details
      
        
        Creates a new TableDataSource object.
        Parameters: 
      
        <Object> json | 
        Optional | 
        JSON object representing the TableDataSource. | 
      
         Sample: 
var dataSource = new esri.layers.TableDataSource();
 
       Property Details
            
        
        The name of a table, feature class or raster that resides in the registered workspace.
        Sample: 
dataSource.dataSourceName = "sde.SDE.states";
 
       
      
        
        For versioned SDE workspaces, use this property to point to an alternate version. If a gdbVersion is not provided then the version specified when the SDE workspace was registered will be used.
       
      
        
        The workspace id for the registered file geodatabase, SDE or Shapefile workspace.
        Sample: 
dataSource.workspaceId = "d203";
 
       
      Method Details
      
        
        Converts object to its ArcGIS Server JSON representation.