Package cz.tvrzna.dbrunk
Interface Database
-
- All Known Implementing Classes:
FileDatabase,GZipFileDatabase,MemoryDatabase
public interface DatabaseThis interface defines default operation of database.- Since:
- 0.1.0
- Author:
- michalt
-
-
Method Summary
All Methods Instance Methods Abstract 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
<T> DbConcurrentMap<T> createOrOpen(String tableName, Class<T> clazz)
Creates the or open table of definedtableName.- Type Parameters:
T- the generic type- Parameters:
tableName- the table nameclazz- the clazz- Returns:
- the db concurrent map
-
drop
void drop(String tableName)
Drops table with definedtableName.- Parameters:
tableName- the table name
-
commit
void commit() throws IOExceptionCommit.- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
void close() throws IOExceptionClose.- Throws:
IOException- Signals that an I/O exception has occurred.
-
-