|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.avm.AbstractAVMVersionRootDAOImpl
public abstract class AbstractAVMVersionRootDAOImpl
Abstract implementation for AVMVersionRoot DAO.
This provides basic services such as caching but defers to the underlying implementation for CRUD operations.
Constructor Summary | |
---|---|
AbstractAVMVersionRootDAOImpl()
|
Method Summary | |
---|---|
AVMVersionLayeredNodeEntryEntity |
createVersionLayeredNodeEntry(long versionRootId,
java.lang.String md5sum,
java.lang.String path)
|
protected abstract AVMVersionLayeredNodeEntryEntity |
createVersionLayeredNodeEntryEntity(long versionRootId,
java.lang.String md5sum,
java.lang.String path)
|
AVMVersionRootEntity |
createVersionRoot(long storeId,
long rootNodeId,
int version,
java.lang.String creator,
java.lang.String tag,
java.lang.String description)
Create a new AVM version root |
protected abstract AVMVersionRootEntity |
createVersionRootEntity(AVMVersionRootEntity vrEntity)
|
void |
deleteVersionLayeredNodeEntries(long versionRootId)
|
protected abstract int |
deleteVersionLayeredNodeEntryEntities(long versionRootId)
|
void |
deleteVersionRoot(long vrEntityId)
Delete an existing AVM version root |
protected abstract int |
deleteVersionRootEntity(long vrEntityId)
|
java.util.List |
getAllInStore(long storeId)
Get all the version roots in a given store |
protected abstract java.util.List |
getAllVersionRootEntitiesByStoreId(long storeId)
|
java.util.List |
getByDates(long storeId,
java.util.Date from,
java.util.Date to)
Get the version of a store by dates. |
protected AVMVersionRootEntity |
getByID(long vrEntityId)
|
AVMVersionRootEntity |
getByRoot(long rootNodeId)
Get one from its root. |
AVMVersionRootEntity |
getByVersionID(long storeId,
int version)
Get the VersionRoot corresponding to the given id. |
java.util.List |
getByVersionsBetween(long id,
int startVersion,
int endVersion)
|
java.util.List |
getByVersionsFrom(long id,
int version)
|
java.util.List |
getByVersionsTo(long id,
int version)
|
AVMVersionRootEntity |
getMaxVersion(long storeId)
Get the highest numbered version in a store. |
java.lang.Long |
getMaxVersionID(long storeId)
Get the highest numbered id from all the versions in a store. |
java.util.List |
getVersionLayeredNodeEntries(long versionRootId)
|
protected abstract java.util.List |
getVersionLayeredNodeEntryEntities(long storeId)
|
protected abstract java.util.List |
getVersionRootEntitiesByBetween(long storeId,
long from,
long to)
|
protected abstract java.util.List |
getVersionRootEntitiesByFrom(long storeId,
long from)
|
protected abstract java.util.List |
getVersionRootEntitiesByTo(long storeId,
long to)
|
protected abstract java.util.List |
getVersionRootEntitiesByVersionsBetween(long storeId,
long from,
long to)
|
protected abstract java.util.List |
getVersionRootEntitiesByVersionsFrom(long storeId,
long from)
|
protected abstract java.util.List |
getVersionRootEntitiesByVersionsTo(long storeId,
long to)
|
protected abstract AVMVersionRootEntity |
getVersionRootEntityById(long vrEntityId)
|
protected abstract AVMVersionRootEntity |
getVersionRootEntityByRootNodeId(long rootNodeId)
|
protected abstract AVMVersionRootEntity |
getVersionRootEntityByStoreVersion(long storeId,
int version)
|
protected abstract AVMVersionRootEntity |
getVersionRootEntityMaxVersion(long storeId)
|
protected abstract java.lang.Long |
getVersionRootEntityMaxVersionId(long storeId)
|
void |
setVersionRootEntityCache(org.alfresco.repo.cache.SimpleCache vrEntityCache)
Set the cache to use for avm_version_roots lookups (optional). |
void |
updateVersionRoot(AVMVersionRootEntity vrEntity)
Update an AVM version root (tag and description only) |
protected abstract int |
updateVersionRootEntity(AVMVersionRootEntity updateVersionRootEntity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAVMVersionRootDAOImpl()
Method Detail |
---|
public void setVersionRootEntityCache(org.alfresco.repo.cache.SimpleCache vrEntityCache)
vrEntityCache
- public AVMVersionRootEntity createVersionRoot(long storeId, long rootNodeId, int version, java.lang.String creator, java.lang.String tag, java.lang.String description)
createVersionRoot
in interface AVMVersionRootDAO
public void updateVersionRoot(AVMVersionRootEntity vrEntity)
updateVersionRoot
in interface AVMVersionRootDAO
public java.util.List getAllInStore(long storeId)
getAllInStore
in interface AVMVersionRootDAO
protected AVMVersionRootEntity getByID(long vrEntityId)
public AVMVersionRootEntity getByVersionID(long storeId, int version)
getByVersionID
in interface AVMVersionRootDAO
public AVMVersionRootEntity getByRoot(long rootNodeId)
getByRoot
in interface AVMVersionRootDAO
public java.util.List getByDates(long storeId, java.util.Date from, java.util.Date to)
getByDates
in interface AVMVersionRootDAO
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.
public AVMVersionRootEntity getMaxVersion(long storeId)
getMaxVersion
in interface AVMVersionRootDAO
public java.lang.Long getMaxVersionID(long storeId)
getMaxVersionID
in interface AVMVersionRootDAO
public void deleteVersionRoot(long vrEntityId)
deleteVersionRoot
in interface AVMVersionRootDAO
protected abstract AVMVersionRootEntity createVersionRootEntity(AVMVersionRootEntity vrEntity)
protected abstract int updateVersionRootEntity(AVMVersionRootEntity updateVersionRootEntity)
protected abstract int deleteVersionRootEntity(long vrEntityId)
protected abstract AVMVersionRootEntity getVersionRootEntityMaxVersion(long storeId)
protected abstract java.lang.Long getVersionRootEntityMaxVersionId(long storeId)
protected abstract AVMVersionRootEntity getVersionRootEntityById(long vrEntityId)
protected abstract AVMVersionRootEntity getVersionRootEntityByStoreVersion(long storeId, int version)
protected abstract AVMVersionRootEntity getVersionRootEntityByRootNodeId(long rootNodeId)
protected abstract java.util.List getAllVersionRootEntitiesByStoreId(long storeId)
protected abstract java.util.List getVersionRootEntitiesByTo(long storeId, long to)
protected abstract java.util.List getVersionRootEntitiesByFrom(long storeId, long from)
protected abstract java.util.List getVersionRootEntitiesByBetween(long storeId, long from, long to)
public AVMVersionLayeredNodeEntryEntity createVersionLayeredNodeEntry(long versionRootId, java.lang.String md5sum, java.lang.String path)
createVersionLayeredNodeEntry
in interface AVMVersionRootDAO
public void deleteVersionLayeredNodeEntries(long versionRootId)
deleteVersionLayeredNodeEntries
in interface AVMVersionRootDAO
public java.util.List getVersionLayeredNodeEntries(long versionRootId)
getVersionLayeredNodeEntries
in interface AVMVersionRootDAO
protected abstract AVMVersionLayeredNodeEntryEntity createVersionLayeredNodeEntryEntity(long versionRootId, java.lang.String md5sum, java.lang.String path)
protected abstract int deleteVersionLayeredNodeEntryEntities(long versionRootId)
protected abstract java.util.List getVersionLayeredNodeEntryEntities(long storeId)
protected abstract java.util.List getVersionRootEntitiesByVersionsTo(long storeId, long to)
protected abstract java.util.List getVersionRootEntitiesByVersionsFrom(long storeId, long from)
protected abstract java.util.List getVersionRootEntitiesByVersionsBetween(long storeId, long from, long to)
public java.util.List getByVersionsTo(long id, int version)
getByVersionsTo
in interface AVMVersionRootDAO
public java.util.List getByVersionsFrom(long id, int version)
getByVersionsFrom
in interface AVMVersionRootDAO
public java.util.List getByVersionsBetween(long id, int startVersion, int endVersion)
getByVersionsBetween
in interface AVMVersionRootDAO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |