public class NanoDB extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsTable(String tableName,
net.thevpc.nuts.NutsSession session) |
<T> NanoDBIndex<T> |
createIndexFor(Class<T> type,
NanoDBSerializer<T> ser,
File file,
net.thevpc.nuts.NutsSession session) |
<T> NanoDBTableFile<T> |
createTable(NanoDBTableDefinition<T> def,
boolean getOrCreate,
net.thevpc.nuts.NutsSession session) |
<T> NanoDBTableFile<T> |
createTable(NanoDBTableDefinition<T> def,
net.thevpc.nuts.NutsSession session) |
NanoDBTableFile |
findTable(String name,
net.thevpc.nuts.NutsSession session) |
void |
flush(net.thevpc.nuts.NutsSession session) |
<T> NanoDBTableFile<T> |
getOrCreateTable(NanoDBTableDefinition<T> def,
net.thevpc.nuts.NutsSession session) |
NanoDBSerializers |
getSerializers() |
NanoDBTableFile |
getTable(String name,
net.thevpc.nuts.NutsSession session) |
<T> NanoDBTableDefinitionBuilderFromBean<T> |
tableBuilder(Class<T> type,
net.thevpc.nuts.NutsSession session) |
public NanoDB(File dir)
public void flush(net.thevpc.nuts.NutsSession session)
public void close()
close in interface AutoCloseablepublic NanoDBSerializers getSerializers()
public NanoDBTableFile findTable(String name, net.thevpc.nuts.NutsSession session)
public NanoDBTableFile getTable(String name, net.thevpc.nuts.NutsSession session)
public <T> NanoDBTableDefinitionBuilderFromBean<T> tableBuilder(Class<T> type, net.thevpc.nuts.NutsSession session)
public <T> NanoDBTableFile<T> createTable(NanoDBTableDefinition<T> def, net.thevpc.nuts.NutsSession session)
public <T> NanoDBTableFile<T> getOrCreateTable(NanoDBTableDefinition<T> def, net.thevpc.nuts.NutsSession session)
public <T> NanoDBTableFile<T> createTable(NanoDBTableDefinition<T> def, boolean getOrCreate, net.thevpc.nuts.NutsSession session)
public boolean containsTable(String tableName, net.thevpc.nuts.NutsSession session)
public <T> NanoDBIndex<T> createIndexFor(Class<T> type, NanoDBSerializer<T> ser, File file, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.