@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. 
 | 
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. 
 | 
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<String> keys(String table) throws IOException
MkDatakeys in interface MkDatatable - Name of the tableIOException - If failspublic Iterable<Attributes> iterate(String table, Conditions conds) throws IOException
MkDataiterate in interface MkDatatable - Name of the tableconds - ConditionsIOException - If failspublic void put(String table, Attributes attrs) throws IOException
MkDataput in interface MkDatatable - Table nameattrs - Attributes to saveIOException - If failspublic void update(String table, Attributes keys, AttributeUpdates attrs) throws IOException
MkDataupdate in interface MkDatatable - Table namekeys - Keysattrs - Attributes to saveIOException - If failspublic void delete(String table, Attributes keys) throws IOException
MkDatadelete in interface MkDatatable - Table namekeys - KeysIOException - If failspublic H2Data with(String table, String[] keys, String... attrs) throws IOException
table - Table namekeys - Primary keysattrs - AttributesIOException - If failsCopyright © 2012–2018 jcabi.com. All rights reserved.