select server from org.alfresco.repo.domain.hibernate.ServerImpl as server where server.ipAddress = :ipAddress select max(txn.id) from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status join status.transaction as txn where status.key.protocol = :protocol and status.key.identifier = :identifier select max(txn.id) from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status join status.transaction as txn select count(txn.id) from org.alfresco.repo.domain.hibernate.TransactionImpl as txn :lastTxnId order by txn.id ]]> :lastTxnId and server.ipAddress != :serverIpAddress order by txn.id ]]> select count(status.key.guid) from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status join status.transaction as txn where txn.id = :txnId and status.node is not null select count(status.key.guid) from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status join status.transaction as txn where txn.id = :txnId and status.node is null select status from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status where status.transaction.id = :txnId and status.key.protocol = :protocol and status.key.identifier = :identifier select status from org.alfresco.repo.domain.hibernate.NodeStatusImpl as status where status.transaction.id = :txnId