mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged SWIFT to HEAD
25250: SWIFT branch moved to 4.0.0 schema 5000 25435: Initial checkin for ALF-7069 25450: ALF-7069: - add maxResults to SOLR DAO - refactoring 25480: ALF-7069: further enhancements + unit tests - include/exclude aspects, store protocol + identifier git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@27999 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
package org.alfresco.repo.domain.solr;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Holds parameters for SOLR DAO calls
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public class SOLRTransactionParameters {
|
||||
private Long minTxnId;
|
||||
private Long txnFromCommitTime;
|
||||
private List<Long> transactionIds;
|
||||
private Long fromNodeId;
|
||||
private Long toNodeId;
|
||||
|
||||
public SOLRTransactionParameters()
|
||||
{
|
||||
}
|
||||
|
||||
public void setMinTxnId(Long minTxnId)
|
||||
{
|
||||
this.minTxnId = minTxnId;
|
||||
}
|
||||
|
||||
public Long getMinTxnId()
|
||||
{
|
||||
return minTxnId;
|
||||
}
|
||||
|
||||
public void setTxnFromCommitTime(Long txnFromCommitTime) {
|
||||
this.txnFromCommitTime = txnFromCommitTime;
|
||||
}
|
||||
|
||||
public Long getTxnFromCommitTime() {
|
||||
return txnFromCommitTime;
|
||||
}
|
||||
|
||||
public void setTransactionIds(List<Long> txnIds) {
|
||||
this.transactionIds = txnIds;
|
||||
}
|
||||
|
||||
public List<Long> getTransactionIds() {
|
||||
return transactionIds;
|
||||
}
|
||||
|
||||
public Long getFromNodeId() {
|
||||
return fromNodeId;
|
||||
}
|
||||
|
||||
public void setFromNodeId(Long fromNodeId) {
|
||||
this.fromNodeId = fromNodeId;
|
||||
}
|
||||
|
||||
public Long getToNodeId() {
|
||||
return toNodeId;
|
||||
}
|
||||
|
||||
public void setToNodeId(Long toNodeId) {
|
||||
this.toNodeId = toNodeId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder(512);
|
||||
sb.append("SOLRTransactionParameters")
|
||||
.append(", txnFromCommitTime").append(txnFromCommitTime == null ? null : new Date(txnFromCommitTime))
|
||||
.append(", fromNodeId").append(fromNodeId == null ? null : fromNodeId)
|
||||
.append(", toNodeId").append(toNodeId == null ? null : toNodeId)
|
||||
.append(", txnIds").append(transactionIds == null ? null : transactionIds.size())
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user