public class BookManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.codehaus.jackson.map.ObjectMapper |
mapper |
| Constructor and Description |
|---|
BookManager(com.couchbase.client.CouchbaseClient client) |
| Modifier and Type | Method and Description |
|---|---|
net.spy.memcached.internal.OperationFuture<Boolean> |
create(Book book) |
Book |
findBookByTitle(String title) |
Book |
findById(Long id) |
static String |
toSlug(String input) |
public net.spy.memcached.internal.OperationFuture<Boolean> create(Book book) throws ExecutionException, InterruptedException
public Book findBookByTitle(String title) throws org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionIOExceptionpublic Book findById(Long id) throws org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonParseExceptionorg.codehaus.jackson.map.JsonMappingExceptionIOExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.