org.alfresco.repo.avm
Interface AVMStoreDAO


public interface AVMStoreDAO

DAO for Repositories.


Method Summary
 void delete(AVMStore store)
          Delete the given AVMStore.
 java.util.List getAll()
          Get all AVMStores.
 AVMStore getByID(long id)
          Get A store by primary key.
 AVMStore getByName(java.lang.String name)
          Get an AVMStore by name.
 AVMStore getByRoot(AVMNode root)
          Get the AVM Store that has the given root as HEAD.
 void invalidateCache()
          Invalidate the by name lookup cache.
 void save(AVMStore store)
          Save an AVMStore, never before saved.
 void update(AVMStore rep)
          Update the given AVMStore record.
 

Method Detail

save

void save(AVMStore store)
Save an AVMStore, never before saved.

Parameters:
store - The AVMStore

delete

void delete(AVMStore store)
Delete the given AVMStore.

Parameters:
store - The AVMStore.

getAll

java.util.List getAll()
Get all AVMStores.

Returns:
A List of all the AVMStores.

getByName

AVMStore getByName(java.lang.String name)
Get an AVMStore by name.

Parameters:
name - The name of the AVMStore.
Returns:
The AVMStore or null if not found.

getByRoot

AVMStore getByRoot(AVMNode root)
Get the AVM Store that has the given root as HEAD.

Parameters:
root - The root to query.
Returns:
The matching store or null.

update

void update(AVMStore rep)
Update the given AVMStore record.

Parameters:
rep - The dirty AVMStore.

getByID

AVMStore getByID(long id)
Get A store by primary key.

Parameters:
id - The primary key.
Returns:
The store.

invalidateCache

void invalidateCache()
Invalidate the by name lookup cache.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.