public class NodeDAOImpl extends AbstractNodeDAOImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeDAOImpl.MSSQL
MSSQL requires some overrides to handle specific behaviour.
|
static class |
NodeDAOImpl.MySQL
MySQL (InnoDB) specific DAO overrides
|
static class |
NodeDAOImpl.MySQLClusterNDB
MySQL Cluster NDB specific DAO overrides
WARNING: Experimental/unsupported - see MySQLClusterNDBDialect !
|
NodeDAO.ChildAssocRefQueryCallback, NodeDAO.NodeRefQueryCallback, NodeDAO.NodeView| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected QNameDAO |
qnameDAO |
isDebugEnabled, logger, LONG_ZERO| Constructor and Description |
|---|
NodeDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
countChildAssocsByParent(Long parentNodeId,
boolean isPrimary)
Counts the number of child associations directly under parentNodeId.
|
protected int |
deleteChildAssocs(List<Long> ids) |
protected int |
deleteNodeAspects(Long nodeId,
Set<Long> qnameIds) |
protected int |
deleteNodeAssoc(Long sourceNodeId,
Long targetNodeId,
Long assocTypeQNameId) |
protected int |
deleteNodeAssocs(List<Long> ids) |
protected int |
deleteNodeById(Long nodeId) |
protected int |
deleteNodeProperties(Long nodeId,
List<NodePropertyKey> propKeys) |
protected int |
deleteNodeProperties(Long nodeId,
Set<Long> qnameIds) |
protected int |
deleteNodesByCommitTime(long fromTxnCommitTimeMs,
long toTxnCommitTimeMs) |
protected void |
deleteSubscriptions(Long nodeId)
The default implementation relies on ON DELETE CASCADE and the
subscriptions avoiding deleted nodes - NoOp.
|
protected int |
deleteTransaction(Long txnId) |
int |
deleteTxnsUnused(long fromCommitTime,
long toCommitTime)
Remove unused transactions from commit time 'fromCommitTime' to commit time 'toCommitTime'
|
void |
executeBatch()
Write a batch of insert or update commands
|
Long |
getMaxNodeId() |
Long |
getMinNodeId() |
org.alfresco.util.Pair<Long,Long> |
getNodeIdsIntervalForType(org.alfresco.service.namespace.QName type,
Long startTxnTime,
Long endTxnTime)
Returns the [minId, maxId] interval for nodes of a type, with the transaction time in the given window time.
|
List<Transaction> |
getOneTxnsByCommitTimeDescending(Long fromTimeInclusive,
Long toTimeExclusive,
boolean remoteOnly)
Get most recent transaction made in a given commit time range
|
protected Long |
insertChildAssoc(ChildAssocEntity assoc) |
protected Long |
insertNode(NodeEntity node) |
protected void |
insertNodeAspect(Long nodeId,
Long qnameId) |
protected Long |
insertNodeAssoc(Long sourceNodeId,
Long targetNodeId,
Long assocTypeQNameId,
int assocIndex) |
protected void |
insertNodeProperties(Long nodeId,
Map<NodePropertyKey,NodePropertyValue> persistableProps) |
protected Long |
insertServer(String ipAddress) |
protected Long |
insertStore(StoreEntity store) |
protected Long |
insertTransaction(Long serverId,
String changeTxnId,
Long commitTimeMs) |
protected void |
moveNodeData(Long fromNodeId,
Long toNodeId)
Moves all node-linked data from one node to another.
|
protected List<StoreEntity> |
selectAllStores() |
protected ChildAssocEntity |
selectChildAssoc(Long assocId) |
protected List<ChildAssocEntity> |
selectChildAssoc(Long parentNodeId,
Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName) |
protected ChildAssocEntity |
selectChildAssoc(Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
String childName) |
protected void |
selectChildAssocs(Long parentNodeId,
Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
Boolean isPrimary,
Boolean sameStore,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Parameters are all optional except the parent node ID and the callback
|
protected void |
selectChildAssocs(Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
Collection<String> childNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
void |
selectChildAssocs(Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
int maxResults,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
protected void |
selectChildAssocs(Long parentNodeId,
Set<org.alfresco.service.namespace.QName> assocTypeQNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
protected void |
selectChildAssocsByChildTypes(Long parentNodeId,
Set<org.alfresco.service.namespace.QName> childNodeTypeQNames,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
protected void |
selectChildAssocsByPropertyValue(Long parentNodeId,
org.alfresco.service.namespace.QName propertyQName,
NodePropertyValue nodeValue,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
List<Node> |
selectChildAssocsWithoutNodeAssocsOfTypes(Long parentNodeId,
Long minNodeId,
Long maxNodeId,
Set<org.alfresco.service.namespace.QName> assocTypeQNames) |
protected void |
selectChildAssocsWithoutParentAssocsOfType(Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
NodeDAO.ChildAssocRefQueryCallback resultsCallback) |
protected List<ChildAssocEntity> |
selectChildNodeIds(Long nodeId,
Boolean isPrimary,
Long minChildNodeIdInclusive,
int maxResults) |
protected Transaction |
selectLastTxnBeforeCommitTime(Long maxCommitTime) |
protected Long |
selectMaxTxnCommitTime() |
protected Long |
selectMaxTxnId() |
protected Long |
selectMinTxnCommitTime() |
protected Long |
selectMinTxnCommitTimeForDeletedNodes() |
protected Long |
selectMinTxnId() |
protected Long |
selectMinUnusedTxnCommitTime() |
protected Map<NodeVersionKey,Set<org.alfresco.service.namespace.QName>> |
selectNodeAspects(Set<Long> nodeIds) |
protected NodeAssocEntity |
selectNodeAssocById(Long assocId) |
protected int |
selectNodeAssocMaxIndex(Long sourceNodeId,
Long assocTypeQNameId) |
protected List<NodeAssocEntity> |
selectNodeAssocs(Long nodeId) |
protected List<NodeAssocEntity> |
selectNodeAssocsBySource(Long sourceNodeId,
Long typeQNameId) |
protected List<NodeAssocEntity> |
selectNodeAssocsBySourceAndPropertyValue(Long sourceNodeId,
Long typeQNameId,
Long propertyQNameId,
NodePropertyValue nodeValue) |
protected List<NodeAssocEntity> |
selectNodeAssocsByTarget(Long targetNodeId,
Long typeQNameId) |
protected NodeEntity |
selectNodeById(Long id) |
protected NodeEntity |
selectNodeByNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> |
selectNodeProperties(Long nodeId) |
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> |
selectNodeProperties(Long nodeId,
Set<Long> qnameIds) |
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> |
selectNodeProperties(Set<Long> nodeIds) |
List<NodePropertyEntity> |
selectNodePropertiesByDataType(org.alfresco.service.namespace.QName dataType,
long minNodeId,
long maxNodeId)
Select all node properties that are between two node IDs and of the given actual type
|
List<NodePropertyEntity> |
selectNodePropertiesByTypes(Set<org.alfresco.service.namespace.QName> qnames)
Used by the re-encryptor to re-encrypt encryptable properties with a new encryption key.
|
protected List<Node> |
selectNodesByIds(SortedSet<Long> ids) |
protected List<Node> |
selectNodesByUuids(Long storeId,
SortedSet<String> uuids) |
protected void |
selectNodesWithAspects(List<Long> qnameIds,
Long minNodeId,
Long maxNodeId,
NodeDAO.NodeRefQueryCallback resultsCallback) |
protected List<ChildAssocEntity> |
selectParentAssocs(Long childNodeId) |
protected void |
selectParentAssocs(Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
Boolean isPrimary,
NodeDAO.ChildAssocRefQueryCallback resultsCallback)
Parameters are all optional except the parent node ID and the callback
|
List<NodeIdAndAclId> |
selectPrimaryChildAcls(Long nodeId) |
protected List<ChildAssocEntity> |
selectPrimaryParentAssocs(Long childNodeId)
No DB constraint, so multiple returned
|
protected ServerEntity |
selectServer(String ipAddress) |
protected StoreEntity |
selectStore(org.alfresco.service.cmr.repository.StoreRef storeRef) |
protected NodeEntity |
selectStoreRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef) |
protected int |
selectTransactionCount() |
protected Transaction |
selectTxnById(Long txnId) |
protected List<NodeEntity> |
selectTxnChanges(Long txnId,
Long storeId) |
protected List<Transaction> |
selectTxns(Long fromTimeInclusive,
Long toTimeExclusive,
Integer count,
List<Long> includeTxnIds,
List<Long> excludeTxnIds,
Long excludeServerId,
Boolean ascending) |
protected List<Long> |
selectTxnsUnused(Long minTxnId,
Long maxCommitTime,
Integer count) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
void |
startBatch()
Start a batch of insert or update commands
|
protected int |
updateChildAssocIndex(Long parentNodeId,
Long childNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
int index) |
protected int |
updateChildAssocUniqueName(Long assocId,
String name) |
protected int |
updateNode(NodeUpdateEntity nodeUpdate) |
protected int |
updateNodeAssoc(Long id,
int assocIndex) |
protected int |
updateNodes(Long txnId,
List<Long> nodeIds) |
protected int |
updateNodesInStore(Long txnId,
Long storeId) |
protected void |
updatePrimaryChildrenSharedAclId(Long txnId,
Long primaryParentNodeId,
Long optionalOldSharedAlcIdInAdditionToNull,
Long newSharedAlcId) |
protected int |
updatePrimaryParentAssocs(Long childNodeId,
Long parentNodeId,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
String childNodeName) |
protected int |
updateStore(StoreEntity store) |
protected int |
updateStoreRoot(StoreEntity store) |
protected int |
updateTransaction(Long txnId,
Long commitTimeMs) |
addNodeAspects, addNodeProperties, addNodeProperty, cacheNodes, cacheNodesById, clear, cycleCheck, deleteChildAssoc, deleteNode, exists, exists, exists, getAllRootNodes, getCachedAncestors, getChildAssoc, getChildAssoc, getChildAssoc, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocsByChildTypes, getChildAssocsByPropertyValue, getChildAssocsWithoutParentAssocsOfType, getCurrentTransactionId, getMaxTxnCommitTime, getMaxTxnId, getMaxTxnIdByCommitTime, getMinTxnCommitTime, getMinTxnCommitTimeForDeletedNodes, getMinTxnId, getMinUnusedTxnCommitTime, getNodeAclId, getNodeAspects, getNodeAssoc, getNodeAssocOrNull, getNodeAssocsToAndFrom, getNodeIdStatus, getNodePair, getNodePair, getNodeProperties, getNodeProperty, getNodeRefStatus, getNodesWithAspects, getNodeType, getParentAssocs, getPaths, getPrimaryChildrenAcls, getPrimaryParentAssoc, getRootNode, getServerId, getSourceNodeAssocs, getStore, getStores, getTargetAssocsByPropertyValue, getTargetNodeAssocs, getTransactionCount, getTxnById, getTxnChanges, getTxnChangesForStore, getTxnsByCommitTimeAscending, getTxnsByCommitTimeAscending, getTxnsByCommitTimeDescending, getTxnsUnused, hasNodeAspect, init, isInCurrentTxn, moveNode, moveStore, newChildAssoc, newChildAssocInsert, newChildAssocInsertImpl, newNode, newNodeAssoc, newNodeImplInsert, newStore, purgeNodes, purgeTxn, removeNodeAspects, removeNodeAspects, removeNodeAssoc, removeNodeAssocs, removeNodeProperties, setAccessControlListDAO, setAclDAO, setAllRootNodesCache, setAspectsCache, setCachingThreshold, setCheckNodeConsistency, setChildAssocIndex, setChildAssocsUniqueName, setChildAssocsUniqueNameImpl, setChildByNameCache, setContentDataDAO, setControlDAO, setLocaleDAO, setModifiedDate, setModifiedProperties, setNodeAclId, setNodeAssocIndex, setNodeProperties, setNodesCache, setParentAssocsCacheLimitFactor, setParentAssocsCacheSize, setPolicyBehaviourFilter, setPrimaryChildrenSharedAclId, setPropertiesCache, setRootNodesCache, setTransactionService, setUsageDAO, touchNodes, updateChildAssocUniqueNameImpl, updateNode, updatePrimaryParentAssocs, updatePrimaryParentAssocsImplprotected QNameDAO qnameDAO
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
public void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
setQnameDAO in class AbstractNodeDAOImplqnameDAO - translates QName IDs into QName instances and vice-versapublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
setDictionaryService in class AbstractNodeDAOImpldictionaryService - the service help determine cm:auditable characteristicspublic void startBatch()
BatchingDAOpublic void executeBatch()
BatchingDAOprotected ServerEntity selectServer(String ipAddress)
selectServer in class AbstractNodeDAOImplprotected Long insertServer(String ipAddress)
insertServer in class AbstractNodeDAOImplprotected Long insertTransaction(Long serverId, String changeTxnId, Long commitTimeMs)
insertTransaction in class AbstractNodeDAOImplprotected int updateTransaction(Long txnId, Long commitTimeMs)
updateTransaction in class AbstractNodeDAOImplprotected int deleteTransaction(Long txnId)
deleteTransaction in class AbstractNodeDAOImplprotected List<StoreEntity> selectAllStores()
selectAllStores in class AbstractNodeDAOImplprotected StoreEntity selectStore(org.alfresco.service.cmr.repository.StoreRef storeRef)
selectStore in class AbstractNodeDAOImplprotected NodeEntity selectStoreRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
selectStoreRootNode in class AbstractNodeDAOImplprotected Long insertStore(StoreEntity store)
insertStore in class AbstractNodeDAOImplprotected int updateStoreRoot(StoreEntity store)
updateStoreRoot in class AbstractNodeDAOImplprotected int updateStore(StoreEntity store)
updateStore in class AbstractNodeDAOImplprotected int updateNodesInStore(Long txnId, Long storeId)
updateNodesInStore in class AbstractNodeDAOImplprotected Long insertNode(NodeEntity node)
insertNode in class AbstractNodeDAOImplprotected int updateNode(NodeUpdateEntity nodeUpdate)
updateNode in class AbstractNodeDAOImplprotected int updateNodes(Long txnId, List<Long> nodeIds)
updateNodes in class AbstractNodeDAOImplpublic Long getMinNodeId()
public Long getMaxNodeId()
public org.alfresco.util.Pair<Long,Long> getNodeIdsIntervalForType(org.alfresco.service.namespace.QName type, Long startTxnTime, Long endTxnTime)
NodeDAOtype - the node typestartTxnTime - the starting transaction time, null is allowed, case in which no minimum transaction time is consideredendTxnTime - the end transaction time, null is allowed, case in which no maximum transaction time is consideredprotected void updatePrimaryChildrenSharedAclId(Long txnId, Long primaryParentNodeId, Long optionalOldSharedAlcIdInAdditionToNull, Long newSharedAlcId)
updatePrimaryChildrenSharedAclId in class AbstractNodeDAOImplprotected int deleteNodeById(Long nodeId)
deleteNodeById in class AbstractNodeDAOImplprotected int deleteNodesByCommitTime(long fromTxnCommitTimeMs,
long toTxnCommitTimeMs)
deleteNodesByCommitTime in class AbstractNodeDAOImplprotected NodeEntity selectNodeById(Long id)
selectNodeById in class AbstractNodeDAOImplprotected NodeEntity selectNodeByNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
selectNodeByNodeRef in class AbstractNodeDAOImplprotected List<Node> selectNodesByUuids(Long storeId, SortedSet<String> uuids)
selectNodesByUuids in class AbstractNodeDAOImplprotected List<Node> selectNodesByIds(SortedSet<Long> ids)
selectNodesByIds in class AbstractNodeDAOImplprotected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Set<Long> nodeIds)
selectNodeProperties in class AbstractNodeDAOImplprotected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Long nodeId)
selectNodeProperties in class AbstractNodeDAOImplprotected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Long nodeId, Set<Long> qnameIds)
selectNodeProperties in class AbstractNodeDAOImplpublic List<NodePropertyEntity> selectNodePropertiesByTypes(Set<org.alfresco.service.namespace.QName> qnames)
NodeDAOpublic List<NodePropertyEntity> selectNodePropertiesByDataType(org.alfresco.service.namespace.QName dataType, long minNodeId, long maxNodeId)
NodeDAOdataType - the actual, original type of the property, as given by one of the constants
on DataTypeDefinitionminNodeId - the minimum node ID (inclusive)maxNodeId - the maximum node ID (exclusive)protected int deleteNodeProperties(Long nodeId, Set<Long> qnameIds)
deleteNodeProperties in class AbstractNodeDAOImplprotected int deleteNodeProperties(Long nodeId, List<NodePropertyKey> propKeys)
deleteNodeProperties in class AbstractNodeDAOImplprotected void insertNodeProperties(Long nodeId, Map<NodePropertyKey,NodePropertyValue> persistableProps)
insertNodeProperties in class AbstractNodeDAOImplprotected Map<NodeVersionKey,Set<org.alfresco.service.namespace.QName>> selectNodeAspects(Set<Long> nodeIds)
selectNodeAspects in class AbstractNodeDAOImplprotected void insertNodeAspect(Long nodeId, Long qnameId)
insertNodeAspect in class AbstractNodeDAOImplprotected int deleteNodeAspects(Long nodeId, Set<Long> qnameIds)
deleteNodeAspects in class AbstractNodeDAOImplprotected void selectNodesWithAspects(List<Long> qnameIds, Long minNodeId, Long maxNodeId, NodeDAO.NodeRefQueryCallback resultsCallback)
selectNodesWithAspects in class AbstractNodeDAOImplprotected Long insertNodeAssoc(Long sourceNodeId, Long targetNodeId, Long assocTypeQNameId, int assocIndex)
insertNodeAssoc in class AbstractNodeDAOImplprotected int updateNodeAssoc(Long id, int assocIndex)
updateNodeAssoc in class AbstractNodeDAOImplprotected int deleteNodeAssoc(Long sourceNodeId, Long targetNodeId, Long assocTypeQNameId)
deleteNodeAssoc in class AbstractNodeDAOImplprotected int deleteNodeAssocs(List<Long> ids)
deleteNodeAssocs in class AbstractNodeDAOImplprotected List<NodeAssocEntity> selectNodeAssocs(Long nodeId)
selectNodeAssocs in class AbstractNodeDAOImplprotected List<NodeAssocEntity> selectNodeAssocsBySource(Long sourceNodeId, Long typeQNameId)
selectNodeAssocsBySource in class AbstractNodeDAOImplprotected List<NodeAssocEntity> selectNodeAssocsBySourceAndPropertyValue(Long sourceNodeId, Long typeQNameId, Long propertyQNameId, NodePropertyValue nodeValue)
selectNodeAssocsBySourceAndPropertyValue in class AbstractNodeDAOImplprotected List<NodeAssocEntity> selectNodeAssocsByTarget(Long targetNodeId, Long typeQNameId)
selectNodeAssocsByTarget in class AbstractNodeDAOImplprotected NodeAssocEntity selectNodeAssocById(Long assocId)
selectNodeAssocById in class AbstractNodeDAOImplprotected int selectNodeAssocMaxIndex(Long sourceNodeId, Long assocTypeQNameId)
selectNodeAssocMaxIndex in class AbstractNodeDAOImplprotected Long insertChildAssoc(ChildAssocEntity assoc)
insertChildAssoc in class AbstractNodeDAOImplprotected int deleteChildAssocs(List<Long> ids)
deleteChildAssocs in class AbstractNodeDAOImplprotected int updateChildAssocIndex(Long parentNodeId, Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int index)
updateChildAssocIndex in class AbstractNodeDAOImplprotected int updateChildAssocUniqueName(Long assocId, String name)
updateChildAssocUniqueName in class AbstractNodeDAOImplprotected ChildAssocEntity selectChildAssoc(Long assocId)
selectChildAssoc in class AbstractNodeDAOImplprotected List<ChildAssocEntity> selectChildNodeIds(Long nodeId, Boolean isPrimary, Long minChildNodeIdInclusive, int maxResults)
selectChildNodeIds in class AbstractNodeDAOImplpublic List<NodeIdAndAclId> selectPrimaryChildAcls(Long nodeId)
selectPrimaryChildAcls in class AbstractNodeDAOImplprotected List<ChildAssocEntity> selectChildAssoc(Long parentNodeId, Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
selectChildAssoc in class AbstractNodeDAOImplprotected void selectChildAssocs(Long parentNodeId, Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, Boolean isPrimary, Boolean sameStore, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
AbstractNodeDAOImplselectChildAssocs in class AbstractNodeDAOImplpublic void selectChildAssocs(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int maxResults, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs in class AbstractNodeDAOImplprotected void selectChildAssocs(Long parentNodeId, Set<org.alfresco.service.namespace.QName> assocTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs in class AbstractNodeDAOImplprotected ChildAssocEntity selectChildAssoc(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, String childName)
selectChildAssoc in class AbstractNodeDAOImplprotected void selectChildAssocs(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, Collection<String> childNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs in class AbstractNodeDAOImplprotected void selectChildAssocsByPropertyValue(Long parentNodeId, org.alfresco.service.namespace.QName propertyQName, NodePropertyValue nodeValue, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsByPropertyValue in class AbstractNodeDAOImplprotected void selectChildAssocsByChildTypes(Long parentNodeId, Set<org.alfresco.service.namespace.QName> childNodeTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsByChildTypes in class AbstractNodeDAOImplprotected void selectChildAssocsWithoutParentAssocsOfType(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsWithoutParentAssocsOfType in class AbstractNodeDAOImplpublic List<Node> selectChildAssocsWithoutNodeAssocsOfTypes(Long parentNodeId, Long minNodeId, Long maxNodeId, Set<org.alfresco.service.namespace.QName> assocTypeQNames)
parentNodeId - the parent node idminNodeId - the minimum node ID (inclusive), null for no limitation on the minimum value of the node idmaxNodeId - the maximum node ID (exclusive), null for no limitation on the maximum value of the node idassocTypeQNames - the node associations to exclude, null for no filtering of the associations typesprotected List<ChildAssocEntity> selectPrimaryParentAssocs(Long childNodeId)
AbstractNodeDAOImplselectPrimaryParentAssocs in class AbstractNodeDAOImplprotected void selectParentAssocs(Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, Boolean isPrimary, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
AbstractNodeDAOImplselectParentAssocs in class AbstractNodeDAOImplprotected List<ChildAssocEntity> selectParentAssocs(Long childNodeId)
selectParentAssocs in class AbstractNodeDAOImplprotected int updatePrimaryParentAssocs(Long childNodeId, Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, String childNodeName)
updatePrimaryParentAssocs in class AbstractNodeDAOImplprotected void moveNodeData(Long fromNodeId, Long toNodeId)
AbstractNodeDAOImplmoveNodeData in class AbstractNodeDAOImplfromNodeId - the source nodetoNodeId - the target nodeprotected void deleteSubscriptions(Long nodeId)
deleteSubscriptions in class AbstractNodeDAOImplprotected Transaction selectLastTxnBeforeCommitTime(Long maxCommitTime)
selectLastTxnBeforeCommitTime in class AbstractNodeDAOImplprotected int selectTransactionCount()
selectTransactionCount in class AbstractNodeDAOImplprotected Transaction selectTxnById(Long txnId)
selectTxnById in class AbstractNodeDAOImplprotected List<NodeEntity> selectTxnChanges(Long txnId, Long storeId)
selectTxnChanges in class AbstractNodeDAOImplprotected List<Transaction> selectTxns(Long fromTimeInclusive, Long toTimeExclusive, Integer count, List<Long> includeTxnIds, List<Long> excludeTxnIds, Long excludeServerId, Boolean ascending)
selectTxns in class AbstractNodeDAOImplprotected List<Long> selectTxnsUnused(Long minTxnId, Long maxCommitTime, Integer count)
selectTxnsUnused in class AbstractNodeDAOImplpublic int deleteTxnsUnused(long fromCommitTime,
long toCommitTime)
NodeDAOfromCommitTime - delete unused transactions from commit timetoCommitTime - delete unused transactions to commit timeprotected Long selectMinTxnCommitTime()
selectMinTxnCommitTime in class AbstractNodeDAOImplprotected Long selectMaxTxnCommitTime()
selectMaxTxnCommitTime in class AbstractNodeDAOImplprotected Long selectMinTxnCommitTimeForDeletedNodes()
selectMinTxnCommitTimeForDeletedNodes in class AbstractNodeDAOImplprotected Long selectMinTxnId()
selectMinTxnId in class AbstractNodeDAOImplprotected Long selectMinUnusedTxnCommitTime()
selectMinUnusedTxnCommitTime in class AbstractNodeDAOImplprotected Long selectMaxTxnId()
selectMaxTxnId in class AbstractNodeDAOImplpublic int countChildAssocsByParent(Long parentNodeId, boolean isPrimary)
NodeDAOparentNodeId - the parent node idisPrimary - count just primary associations?public List<Transaction> getOneTxnsByCommitTimeDescending(Long fromTimeInclusive, Long toTimeExclusive, boolean remoteOnly)
Copyright © 2005–2018 Alfresco Software. All rights reserved.