@Immutable @Loggable(value=1) public final class H2Data extends Object implements MkData
Constructor and Description |
---|
H2Data()
Public ctor.
|
H2Data(File file)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(String table,
Attributes keys)
Delete attributes from the given table.
|
Iterable<Attributes> |
iterate(String table,
Conditions conds)
Iterate everything for the given table.
|
void |
put(String table,
Attributes attrs)
Add new attribute into the given table.
|
void |
update(String table,
Attributes keys,
AttributeUpdates attrs)
Add new attribute into the given table.
|
H2Data |
with(String table,
String[] keys,
String... attrs)
With this table, that has given primary keys.
|
public H2Data() throws IOException
IOException
- If failspublic H2Data(File file)
file
- Where to keep the databasepublic Iterable<Attributes> iterate(String table, Conditions conds) throws IOException
MkData
iterate
in interface MkData
table
- Name of the tableconds
- ConditionsIOException
- If failspublic void put(String table, Attributes attrs) throws IOException
MkData
put
in interface MkData
table
- Table nameattrs
- Attributes to saveIOException
- If failspublic void update(String table, Attributes keys, AttributeUpdates attrs) throws IOException
MkData
update
in interface MkData
table
- Table namekeys
- Keysattrs
- Attributes to saveIOException
- If failspublic void delete(String table, Attributes keys) throws IOException
MkData
delete
in interface MkData
table
- Table namekeys
- KeysIOException
- If failspublic H2Data with(String table, String[] keys, String... attrs) throws IOException
table
- Table namekeys
- Primary keysattrs
- AttributesIOException
- If failsCopyright © 2012–2016 jcabi.com. All rights reserved.