public void setDatabaseIDValue(Integer databaseIDValue) { log.info("setDatabaseIDValue {0}", databaseIDValue); this.databaseIDValue = databaseIDValue; projectDatabaseHome.setId(databaseIDValue); this.currentProjectDatabase = projectDatabaseHome.getInstance(); Contexts.getSessionContext().set("currentProjectDatabase", this.currentProjectDatabase); }
public boolean setCurrentDatabase(Integer currentDatabaseIDValue) { Contexts.getSessionContext().set("currentProjectDatabase", null); log.info("setCurrentDatabase currentDatabaseIDValue: " + currentDatabaseIDValue); this.currentProjectDatabase = null; projectDatabaseHome.setId(currentDatabaseIDValue); this.currentProjectDatabase = projectDatabaseHome.getInstance(); setCurrentDataspace(this.currentProjectDatabase.getDataspace().getDataSpaceId()); Contexts.getSessionContext().set("currentProjectDatabase", this.currentProjectDatabase); return true; }