de.greenrobot.dao
Class IdentityScopeObject<K,T>
java.lang.Object
de.greenrobot.dao.IdentityScopeObject<K,T>
- Type Parameters:
K
- T
-
- All Implemented Interfaces:
- IdentityScope<K,T>
public class IdentityScopeObject<K,T>
- extends java.lang.Object
- implements IdentityScope<K,T>
The context for entity identities. Provides the scope in which entities will be tracked and managed.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityScopeObject
public IdentityScopeObject()
get
public T get(K key)
- Specified by:
get
in interface IdentityScope<K,T>
getNoLock
public T getNoLock(K key)
- Specified by:
getNoLock
in interface IdentityScope<K,T>
put
public void put(K key,
T entity)
- Specified by:
put
in interface IdentityScope<K,T>
putNoLock
public void putNoLock(K key,
T entity)
- Specified by:
putNoLock
in interface IdentityScope<K,T>
detach
public boolean detach(K key,
T entity)
- Specified by:
detach
in interface IdentityScope<K,T>
remove
public void remove(K key)
- Specified by:
remove
in interface IdentityScope<K,T>
clear
public void clear()
- Specified by:
clear
in interface IdentityScope<K,T>
lock
public void lock()
- Specified by:
lock
in interface IdentityScope<K,T>
unlock
public void unlock()
- Specified by:
unlock
in interface IdentityScope<K,T>
reserveRoom
public void reserveRoom(int count)
- Specified by:
reserveRoom
in interface IdentityScope<K,T>
Copyright © 2011 greenrobot.de. All Rights Reserved.