|
Abeona 2012.1 API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecteu.beesoft.abeona.Database
public final class Database
Represents simple database for Product instances.
| Method Summary | |
|---|---|
Product |
getProduct(java.lang.Integer id)
Returns copy of Product instance with given id.. |
java.util.List<Product> |
getProducts()
Returns copies of all Product instances contained in database. |
void |
store(Product product)
Stores given Product instance to database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.List<Product> getProducts()
public Product getProduct(java.lang.Integer id)
id - identifier of searched product
public void store(Product product)
Product instance to database.
Product is checked for name, public and private key values. Database is
stored to disk file in [user.home]/abeona directory.
product - Object to store
|
Abeona 2012.1 API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||