|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AVMNodeDAO
DAO for AVMNodes interface.
| Nested Class Summary | |
|---|---|
static interface |
AVMNodeDAO.ContentUrlHandler
A callback handler for iterating over the content URLs |
| Method Summary | |
|---|---|
void |
clear()
Clear the hibernate session cache. |
void |
clearNewInStore(AVMStore store)
Clear newInStore field for a store. |
void |
delete(AVMNode node)
Delete a single node. |
void |
evict(AVMNode node)
Evict an AVMNode that is no longer going to be used. |
void |
flush()
Inappropriate hack to get Hibernate to play nice. |
AVMNode |
getAncestor(AVMNode node)
Get the ancestor of a node. |
DirectoryNode |
getAVMStoreRoot(AVMStore store,
int version)
Get the root of a particular version. |
AVMNode |
getByID(long id)
Get by ID. |
void |
getContentUrls(AVMNodeDAO.ContentUrlHandler handler)
Get all content urls in the AVM Repository. |
java.util.List |
getEmptyGUIDS(int count)
Get a batch |
AVMNode |
getMergedFrom(AVMNode node)
Get the node the given node was merged from. |
java.util.List |
getNewInStore(AVMStore store)
Get all the nodes that are new in the given store. |
java.util.List |
getNewInStoreIDs(AVMStore store)
Get the id's of all AVMNodes new in a given store. |
java.util.List |
getNewLayeredInStoreIDs(AVMStore store)
Get any new layered entries in a store. |
java.util.List |
getNullVersionLayeredDirectories(int count)
Get a batch of LayeredDirectories which have null indirectionVersions. |
java.util.List |
getNullVersionLayeredFiles(int count)
Get a batch of LayeredFiles which have null indirectionVersions. |
java.util.List |
getOrphans(int batchSize)
Get up to batchSize orphans. |
void |
noCache()
Turn off 2nd level caching. |
void |
save(AVMNode node)
Save the given node, having never been saved before. |
void |
update(AVMNode node)
Update a node that has been dirtied. |
void |
yesCache()
Turn on 2nd level caching. |
| Method Detail |
|---|
void save(AVMNode node)
void delete(AVMNode node)
node - The node to delete.AVMNode getByID(long id)
id - The id to get.
DirectoryNode getAVMStoreRoot(AVMStore store,
int version)
store - The store we're querying.version - The version.
void update(AVMNode node)
node - The node.AVMNode getAncestor(AVMNode node)
node - The node whose ancestor is desired.
AVMNode getMergedFrom(AVMNode node)
node - The node whose merged from is desired.
java.util.List getOrphans(int batchSize)
batchSize - Get no more than this number.
void getContentUrls(AVMNodeDAO.ContentUrlHandler handler)
contentUrlHandler - the handler that will be called with the URLsjava.util.List getNewInStore(AVMStore store)
store - The store to query.
java.util.List getNewInStoreIDs(AVMStore store)
store -
void clearNewInStore(AVMStore store)
store - java.util.List getNewLayeredInStoreIDs(AVMStore store)
store -
void flush()
java.util.List getEmptyGUIDS(int count)
java.util.List getNullVersionLayeredDirectories(int count)
count -
java.util.List getNullVersionLayeredFiles(int count)
count -
void evict(AVMNode node)
node - void clear()
void noCache()
void yesCache()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||