|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.model.token.TokenDAOMemory
public class TokenDAOMemory
An in-memory implementation of the TokenDAO. This will use the caching manager
Field Summary | |
---|---|
protected static java.lang.String |
CACHE_NAME
|
Constructor Summary | |
---|---|
TokenDAOMemory()
|
Method Summary | |
---|---|
Token |
add(Token token)
|
Token |
findByID(long ID)
|
Token |
findByKey(java.lang.String key)
|
java.lang.Class |
getPersistentClass()
The class that is being persisted |
java.lang.Object |
load(long ID)
Loads a persistnce DAO object from the persistence store. |
java.util.Collection |
loadAll()
TokenDAOPersistence.loadAll() |
void |
remove(java.lang.Object persistentObject)
Removes the DAO object from the persistence store. |
void |
remove(Token token)
|
void |
removeAll()
TokenDAOPersistence.removeAll() |
void |
removeAll(long directoryID,
java.lang.String name)
|
void |
save(java.lang.Object persistentObject)
Saves a new DAO object to the persistence store. |
void |
saveAll(java.util.Collection tokens)
TokenDAOPersistence.saveAll() |
java.util.List<Token> |
search(SearchContext searchContext)
|
void |
setCacheManager(CacheManager cacheManager)
|
void |
update(java.lang.Object persistentObject)
Updates an existing DAO object, if the object does not exist it will be added to the persistence store. |
Token |
update(Token token)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String CACHE_NAME
Constructor Detail |
---|
public TokenDAOMemory()
Method Detail |
---|
public Token findByKey(java.lang.String key) throws ObjectNotFoundException
findByKey
in interface TokenDAO
ObjectNotFoundException
public Token add(Token token) throws org.springframework.dao.DataAccessException
add
in interface TokenDAO
org.springframework.dao.DataAccessException
public Token update(Token token) throws org.springframework.dao.DataAccessException
update
in interface TokenDAO
org.springframework.dao.DataAccessException
public void remove(Token token) throws org.springframework.dao.DataAccessException
remove
in interface TokenDAO
org.springframework.dao.DataAccessException
public java.util.List<Token> search(SearchContext searchContext) throws org.springframework.dao.DataAccessException
search
in interface TokenDAO
org.springframework.dao.DataAccessException
public Token findByID(long ID) throws org.springframework.dao.DataAccessException, ObjectNotFoundException
findByID
in interface TokenDAO
org.springframework.dao.DataAccessException
ObjectNotFoundException
public void removeAll(long directoryID, java.lang.String name) throws org.springframework.dao.DataAccessException
removeAll
in interface TokenDAO
org.springframework.dao.DataAccessException
public java.lang.Class getPersistentClass()
ObjectDao
getPersistentClass
in interface ObjectDao
public void save(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
ObjectDao
save
in interface ObjectDao
persistentObject
- The object to save.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public void update(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
ObjectDao
update
in interface ObjectDao
persistentObject
- The object to update.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public void remove(java.lang.Object persistentObject) throws org.springframework.dao.DataAccessException
ObjectDao
remove
in interface ObjectDao
persistentObject
- The object to remove.
org.springframework.dao.DataAccessException
- A persistence exception has occurred.public java.lang.Object load(long ID)
ObjectDao
load
in interface ObjectDao
ID
- The unique identifier of the object to load from the persistence store.
public void setCacheManager(CacheManager cacheManager)
public java.util.Collection loadAll()
TokenDAOPersistence.loadAll()
loadAll
in interface TokenDAOPersistence
public void saveAll(java.util.Collection tokens) throws org.springframework.dao.DataAccessException
TokenDAOPersistence.saveAll()
saveAll
in interface TokenDAOPersistence
org.springframework.dao.DataAccessException
public void removeAll()
TokenDAOPersistence.removeAll()
removeAll
in interface TokenDAOPersistence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |