org.alfresco.repo.avm
Interface VersionRootDAO


public interface VersionRootDAO

DAO for VersionRoot objects.


Method Summary
 void delete(VersionRoot vr)
          Delete a VersionRoot.
 java.util.List getAllInAVMStore(AVMStore store)
          Get all the version roots in a given store.
 java.util.List getByDates(AVMStore store, java.util.Date from, java.util.Date to)
          Get the version of a store by dates.
 VersionRoot getByRoot(AVMNode root)
          Get one from its root.
 VersionRoot getByVersionID(AVMStore store, int id)
          Get the VersionRoot corresponding to the given id.
 java.util.List getByVersionsBetween(AVMStore store, int startVersion, int endVersion)
           
 java.util.List getByVersionsFrom(AVMStore store, int version)
           
 java.util.List getByVersionsTo(AVMStore store, int version)
           
 VersionRoot getMaxVersion(AVMStore store)
          Get the highest numbered version in a store.
 java.lang.Integer getMaxVersionID(AVMStore store)
          Get the highest numbered id from all the versions in a store.
 void save(VersionRoot vr)
          Save an unsaved VersionRoot.
 void update(VersionRoot vr)
           
 

Method Detail

save

void save(VersionRoot vr)
Save an unsaved VersionRoot.

Parameters:
vr - The VersionRoot to save.

update

void update(VersionRoot vr)

delete

void delete(VersionRoot vr)
Delete a VersionRoot.

Parameters:
vr - The VersionRoot to delete.

getAllInAVMStore

java.util.List getAllInAVMStore(AVMStore store)
Get all the version roots in a given store.

Parameters:
store - The store.
Returns:
A List of VersionRoots. In id order.

getByVersionID

VersionRoot getByVersionID(AVMStore store,
                           int id)
Get the VersionRoot corresponding to the given id.

Parameters:
store - The store
id - The version id.
Returns:
The VersionRoot or null if not found.

getByRoot

VersionRoot getByRoot(AVMNode root)
Get one from its root.

Parameters:
root - The root to match.
Returns:
The version root or null.

getByDates

java.util.List getByDates(AVMStore store,
                          java.util.Date from,
                          java.util.Date to)
Get the version of a store by dates.

Parameters:
store - The store.
from - The starting date. May be null but not with to null also.
to - The ending date. May be null but not with from null also.
Returns:
A List of VersionRoots.

getMaxVersion

VersionRoot getMaxVersion(AVMStore store)
Get the highest numbered version in a store.

Parameters:
store - The store.
Returns:
The highest numbered version.

getMaxVersionID

java.lang.Integer getMaxVersionID(AVMStore store)
Get the highest numbered id from all the versions in a store.

Parameters:
store - The store.
Returns:
The highest numbered id.

getByVersionsTo

java.util.List getByVersionsTo(AVMStore store,
                               int version)
Parameters:
store -
version -
Returns:

getByVersionsFrom

java.util.List getByVersionsFrom(AVMStore store,
                                 int version)
Parameters:
store -
version -
Returns:

getByVersionsBetween

java.util.List getByVersionsBetween(AVMStore store,
                                    int startVersion,
                                    int endVersion)
Parameters:
store -
startVersion -
endVersion -
Returns:


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