public abstract class AbstractEncodingDAOImpl extends Object implements EncodingDAO
This provides basic services such as caching, but defers to the underlying implementation for CRUD operations.
Constructor and Description |
---|
AbstractEncodingDAOImpl() |
Modifier and Type | Method and Description |
---|---|
protected abstract EncodingEntity |
createEncodingEntity(String encoding) |
org.alfresco.util.Pair<Long,String> |
getEncoding(Long id) |
org.alfresco.util.Pair<Long,String> |
getEncoding(String encoding)
Get the encoding pair.
|
protected abstract EncodingEntity |
getEncodingEntity(Long id) |
protected abstract EncodingEntity |
getEncodingEntity(String encoding) |
org.alfresco.util.Pair<Long,String> |
getOrCreateEncoding(String encoding) |
void |
setEncodingEntityCache(org.alfresco.repo.cache.SimpleCache<Long,String> encodingEntityCache)
Set the cache that maintains the ID-Encoding mappings and vice-versa (bi-directional)
|
public void setEncodingEntityCache(org.alfresco.repo.cache.SimpleCache<Long,String> encodingEntityCache)
encodingEntityCache
- the cachepublic org.alfresco.util.Pair<Long,String> getEncoding(Long id)
getEncoding
in interface EncodingDAO
public org.alfresco.util.Pair<Long,String> getEncoding(String encoding)
EncodingDAO
getEncoding
in interface EncodingDAO
encoding
- the encoding stringpublic org.alfresco.util.Pair<Long,String> getOrCreateEncoding(String encoding)
getOrCreateEncoding
in interface EncodingDAO
protected abstract EncodingEntity getEncodingEntity(Long id)
id
- the ID of the encoding entityprotected abstract EncodingEntity getEncodingEntity(String encoding)
protected abstract EncodingEntity createEncodingEntity(String encoding)
Copyright © 2005–2017 Alfresco Software. All rights reserved.