Package org.cyclos.db
Class DeleteNetworkData
- java.lang.Object
-
- org.cyclos.db.DeleteNetworkData
-
public class DeleteNetworkData extends Object
This program interactively asks the user for a network internal name. It then asks what to delete: either users / transactions or the entire network. Once confirmed, all data will be permanently deleted. It is highly recommended to perform a database dump (backup) before using this program.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeleteNetworkData.Constraintstatic classDeleteNetworkData.SpringConfiguration
-
Constructor Summary
Constructors Constructor Description DeleteNetworkData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteNetwork(Network network)Deletes the entire network dataintdeleteUsersAndBanking(Network network)Deletes all users and banking data from the given networkstatic voidmain(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
deleteNetwork
public void deleteNetwork(Network network)
Deletes the entire network data
-
deleteUsersAndBanking
public int deleteUsersAndBanking(Network network)
Deletes all users and banking data from the given network
-
-