@Override public Pair<Integer, Integer> getTotalResultCount() { return new Pair<Integer, Integer>(null, null); }
@Override public boolean handle( Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { VisitedNode visitedNode = nodesVisitedById.get(childNodePair.getFirst()); if (visitedNode == null) { throw new IllegalStateException("Querying upwards found nodes not visited: " + childNodePair); } if (childAssocPair.getSecond().isPrimary()) { // Double check the primary association if (!visitedNode.primaryParentAssocPair.equals(childAssocPair)) { // The primary parent association for the node has changed throw new ConcurrencyFailureException("Node parent changed while hierarchy was being examined: " + childNodePair); } } else { // Record all secondary parent associations visitedNode.secondaryParentAssocs.add(childAssocPair); } // More results return true; } @Override
public boolean handle( Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { results.add(childAssocPair.getSecond()); // More results return true; }
@Override public boolean handle(Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { bindFixAssocAndCollectLostAndFound(childNodePair, "deletedChildWithParents", childAssocPair.getFirst(), false); return true; }
public Pair<Long, Serializable> execute() throws Throwable { propertyValueDAO.updatePropertyUniqueContext(aaa, bbb, ccc, v2); Pair<Long, Long> pair = propertyValueDAO.getPropertyUniqueContext(aaa, bbb, ccc); Serializable value = propertyValueDAO.getPropertyById(pair.getSecond()); return new Pair<Long, Serializable>(pair.getFirst(), value); } }, false);
public Pair<Long, QName> createValue(QName qname) { String uri = qname.getNamespaceURI(); String localName = qname.getLocalName(); // Create namespace Pair<Long, String> namespaceEntity = getOrCreateNamespace(uri); Long nsId = namespaceEntity.getFirst(); // Create QName QNameEntity entity = createQNameEntity(nsId, localName); return new Pair<Long, QName>(entity.getId(), qname); }
(pageSize == 0) || actualPage.size() <= pageSize); final int expectedTotal = source.length + results.size(); if (boundsError && !new Pair<Integer, Integer>(null, null).equals(actualResults.getTotalResultCount())) new Pair<Integer, Integer>(expectedTotal, expectedTotal), actualResults.getTotalResultCount());
@Override public boolean handle( Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { VisitedNode visitedNode = nodesVisitedById.get(childNodePair.getFirst()); if (visitedNode == null) { throw new IllegalStateException("Querying upwards found nodes not visited: " + childNodePair); } if (childAssocPair.getSecond().isPrimary()) { // Double check the primary association if (!visitedNode.primaryParentAssocPair.equals(childAssocPair)) { // The primary parent association for the node has changed throw new ConcurrencyFailureException("Node parent changed while hierarchy was being examined: " + childNodePair); } } else { // Record all secondary parent associations visitedNode.secondaryParentAssocs.add(childAssocPair); } // More results return true; } @Override
public boolean handle( Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { results.add(childAssocPair.getSecond()); return true; }
@Override public boolean handle(Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { parentIds.add(parentNodePair.getFirst()); return false; }
public PropertyStringQueryEntity(Short persistedType, Long actualTypeId, String value) { this.persistedType = persistedType; this.actualTypeId = actualTypeId; stringValue = value; // Calculate the crc value from the original value Pair<String, Long> crcPair = CrcHelper.getStringCrcPair(value, 16, false, true); stringEndLower = crcPair.getFirst(); stringCrc = crcPair.getSecond(); }
@Override public Pair<AssocCopySourceAction, AssocCopyTargetAction> getAssociationCopyAction(QName classQName, CopyDetails copyDetails, CopyAssociationDetails assocCopyDetails) { return new Pair<AssocCopySourceAction, AssocCopyTargetAction>(AssocCopySourceAction.IGNORE, AssocCopyTargetAction.USE_COPIED_OTHERWISE_ORIGINAL_TARGET); }
if (isActive && !(existingNamespacePair.equals(newNamespacePair))) if (!existingNamespacePair.getSecond().equals(newNamespacePair.getSecond())) validateModelNamespacePrefix(newNamespacePair.getSecond()); if (!existingNamespacePair.getFirst().equals(newNamespacePair.getFirst())) validateModelNamespaceUri(newNamespacePair.getFirst());
public boolean handle( Pair<Long, ChildAssociationRef> childAssocPair, Pair<Long, NodeRef> parentNodePair, Pair<Long, NodeRef> childNodePair) { results.add(childAssocPair.getSecond()); // More results return true; }
/** * Gets, converts and adds the intrinsic properties to the current node's properties */ private Map<QName, Serializable> getPropertiesImpl(Pair<Long, NodeRef> nodePair) throws InvalidNodeRefException { Long nodeId = nodePair.getFirst(); Map<QName, Serializable> nodeProperties = nodeDAO.getNodeProperties(nodeId); // done return nodeProperties; }