All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ravendb.embedded.DatabaseOptions Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package net.ravendb.embedded;

import net.ravendb.client.documents.conventions.DocumentConventions;
import net.ravendb.client.serverwide.DatabaseRecord;

@SuppressWarnings("unused")
public class DatabaseOptions {

    private boolean skipCreatingDatabase;
    private DocumentConventions conventions;
    private DatabaseRecord databaseRecord;

    public DatabaseOptions(DatabaseRecord databaseRecord) {
        this.databaseRecord = databaseRecord;
    }

    public DatabaseOptions(String databaseName) {
        this(new DatabaseRecord(databaseName));
    }

    public boolean isSkipCreatingDatabase() {
        return skipCreatingDatabase;
    }

    public void setSkipCreatingDatabase(boolean skipCreatingDatabase) {
        this.skipCreatingDatabase = skipCreatingDatabase;
    }

    public DocumentConventions getConventions() {
        return conventions;
    }

    public void setConventions(DocumentConventions conventions) {
        this.conventions = conventions;
    }

    public DatabaseRecord getDatabaseRecord() {
        return databaseRecord;
    }

    public void setDatabaseRecord(DatabaseRecord databaseRecord) {
        this.databaseRecord = databaseRecord;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy