Exemplo n.º 1
0
  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);
  }
Exemplo n.º 2
0
  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;
  }