Class DroppedTableBackupper300
java.lang.Object
edu.ucsb.nceas.metacat.admin.upgrade.DroppedTableBackupper300
The class to back up dropped tables to the csv files during the upgrade process to 3.0.0
- Author:
- tao
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backup()
This method will backup those tables: xml_replication, xml_revisions and xml_documentsvoid
backupNodesTable
(DroppedTableBackupper300.NodeTableName table, List<Long> rootNodeIds) Backup the records whose root node ids are in the list and in the given tableGet the backup pathprotected ResultSet
Get the ResultSet object after running the given query
-
Constructor Details
-
DroppedTableBackupper300
Constructor- Parameters:
backupPath
- the path where the csv backup files will be stored- Throws:
AdminException
-
-
Method Details
-
backup
This method will backup those tables: xml_replication, xml_revisions and xml_documents- Throws:
AdminException
-
backupNodesTable
public void backupNodesTable(DroppedTableBackupper300.NodeTableName table, List<Long> rootNodeIds) throws AdminException Backup the records whose root node ids are in the list and in the given table- Parameters:
table
- the table the records locate atrootNodeIds
- the list of root node id which the records have- Throws:
AdminException
-
runQuery
Get the ResultSet object after running the given query- Parameters:
query
- the query will be run- Returns:
- the ResultSet object
- Throws:
SQLException
-
getBackupPath
Get the backup path- Returns:
- the backup path
-