Package com.jcabi.dynamo.mock
Interface MkData
-
- All Known Implementing Classes:
H2Data
@Immutable public interface MkData
Mock data.- Since:
- 0.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.Iterable<String>
keys(String table)
Get keys 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.
-
-
-
Method Detail
-
keys
Iterable<String> keys(String table) throws IOException
Get keys for the given table.- Parameters:
table
- Name of the table- Returns:
- All keys of the table
- Throws:
IOException
- If fails
-
iterate
Iterable<Attributes> iterate(String table, Conditions conds) throws IOException
Iterate everything for the given table.- Parameters:
table
- Name of the tableconds
- Conditions- Returns:
- All rows found
- Throws:
IOException
- If fails
-
put
void put(String table, Attributes attrs) throws IOException
Add new attribute into the given table.- Parameters:
table
- Table nameattrs
- Attributes to save- Throws:
IOException
- If fails
-
update
void update(String table, Attributes keys, AttributeUpdates attrs) throws IOException
Add new attribute into the given table.- Parameters:
table
- Table namekeys
- Keysattrs
- Attributes to save- Throws:
IOException
- If fails
-
delete
void delete(String table, Attributes keys) throws IOException
Delete attributes from the given table.- Parameters:
table
- Table namekeys
- Keys- Throws:
IOException
- If fails
-
-