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 Summary
Constructors Constructor Description TableData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
createEntity()
Creates the entity for this table.void
delete()
Override to delete entity.static TableData
get(WebFile aFile)
Returns the TableData for given file.Entity
getEntity()
Returns the entity.java.util.List<Row>
getRows(Query aQuery)
Returns a list of rows for a query.SnapTable
getTable()
Returns the SnapTable for this TableFile.SnapTableView
getTableView()
Returns the default view for this table.void
refresh()
Reverts file.void
save()
Override to save entity.void
setEntity(Entity anEntity)
Sets the entity.-
Methods inherited from class com.inductiveautomation.snap.filedata.SnapData
createBytes, createSourceURL, get, getBytes, getInputStream, getSite, getSource, getSourceFile, getSourceURL, is, setBytes, setSource
-
-
-
-
Method Detail
-
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.
-
save
public void save() throws java.lang.Exception
Override to save entity.
-
delete
public void delete() throws java.lang.Exception
Override to delete entity.
-
-