public abstract class AbstractAVMStoreDAOImpl extends Object implements AVMStoreDAO
This provides basic services such as caching but defers to the underlying implementation for CRUD operations.
| Constructor and Description |
|---|
AbstractAVMStoreDAOImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearStoreEntityCache() |
void |
createOrUpdateStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname,
PropertyValue value) |
AVMStoreEntity |
createStore(String name)
Create a new AVM store
|
protected abstract AVMStoreEntity |
createStoreEntity(AVMStoreEntity storeEntity) |
void |
deleteStore(long storeId)
Delete an existing AVM store
|
protected abstract int |
deleteStoreEntity(long id) |
void |
deleteStoreProperties(long storeId) |
void |
deleteStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname) |
protected abstract int |
deleteStorePropertyEntities(long storeId) |
protected abstract int |
deleteStorePropertyEntity(long storeId,
long qnameId) |
protected abstract List<AVMStoreEntity> |
getAllStoreEntities() |
List<AVMStoreEntity> |
getAllStores()
Get all AVM stores
|
AVMStoreEntity |
getStore(long storeId)
Get an existing AVM store by Store ID
|
AVMStoreEntity |
getStore(String name)
Get an existing AVM store by name
|
AVMStoreEntity |
getStoreByRoot(long rootNodeId)
Get an existing AVM store by Root Node ID
|
protected abstract AVMStoreEntity |
getStoreEntity(long id) |
protected abstract AVMStoreEntity |
getStoreEntity(String name) |
protected abstract AVMStoreEntity |
getStoreEntityByRoot(long rootNodeId) |
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getStoreProperties(long storeId) |
Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> |
getStorePropertiesByKeyPattern(String uriPattern,
String localNamePattern) |
Map<org.alfresco.service.namespace.QName,PropertyValue> |
getStorePropertiesByStoreAndKeyPattern(long storeId,
String uriPattern,
String localNamePattern) |
PropertyValue |
getStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname) |
protected abstract List<AVMStorePropertyEntity> |
getStorePropertyEntities(long storeId) |
protected abstract List<AVMStorePropertyEntity> |
getStorePropertyEntitiesByKeyPattern(String uriPattern,
String localNamePattern) |
protected abstract List<AVMStorePropertyEntity> |
getStorePropertyEntitiesByStoreAndKeyPattern(long storeId,
String uriPattern,
String localNamePattern) |
protected abstract AVMStorePropertyEntity |
getStorePropertyEntity(long storeId,
long qnameId) |
protected abstract void |
insertStorePropertyEntity(AVMStorePropertyEntity propEntity) |
void |
setAvmStoreCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> avmStoreCache)
Set the cache to use for avm_stores lookups (optional).
|
void |
setAvmStorePropertyCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> avmStorePropCache)
Set the cache to use for avm_store_properties lookups (optional).
|
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
updateStore(AVMStoreEntity storeEntity)
Update an existing AVM store
|
protected abstract int |
updateStoreEntity(AVMStoreEntity storeEntity) |
protected abstract int |
updateStorePropertyEntity(AVMStorePropertyEntity propEntity) |
public AbstractAVMStoreDAOImpl()
This sets up the DAO accessors to bypass any caching to handle the case where the caches are not supplied in the setters.
public void setAvmStoreCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> avmStoreCache)
avmStoreCache - the cache of IDs to AVMStoreEntitiespublic void setAvmStorePropertyCache(org.alfresco.repo.cache.SimpleCache<Serializable,Object> avmStorePropCache)
avmStorePropCache - the cache of IDs to AVMStorePropertyEntitiespublic void setQnameDAO(QNameDAO qnameDAO)
public AVMStoreEntity createStore(String name)
createStore in interface AVMStoreDAOname - the namepublic AVMStoreEntity getStore(long storeId)
getStore in interface AVMStoreDAOstoreId - the unique ID of the store entitypublic AVMStoreEntity getStoreByRoot(long rootNodeId)
getStoreByRoot in interface AVMStoreDAOrootNodeId - the unique ID of the root node entitypublic AVMStoreEntity getStore(String name)
getStore in interface AVMStoreDAOname - the name to query forpublic List<AVMStoreEntity> getAllStores()
getAllStores in interface AVMStoreDAOpublic void updateStore(AVMStoreEntity storeEntity)
updateStore in interface AVMStoreDAOstoreEntity - the storepublic void deleteStore(long storeId)
deleteStore in interface AVMStoreDAOpublic void clearStoreEntityCache()
clearStoreEntityCache in interface AVMStoreDAOprotected abstract AVMStoreEntity getStoreEntity(long id)
protected abstract AVMStoreEntity getStoreEntity(String name)
protected abstract AVMStoreEntity getStoreEntityByRoot(long rootNodeId)
protected abstract List<AVMStoreEntity> getAllStoreEntities()
protected abstract AVMStoreEntity createStoreEntity(AVMStoreEntity storeEntity)
protected abstract int deleteStoreEntity(long id)
protected abstract int updateStoreEntity(AVMStoreEntity storeEntity)
public void createOrUpdateStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname,
PropertyValue value)
createOrUpdateStoreProperty in interface AVMStoreDAOpublic PropertyValue getStoreProperty(long storeId, org.alfresco.service.namespace.QName qname)
getStoreProperty in interface AVMStoreDAOpublic Map<org.alfresco.service.namespace.QName,PropertyValue> getStoreProperties(long storeId)
getStoreProperties in interface AVMStoreDAOpublic Map<String,Map<org.alfresco.service.namespace.QName,PropertyValue>> getStorePropertiesByKeyPattern(String uriPattern, String localNamePattern)
getStorePropertiesByKeyPattern in interface AVMStoreDAOpublic Map<org.alfresco.service.namespace.QName,PropertyValue> getStorePropertiesByStoreAndKeyPattern(long storeId, String uriPattern, String localNamePattern)
getStorePropertiesByStoreAndKeyPattern in interface AVMStoreDAOpublic void deleteStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname)
deleteStoreProperty in interface AVMStoreDAOpublic void deleteStoreProperties(long storeId)
deleteStoreProperties in interface AVMStoreDAOprotected abstract void insertStorePropertyEntity(AVMStorePropertyEntity propEntity)
protected abstract int updateStorePropertyEntity(AVMStorePropertyEntity propEntity)
protected abstract AVMStorePropertyEntity getStorePropertyEntity(long storeId, long qnameId)
protected abstract List<AVMStorePropertyEntity> getStorePropertyEntities(long storeId)
protected abstract List<AVMStorePropertyEntity> getStorePropertyEntitiesByKeyPattern(String uriPattern, String localNamePattern)
protected abstract List<AVMStorePropertyEntity> getStorePropertyEntitiesByStoreAndKeyPattern(long storeId, String uriPattern, String localNamePattern)
protected abstract int deleteStorePropertyEntity(long storeId,
long qnameId)
protected abstract int deleteStorePropertyEntities(long storeId)
Copyright © 2005–2014 Alfresco Software. All rights reserved.