class AlterDatabase extends DatabaseStatement {

    private final Database db;

    public AlterDatabase(ServerSession session, Database db, RunMode runMode,
            CaseInsensitiveMap<String> parameters) {
        super(session, db.getName());
        this.db = db;
        this.parameters = parameters;
        validateParameters();
    }

    @Override
    public int getType() {
        return SQLStatement.ALTER_DATABASE;
    }

    @Override
    public int update() {<FILL_FUNCTION_BODY>}
}

        LealoneDatabase.checkAdminRight(session, "alter database");
        if (parameters == null || parameters.isEmpty())
            return 0;
        if (LealoneDatabase.getInstance().tryExclusiveDatabaseLock(session) == null)
            return -1;
        db.updateDbSettings(session, parameters);
        return 0;
    
<methods>public java.lang.String getDatabaseName() ,public boolean isDatabaseStatement() <variables>protected final non-sealed java.lang.String dbName,protected CaseInsensitiveMap<java.lang.String> parameters