org.glassfish.jersey.examples.jsonp.service
Class DocumentStorage

java.lang.Object
  extended by org.glassfish.jersey.examples.jsonp.service.DocumentStorage

public final class DocumentStorage
extends java.lang.Object

Storage of documents.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Method Summary
static javax.json.JsonObject get(int id)
           
static java.util.Collection<javax.json.JsonObject> getAll()
           
static javax.json.JsonObject remove(int id)
           
static void removeAll()
           
static int store(javax.json.JsonObject document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

store

public static int store(javax.json.JsonObject document)

get

public static javax.json.JsonObject get(int id)

getAll

public static java.util.Collection<javax.json.JsonObject> getAll()

remove

public static javax.json.JsonObject remove(int id)

removeAll

public static void removeAll()


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.