|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.avm.AbstractAVMStoreDAOImpl
public abstract class AbstractAVMStoreDAOImpl
Abstract implementation for AVMStore DAO.
This provides basic services such as caching but defers to the underlying implementation for CRUD operations.
Constructor Summary | |
---|---|
AbstractAVMStoreDAOImpl()
Default constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
Method Detail |
---|
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 AVMStoreDAO
name
- the name
public AVMStoreEntity getStore(long storeId)
getStore
in interface AVMStoreDAO
storeId
- the unique ID of the store entity
public AVMStoreEntity getStoreByRoot(long rootNodeId)
getStoreByRoot
in interface AVMStoreDAO
rootNodeId
- the unique ID of the root node entity
public AVMStoreEntity getStore(java.lang.String name)
getStore
in interface AVMStoreDAO
name
- the name to query for
public java.util.List getAllStores()
getAllStores
in interface AVMStoreDAO
public void updateStore(AVMStoreEntity storeEntity)
updateStore
in interface AVMStoreDAO
storeEntity
- the storepublic void deleteStore(long storeId)
deleteStore
in interface AVMStoreDAO
public void clearStoreEntityCache()
clearStoreEntityCache
in interface AVMStoreDAO
protected 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 AVMStoreDAO
public PropertyValue getStoreProperty(long storeId, org.alfresco.service.namespace.QName qname)
getStoreProperty
in interface AVMStoreDAO
public java.util.Map getStoreProperties(long storeId)
getStoreProperties
in interface AVMStoreDAO
public java.util.Map getStorePropertiesByKeyPattern(java.lang.String uriPattern, java.lang.String localNamePattern)
getStorePropertiesByKeyPattern
in interface AVMStoreDAO
public java.util.Map getStorePropertiesByStoreAndKeyPattern(long storeId, java.lang.String uriPattern, java.lang.String localNamePattern)
getStorePropertiesByStoreAndKeyPattern
in interface AVMStoreDAO
public void deleteStoreProperty(long storeId, org.alfresco.service.namespace.QName qname)
deleteStoreProperty
in interface AVMStoreDAO
public void deleteStoreProperties(long storeId)
deleteStoreProperties
in interface AVMStoreDAO
protected 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |