Package com.jcabi.dynamo.mock
Interface MkData
- All Known Implementing Classes:
H2Data
@Immutable
public interface MkData
Mock data.
- Since:
- 0.10
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(String table, Attributes keys) Delete attributes from the given table.iterate(String table, Conditions conds) Iterate everything for the given table.Get keys for the given table.voidput(String table, Attributes attrs) Add new attribute into the given table.voidupdate(String table, Attributes keys, AttributeUpdates attrs) Add new attribute into the given table.
-
Method Details
-
keys
Get keys for the given table.- Parameters:
table- Name of the table- Returns:
- All keys of the table
- Throws:
IOException- If fails
-
iterate
Iterate everything for the given table.- Parameters:
table- Name of the tableconds- Conditions- Returns:
- All rows found
- Throws:
IOException- If fails
-
put
Add new attribute into the given table.- Parameters:
table- Table nameattrs- Attributes to save- Throws:
IOException- If fails
-
update
Add new attribute into the given table.- Parameters:
table- Table namekeys- Keysattrs- Attributes to save- Throws:
IOException- If fails
-
delete
Delete attributes from the given table.- Parameters:
table- Table namekeys- Keys- Throws:
IOException- If fails
-