public interface StockService
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createStock(Stock stock)
Creates new stock.
|
javax.ws.rs.core.Response |
deleteStock(long id)
Deletes the stock
|
Stock |
getStock(long id)
Retrieves the stock by it's id.
|
List<Stock> |
getStocks(int startIndex,
int size)
Retrieves the stock list.
|
void |
updateStock(long id,
Stock stock)
Updates the stock.
|
javax.ws.rs.core.Response createStock(Stock stock)
stock - the stock to createvoid updateStock(long id,
Stock stock)
id - stock idstock - the stock to updateStock getStock(long id)
id - the stock idList<Stock> getStocks(int startIndex, int size)
startIndex - the starting indexsize - the number stocks to retrievejavax.ws.rs.core.Response deleteStock(long id)
id - the stock idCopyright © 2013 JBoss by Red Hat. All Rights Reserved.