| Constructor and Description |
|---|
JdbcTableDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(Table table)
Creates a new table.
|
int |
getTableCount()
Queries the persistence mechanism and returns the number of tables.
|
int |
getTableCount(int userId)
Queries the persistence mechanism and returns the number of tables owned by a user.
|
List<Table> |
getTableList()
Requests a List of ALL tables from the persistence mechanism.
|
List<Table> |
getTableList(int userId)
Requests a List of tables owned by a particular user from the persistence mechanism.
|
Table |
lookupTable(int tableId)
Looks up and retrieves a table from the database using the table id.
|
Table |
lookupTable(String checksum)
Looks up and retrieves a table from the persistence mechanism using the checksum value.
|
void |
toggleTableVisibility(Table table)
Toggles the table's visiblity attribute to in the persistence mechanism.
|
void |
updateTable(Table table)
Saves changes made to an existing table.
|
public Table lookupTable(int tableId)
lookupTable in interface TableDaotableId - The id of the table we are trying to locate (will be unique for each table).org.springframework.dao.RecoverableDataAccessException - If unable to lookup table with the given table id.public Table lookupTable(String checksum)
lookupTable in interface TableDaochecksum - The checksum of the table we are trying to locate (will be unique for each table).org.springframework.dao.RecoverableDataAccessException - If unable to lookup table with the given table checksum.public List<Table> getTableList()
getTableList in interface TableDaopublic List<Table> getTableList(int userId)
getTableList in interface TableDaouserId - The id of the user what owns the tables.public int getTableCount()
getTableCount in interface TableDaopublic int getTableCount(int userId)
getTableCount in interface TableDaouserId - The id of the user that owns the tables.public void toggleTableVisibility(Table table)
toggleTableVisibility in interface TableDaotableId - The ID of the table in the persistence mechanism.org.springframework.dao.RecoverableDataAccessException - If unable to find the table to toggle.public void createTable(Table table)
createTable in interface TableDaotable - The table to be created.org.springframework.dao.RecoverableDataAccessException - If the table we are trying to create already exists.public void updateTable(Table table)
updateTable in interface TableDaotable - The existing table with changes that needs to be saved.org.springframework.dao.RecoverableDataAccessException - If unable to find the table to update.Copyright © 1999–2014 UCAR/Unidata. All rights reserved.