public abstract class AbstractAVMStoreDAOImpl extends java.lang.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(java.lang.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 java.util.List |
getAllStoreEntities() |
java.util.List |
getAllStores()
Get all AVM stores
|
AVMStoreEntity |
getStore(long storeId)
Get an existing AVM store by Store ID
|
AVMStoreEntity |
getStore(java.lang.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(java.lang.String name) |
protected abstract AVMStoreEntity |
getStoreEntityByRoot(long rootNodeId) |
java.util.Map |
getStoreProperties(long storeId) |
java.util.Map |
getStorePropertiesByKeyPattern(java.lang.String uriPattern,
java.lang.String localNamePattern) |
java.util.Map |
getStorePropertiesByStoreAndKeyPattern(long storeId,
java.lang.String uriPattern,
java.lang.String localNamePattern) |
PropertyValue |
getStoreProperty(long storeId,
org.alfresco.service.namespace.QName qname) |
protected abstract java.util.List |
getStorePropertyEntities(long storeId) |
protected abstract java.util.List |
getStorePropertyEntitiesByKeyPattern(java.lang.String uriPattern,
java.lang.String localNamePattern) |
protected abstract java.util.List |
getStorePropertyEntitiesByStoreAndKeyPattern(long storeId,
java.lang.String uriPattern,
java.lang.String localNamePattern) |
protected abstract AVMStorePropertyEntity |
getStorePropertyEntity(long storeId,
long qnameId) |
protected abstract void |
insertStorePropertyEntity(AVMStorePropertyEntity propEntity) |
void |
setAvmStoreCache(org.alfresco.repo.cache.SimpleCache avmStoreCache)
Set the cache to use for avm_stores lookups (optional).
|
void |
setAvmStorePropertyCache(org.alfresco.repo.cache.SimpleCache 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 avmStoreCache)
avmStoreCache - the cache of IDs to AVMStoreEntitiespublic void setAvmStorePropertyCache(org.alfresco.repo.cache.SimpleCache avmStorePropCache)
avmStorePropCache - the cache of IDs to AVMStorePropertyEntitiespublic void setQnameDAO(QNameDAO qnameDAO)
public AVMStoreEntity createStore(java.lang.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(java.lang.String name)
getStore in interface AVMStoreDAOname - the name to query forpublic java.util.List 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(java.lang.String name)
protected abstract AVMStoreEntity getStoreEntityByRoot(long rootNodeId)
protected abstract java.util.List 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 java.util.Map getStoreProperties(long storeId)
getStoreProperties in interface AVMStoreDAOpublic java.util.Map getStorePropertiesByKeyPattern(java.lang.String uriPattern,
java.lang.String localNamePattern)
getStorePropertiesByKeyPattern in interface AVMStoreDAOpublic java.util.Map getStorePropertiesByStoreAndKeyPattern(long storeId,
java.lang.String uriPattern,
java.lang.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 java.util.List getStorePropertyEntities(long storeId)
protected abstract java.util.List getStorePropertyEntitiesByKeyPattern(java.lang.String uriPattern,
java.lang.String localNamePattern)
protected abstract java.util.List getStorePropertyEntitiesByStoreAndKeyPattern(long storeId,
java.lang.String uriPattern,
java.lang.String localNamePattern)
protected abstract int deleteStorePropertyEntity(long storeId,
long qnameId)
protected abstract int deleteStorePropertyEntities(long storeId)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.