Package cz.tvrzna.dbrunk.databases
Class MemoryDatabase
- java.lang.Object
-
- cz.tvrzna.dbrunk.databases.MemoryDatabase
-
-
Constructor Summary
Constructors Constructor Description MemoryDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close.voidcommit()Commit.<T> DbConcurrentMap<T>createOrOpen(String tableName, Class<T> clazz)Creates the or open table of definedtableName.voiddrop(String tableName)Drops table with definedtableName.
-
-
-
Method Detail
-
createOrOpen
public <T> DbConcurrentMap<T> createOrOpen(String tableName, Class<T> clazz)
Description copied from interface:DatabaseCreates the or open table of definedtableName.- Specified by:
createOrOpenin interfaceDatabase- Type Parameters:
T- the generic type- Parameters:
tableName- the table nameclazz- the clazz- Returns:
- the db concurrent map
-
drop
public void drop(String tableName)
Description copied from interface:DatabaseDrops table with definedtableName.
-
commit
public void commit() throws IOExceptionDescription copied from interface:DatabaseCommit.- Specified by:
commitin interfaceDatabase- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
public void close() throws IOExceptionDescription copied from interface:DatabaseClose.- Specified by:
closein interfaceDatabase- Throws:
IOException- Signals that an I/O exception has occurred.
-
-