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 AlfrescoMySQLClusterNDBDialect !
|
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() |
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() |
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, setNodeIndexer, setNodeProperties, setNodesCache, setParentAssocsCacheLimitFactor, setParentAssocsCacheSize, setPolicyBehaviourFilter, setPrimaryChildrenSharedAclId, setPropertiesCache, setRootNodesCache, setTransactionService, setUsageDAO, touchNodes, updateChildAssocUniqueNameImpl, updateNode, updatePrimaryParentAssocs, updatePrimaryParentAssocsImpl
protected 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 AbstractNodeDAOImpl
qnameDAO
- translates QName IDs into QName instances and vice-versapublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
setDictionaryService
in class AbstractNodeDAOImpl
dictionaryService
- the service help determine cm:auditable characteristicspublic void startBatch()
public void executeBatch()
protected ServerEntity selectServer(String ipAddress)
selectServer
in class AbstractNodeDAOImpl
protected Long insertServer(String ipAddress)
insertServer
in class AbstractNodeDAOImpl
protected Long insertTransaction(Long serverId, String changeTxnId, Long commitTimeMs)
insertTransaction
in class AbstractNodeDAOImpl
protected int updateTransaction(Long txnId, Long commitTimeMs)
updateTransaction
in class AbstractNodeDAOImpl
protected int deleteTransaction(Long txnId)
deleteTransaction
in class AbstractNodeDAOImpl
protected List<StoreEntity> selectAllStores()
selectAllStores
in class AbstractNodeDAOImpl
protected StoreEntity selectStore(org.alfresco.service.cmr.repository.StoreRef storeRef)
selectStore
in class AbstractNodeDAOImpl
protected NodeEntity selectStoreRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
selectStoreRootNode
in class AbstractNodeDAOImpl
protected Long insertStore(StoreEntity store)
insertStore
in class AbstractNodeDAOImpl
protected int updateStoreRoot(StoreEntity store)
updateStoreRoot
in class AbstractNodeDAOImpl
protected int updateStore(StoreEntity store)
updateStore
in class AbstractNodeDAOImpl
protected int updateNodesInStore(Long txnId, Long storeId)
updateNodesInStore
in class AbstractNodeDAOImpl
protected Long insertNode(NodeEntity node)
insertNode
in class AbstractNodeDAOImpl
protected int updateNode(NodeUpdateEntity nodeUpdate)
updateNode
in class AbstractNodeDAOImpl
protected int updateNodes(Long txnId, List<Long> nodeIds)
updateNodes
in class AbstractNodeDAOImpl
public Long getMinNodeId()
public Long getMaxNodeId()
public org.alfresco.util.Pair<Long,Long> getNodeIdsIntervalForType(org.alfresco.service.namespace.QName type, Long startTxnTime, Long endTxnTime)
NodeDAO
type
- 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 AbstractNodeDAOImpl
protected int deleteNodeById(Long nodeId)
deleteNodeById
in class AbstractNodeDAOImpl
protected int deleteNodesByCommitTime(long fromTxnCommitTimeMs, long toTxnCommitTimeMs)
deleteNodesByCommitTime
in class AbstractNodeDAOImpl
protected NodeEntity selectNodeById(Long id)
selectNodeById
in class AbstractNodeDAOImpl
protected NodeEntity selectNodeByNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
selectNodeByNodeRef
in class AbstractNodeDAOImpl
protected List<Node> selectNodesByUuids(Long storeId, SortedSet<String> uuids)
selectNodesByUuids
in class AbstractNodeDAOImpl
protected List<Node> selectNodesByIds(SortedSet<Long> ids)
selectNodesByIds
in class AbstractNodeDAOImpl
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Set<Long> nodeIds)
selectNodeProperties
in class AbstractNodeDAOImpl
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Long nodeId)
selectNodeProperties
in class AbstractNodeDAOImpl
protected Map<NodeVersionKey,Map<NodePropertyKey,NodePropertyValue>> selectNodeProperties(Long nodeId, Set<Long> qnameIds)
selectNodeProperties
in class AbstractNodeDAOImpl
public List<NodePropertyEntity> selectNodePropertiesByTypes(Set<org.alfresco.service.namespace.QName> qnames)
NodeDAO
public List<NodePropertyEntity> selectNodePropertiesByDataType(org.alfresco.service.namespace.QName dataType, long minNodeId, long maxNodeId)
NodeDAO
dataType
- the actual, original type of the property, as given by one of the constants
on DataTypeDefinition
minNodeId
- the minimum node ID (inclusive)maxNodeId
- the maximum node ID (exclusive)protected int deleteNodeProperties(Long nodeId, Set<Long> qnameIds)
deleteNodeProperties
in class AbstractNodeDAOImpl
protected int deleteNodeProperties(Long nodeId, List<NodePropertyKey> propKeys)
deleteNodeProperties
in class AbstractNodeDAOImpl
protected void insertNodeProperties(Long nodeId, Map<NodePropertyKey,NodePropertyValue> persistableProps)
insertNodeProperties
in class AbstractNodeDAOImpl
protected Map<NodeVersionKey,Set<org.alfresco.service.namespace.QName>> selectNodeAspects(Set<Long> nodeIds)
selectNodeAspects
in class AbstractNodeDAOImpl
protected void insertNodeAspect(Long nodeId, Long qnameId)
insertNodeAspect
in class AbstractNodeDAOImpl
protected int deleteNodeAspects(Long nodeId, Set<Long> qnameIds)
deleteNodeAspects
in class AbstractNodeDAOImpl
protected void selectNodesWithAspects(List<Long> qnameIds, Long minNodeId, Long maxNodeId, NodeDAO.NodeRefQueryCallback resultsCallback)
selectNodesWithAspects
in class AbstractNodeDAOImpl
protected Long insertNodeAssoc(Long sourceNodeId, Long targetNodeId, Long assocTypeQNameId, int assocIndex)
insertNodeAssoc
in class AbstractNodeDAOImpl
protected int updateNodeAssoc(Long id, int assocIndex)
updateNodeAssoc
in class AbstractNodeDAOImpl
protected int deleteNodeAssoc(Long sourceNodeId, Long targetNodeId, Long assocTypeQNameId)
deleteNodeAssoc
in class AbstractNodeDAOImpl
protected int deleteNodeAssocs(List<Long> ids)
deleteNodeAssocs
in class AbstractNodeDAOImpl
protected List<NodeAssocEntity> selectNodeAssocs(Long nodeId)
selectNodeAssocs
in class AbstractNodeDAOImpl
protected List<NodeAssocEntity> selectNodeAssocsBySource(Long sourceNodeId, Long typeQNameId)
selectNodeAssocsBySource
in class AbstractNodeDAOImpl
protected List<NodeAssocEntity> selectNodeAssocsBySourceAndPropertyValue(Long sourceNodeId, Long typeQNameId, Long propertyQNameId, NodePropertyValue nodeValue)
selectNodeAssocsBySourceAndPropertyValue
in class AbstractNodeDAOImpl
protected List<NodeAssocEntity> selectNodeAssocsByTarget(Long targetNodeId, Long typeQNameId)
selectNodeAssocsByTarget
in class AbstractNodeDAOImpl
protected NodeAssocEntity selectNodeAssocById(Long assocId)
selectNodeAssocById
in class AbstractNodeDAOImpl
protected int selectNodeAssocMaxIndex(Long sourceNodeId, Long assocTypeQNameId)
selectNodeAssocMaxIndex
in class AbstractNodeDAOImpl
protected Long insertChildAssoc(ChildAssocEntity assoc)
insertChildAssoc
in class AbstractNodeDAOImpl
protected int deleteChildAssocs(List<Long> ids)
deleteChildAssocs
in class AbstractNodeDAOImpl
protected int updateChildAssocIndex(Long parentNodeId, Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int index)
updateChildAssocIndex
in class AbstractNodeDAOImpl
protected int updateChildAssocUniqueName(Long assocId, String name)
updateChildAssocUniqueName
in class AbstractNodeDAOImpl
protected ChildAssocEntity selectChildAssoc(Long assocId)
selectChildAssoc
in class AbstractNodeDAOImpl
protected List<ChildAssocEntity> selectChildNodeIds(Long nodeId, Boolean isPrimary, Long minChildNodeIdInclusive, int maxResults)
selectChildNodeIds
in class AbstractNodeDAOImpl
public List<NodeIdAndAclId> selectPrimaryChildAcls(Long nodeId)
selectPrimaryChildAcls
in class AbstractNodeDAOImpl
protected List<ChildAssocEntity> selectChildAssoc(Long parentNodeId, Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
selectChildAssoc
in class AbstractNodeDAOImpl
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)
AbstractNodeDAOImpl
selectChildAssocs
in class AbstractNodeDAOImpl
public void selectChildAssocs(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, int maxResults, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs
in class AbstractNodeDAOImpl
protected void selectChildAssocs(Long parentNodeId, Set<org.alfresco.service.namespace.QName> assocTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs
in class AbstractNodeDAOImpl
protected ChildAssocEntity selectChildAssoc(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, String childName)
selectChildAssoc
in class AbstractNodeDAOImpl
protected void selectChildAssocs(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, Collection<String> childNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocs
in class AbstractNodeDAOImpl
protected void selectChildAssocsByPropertyValue(Long parentNodeId, org.alfresco.service.namespace.QName propertyQName, NodePropertyValue nodeValue, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsByPropertyValue
in class AbstractNodeDAOImpl
protected void selectChildAssocsByChildTypes(Long parentNodeId, Set<org.alfresco.service.namespace.QName> childNodeTypeQNames, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsByChildTypes
in class AbstractNodeDAOImpl
protected void selectChildAssocsWithoutParentAssocsOfType(Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
selectChildAssocsWithoutParentAssocsOfType
in class AbstractNodeDAOImpl
public 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)
AbstractNodeDAOImpl
selectPrimaryParentAssocs
in class AbstractNodeDAOImpl
protected void selectParentAssocs(Long childNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, Boolean isPrimary, NodeDAO.ChildAssocRefQueryCallback resultsCallback)
AbstractNodeDAOImpl
selectParentAssocs
in class AbstractNodeDAOImpl
protected List<ChildAssocEntity> selectParentAssocs(Long childNodeId)
selectParentAssocs
in class AbstractNodeDAOImpl
protected int updatePrimaryParentAssocs(Long childNodeId, Long parentNodeId, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, String childNodeName)
updatePrimaryParentAssocs
in class AbstractNodeDAOImpl
protected void moveNodeData(Long fromNodeId, Long toNodeId)
AbstractNodeDAOImpl
moveNodeData
in class AbstractNodeDAOImpl
fromNodeId
- the source nodetoNodeId
- the target nodeprotected void deleteSubscriptions(Long nodeId)
deleteSubscriptions
in class AbstractNodeDAOImpl
protected Transaction selectLastTxnBeforeCommitTime(Long maxCommitTime)
selectLastTxnBeforeCommitTime
in class AbstractNodeDAOImpl
protected int selectTransactionCount()
selectTransactionCount
in class AbstractNodeDAOImpl
protected Transaction selectTxnById(Long txnId)
selectTxnById
in class AbstractNodeDAOImpl
protected List<NodeEntity> selectTxnChanges(Long txnId, Long storeId)
selectTxnChanges
in class AbstractNodeDAOImpl
protected List<Transaction> selectTxns(Long fromTimeInclusive, Long toTimeExclusive, Integer count, List<Long> includeTxnIds, List<Long> excludeTxnIds, Long excludeServerId, Boolean ascending)
selectTxns
in class AbstractNodeDAOImpl
protected List<Long> selectTxnsUnused(Long minTxnId, Long maxCommitTime, Integer count)
selectTxnsUnused
in class AbstractNodeDAOImpl
public int deleteTxnsUnused(long fromCommitTime, long toCommitTime)
NodeDAO
fromCommitTime
- delete unused transactions from commit timetoCommitTime
- delete unused transactions to commit timeprotected Long selectMinTxnCommitTime()
selectMinTxnCommitTime
in class AbstractNodeDAOImpl
protected Long selectMaxTxnCommitTime()
selectMaxTxnCommitTime
in class AbstractNodeDAOImpl
protected Long selectMinTxnCommitTimeForDeletedNodes()
selectMinTxnCommitTimeForDeletedNodes
in class AbstractNodeDAOImpl
protected Long selectMinTxnId()
selectMinTxnId
in class AbstractNodeDAOImpl
protected Long selectMinUnusedTxnCommitTime()
selectMinUnusedTxnCommitTime
in class AbstractNodeDAOImpl
protected Long selectMaxTxnId()
selectMaxTxnId
in class AbstractNodeDAOImpl
public int countChildAssocsByParent(Long parentNodeId, boolean isPrimary)
NodeDAO
parentNodeId
- the parent node idisPrimary
- count just primary associations?public List<Transaction> getOneTxnsByCommitTimeDescending(Long fromTimeInclusive, Long toTimeExclusive, boolean remoteOnly)
Copyright © 2005–2017 Alfresco Software. All rights reserved.