public void setDatabase(String database) throws ResourceException { if (this.dbAlias!=null && !database.equals(this.dbAlias)) throw new ResourceException("can't change database!");
public void setDatabase(String database) { checkNotStarted();
    public void setDatabase(String database) throws ResourceException {        if (this.dbAlias!=null && !database.equals(this.dbAlias))            throw new ResourceException("can't change database!");        hashCode = 0;        this.dbAlias = database;    }