Class TableData

java.lang.Object
com.inductiveautomation.snap.filedata.SnapData
com.inductiveautomation.snap.filedata.TableData

public class TableData extends SnapData
A file that represents a table of data.
  • Constructor Details

    • TableData

      public TableData()
  • Method Details

    • getEntity

      public Entity getEntity()
      Returns the entity.
    • setEntity

      public void setEntity(Entity anEntity)
      Sets the entity.
    • createEntity

      public Entity createEntity()
      Creates the entity for this table.
    • getTable

      public SnapTable getTable()
      Returns the SnapTable for this TableFile.
    • getTableView

      public SnapTableView getTableView()
      Returns the default view for this table.
    • getRows

      public List<Row> getRows(Query aQuery)
      Returns a list of rows for a query.
    • refresh

      public void refresh()
      Reverts file.
      Overrides:
      refresh in class SnapData
    • save

      public void save() throws Exception
      Override to save entity.
      Overrides:
      save in class SnapData
      Throws:
      Exception
    • delete

      public void delete() throws Exception
      Override to delete entity.
      Overrides:
      delete in class SnapData
      Throws:
      Exception
    • get

      public static TableData get(WebFile aFile)
      Returns the TableData for given file.