public interface QNameDAO
| Modifier and Type | Method and Description |
|---|---|
Map<QName,? extends Object> |
convertIdMapToQNameMap(Map<Long,? extends Object> idMap)
Convenience method to convert map keys from QName IDs to QNames
|
Set<QName> |
convertIdsToQNames(Set<Long> ids)
Bulk-convert QName IDs into QNames
|
Set<Long> |
convertQNamesToIds(Set<QName> qnames,
boolean create)
Bulk-convert QNames into QName IDs.
|
void |
deleteQName(QName qname)
Delete a QName.
|
Pair<Long,String> |
getNamespace(Long id) |
Pair<Long,String> |
getNamespace(String namespaceUri) |
Pair<Long,String> |
getOrCreateNamespace(String namespaceUri)
Get an existing instance matching the URI or create one if necessary.
|
Pair<Long,QName> |
getOrCreateQName(QName qname)
Get an existing instance matching the QName or create one if necessary.
|
Pair<Long,QName> |
getQName(Long id) |
Pair<Long,QName> |
getQName(QName qname) |
void |
updateNamespace(String oldNamespaceUri,
String newNamespaceUri)
Modifies an existing namespace URI.
|
Pair<Long,QName> |
updateQName(QName qnameOld,
QName qnameNew)
Modify an existing QName.
|
Pair<Long,String> getNamespace(Long id)
id - the unique ID of the entityAlfrescoRuntimeException - if the ID provided is invalidPair<Long,String> getNamespace(String namespaceUri)
namespaceUri - the namespace URI to query forPair<Long,String> getOrCreateNamespace(String namespaceUri)
namespaceUri - the namespace URI to createvoid updateNamespace(String oldNamespaceUri, String newNamespaceUri)
oldNamespaceUri - the old namespace URInewNamespaceUri - the new namespace URIAlfrescoRuntimeException - if the new namespace is in usePair<Long,QName> getQName(Long id)
id - the unique ID of the entityAlfrescoRuntimeException - if the ID provided is invalidPair<Long,QName> getQName(QName qname)
qname - the QName to query forPair<Long,QName> getOrCreateQName(QName qname)
qname - the QName to query forPair<Long,QName> updateQName(QName qnameOld, QName qnameNew)
qnameOld - the old QName, which must existqnameNew - the new QName, which must not existvoid deleteQName(QName qname)
Set<QName> convertIdsToQNames(Set<Long> ids)
ids - the IDsMap<QName,? extends Object> convertIdMapToQNameMap(Map<Long,? extends Object> idMap)
idMap - a map of objects keyed by QName IDSet<Long> convertQNamesToIds(Set<QName> qnames, boolean create)
qnames - the QNames to convertcreate - true to create any missing QName entitiesCopyright © 2005–2020 Alfresco Software. All rights reserved.