org.skyscreamer.yoga.demo.dao.inmemory
Class DemoData

java.lang.Object
  extended by org.skyscreamer.yoga.demo.dao.inmemory.DemoData

public class DemoData
extends Object


Field Summary
static String localData
           
static String remoteData
           
 
Constructor Summary
DemoData()
           
 
Method Summary
<T> T
get(Class<T> type, long id)
           
<T> Collection<T>
getAll(Class<T> type)
           
protected
<T> Map<Long,T>
getMap(Class<T> type)
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteData

public static final String remoteData
See Also:
Constant Field Values

localData

public static final String localData
See Also:
Constant Field Values
Constructor Detail

DemoData

public DemoData()
Method Detail

init

public void init()

getMap

protected <T> Map<Long,T> getMap(Class<T> type)

get

public <T> T get(Class<T> type,
                 long id)

getAll

public <T> Collection<T> getAll(Class<T> type)


Copyright © 2013. All Rights Reserved.