Back to project page NexusData.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project NexusData listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.dkharrat.nexusdata.store; //from w w w . j av a2 s .co m import java.io.File; import com.github.dkharrat.nexusdata.core.AtomicStore; import com.github.dkharrat.nexusdata.core.ManagedObject; public class InMemoryPersistentStore extends AtomicStore { long lastUnusedId = 1; public InMemoryPersistentStore() { super((File)null); } @Override public void load() { // Nothing to load } @Override public void save() { // Nothing to save } @Override public Object createReferenceObjectForManagedObject(ManagedObject object) { return lastUnusedId++; } }