public class HibernateConfluenceBandanaRecordDao extends org.springframework.orm.hibernate5.support.HibernateDaoSupport implements ConfluenceBandanaRecordDao
| Constructor and Description |
|---|
HibernateConfluenceBandanaRecordDao() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ConfluenceBandanaRecord> |
findAllWithKey(String key)
Returns all records that have a certain key, regardless of context.
|
Collection |
findForContext(String context)
Return all the records for the given context.
|
Iterable<String> |
findKeysForContext(String context)
Returns all keys for the given context.
|
ConfluenceBandanaRecord |
getRecord(String context,
String key)
Retrieve a record for the given key, return null if no record exists
|
void |
remove(ConfluenceBandanaRecord record)
Remove a record by matching its key (context, key)
|
void |
removeAllInContext(String context)
Remove all the records belonging to the given context
|
void |
saveOrUpdate(ConfluenceBandanaRecord record)
Save the record, updating it if it already exists.
|
public void saveOrUpdate(ConfluenceBandanaRecord record)
ConfluenceBandanaRecordDaosaveOrUpdate in interface ConfluenceBandanaRecordDaorecord - the ConfluenceBandanaRecord to updatepublic ConfluenceBandanaRecord getRecord(String context, String key)
ConfluenceBandanaRecordDaogetRecord in interface ConfluenceBandanaRecordDaopublic void remove(ConfluenceBandanaRecord record)
ConfluenceBandanaRecordDaoremove in interface ConfluenceBandanaRecordDaopublic void removeAllInContext(String context)
ConfluenceBandanaRecordDaoremoveAllInContext in interface ConfluenceBandanaRecordDaopublic Collection findForContext(String context)
ConfluenceBandanaRecordDaofindForContext in interface ConfluenceBandanaRecordDaopublic Iterable<String> findKeysForContext(String context)
ConfluenceBandanaRecordDaofindKeysForContext in interface ConfluenceBandanaRecordDaopublic Iterable<ConfluenceBandanaRecord> findAllWithKey(String key)
ConfluenceBandanaRecordDaofindAllWithKey in interface ConfluenceBandanaRecordDaokey - the bandana key to look upCopyright © 2003–2017 Atlassian. All rights reserved.