mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV/V3.3-DAO-REFACTOR to HEAD
18657: SAIL-233 QNameDAO: Added getValueKey methods to cache git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18659 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -169,6 +169,12 @@ public abstract class AbstractQNameDAOImpl implements QNameDAO
|
||||
*/
|
||||
private class NamespaceCallbackDAO extends EntityLookupCallbackDAOAdaptor<Long, String, String>
|
||||
{
|
||||
@Override
|
||||
public String getValueKey(String value)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
public Pair<Long, String> findByKey(Long id)
|
||||
{
|
||||
NamespaceEntity entity = findNamespaceEntityById(id);
|
||||
@@ -294,6 +300,12 @@ public abstract class AbstractQNameDAOImpl implements QNameDAO
|
||||
*/
|
||||
private class QNameCallbackDAO extends EntityLookupCallbackDAOAdaptor<Long, QName, QName>
|
||||
{
|
||||
@Override
|
||||
public QName getValueKey(QName value)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
public Pair<Long, QName> findByKey(Long id)
|
||||
{
|
||||
QNameEntity entity = findQNameEntityById(id);
|
||||
|
Reference in New Issue
Block a user