package urSQL.RuntimeDatabaseProcessor.Components;

import urSQL.StoredDataManager.StoreDataManager;
import urSQL.System.ResultSet;

public class ComponentDropDatabase implements Component {

	String database_name;
	
	@Override
	public ResultSet apply(ResultSet pResultSet) {
		// TODO Auto-generated method stub
		
		StoreDataManager sdm = new StoreDataManager();
		sdm.deleteDatabaseScheme(database_name);
		
		
		
		return null;
	}
	
	public void ComponentDropDatabase(String pDatabase_name){
		database_name = pDatabase_name;
	}

}

@@ -128,16 +128,59 @@
 ultSet;%0D
+%0Aimport urSQL.SystemCatalog.SystemCatalog;%0D
 %0A%0D%0Apubli
@@ -461,24 +461,110 @@
 me);%0D%0A%09%09%0D%0A%09%09
+SystemCatalog sc = SystemCatalog.getInstance();%0D%0A%09%09%0D%0A%09%09sc.dropDatabase(database_name);
 %0D%0A%09%09%0D%0A%09%09retu

Drop Table Component