Package com.arcadedb.database
Class DatabaseFactory
- java.lang.Object
-
- com.arcadedb.database.DatabaseFactory
-
- All Implemented Interfaces:
AutoCloseable
public class DatabaseFactory extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description DatabaseFactory(String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Database
create()
boolean
exists()
static Database
getActiveDatabaseInstance(String databasePath)
static Collection<Database>
getActiveDatabaseInstances()
ContextConfiguration
getContextConfiguration()
String
getDatabasePath()
static Charset
getDefaultCharset()
SecurityManager
getSecurity()
Database
open()
Database
open(PaginatedFile.MODE mode)
void
registerCallback(DatabaseInternal.CALLBACK_EVENT event, Callable<Void> callback)
Test only APIprotected static void
removeActiveDatabaseInstance(String databasePath)
DatabaseFactory
setAutoTransaction(boolean enabled)
DatabaseFactory
setSecurity(SecurityManager security)
-
-
-
Constructor Detail
-
DatabaseFactory
public DatabaseFactory(String path)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
exists
public boolean exists()
-
getDatabasePath
public String getDatabasePath()
-
open
public Database open()
-
open
public Database open(PaginatedFile.MODE mode)
-
create
public Database create()
-
setAutoTransaction
public DatabaseFactory setAutoTransaction(boolean enabled)
-
getContextConfiguration
public ContextConfiguration getContextConfiguration()
-
getDefaultCharset
public static Charset getDefaultCharset()
-
getSecurity
public SecurityManager getSecurity()
-
setSecurity
public DatabaseFactory setSecurity(SecurityManager security)
-
registerCallback
public void registerCallback(DatabaseInternal.CALLBACK_EVENT event, Callable<Void> callback)
Test only API
-
removeActiveDatabaseInstance
protected static void removeActiveDatabaseInstance(String databasePath)
-
getActiveDatabaseInstances
public static Collection<Database> getActiveDatabaseInstances()
-
-