mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
148 lines
4.1 KiB
Java
148 lines
4.1 KiB
Java
package org.alfresco.repo.domain.solr;
|
|
|
|
import java.util.List;
|
|
|
|
import org.alfresco.util.EqualsHelper;
|
|
|
|
/**
|
|
* Holds parameters for SOLR DAO calls against <b>alf_transaction</b> and <b>alf_change_set</b>.
|
|
*
|
|
* @since 4.0
|
|
*/
|
|
public class SOLRTrackingParameters
|
|
{
|
|
private Long fromIdInclusive;
|
|
private Long fromCommitTimeInclusive;
|
|
private List<Long> ids;
|
|
private Long toIdExclusive;
|
|
private Long toCommitTimeExclusive;
|
|
private final Long deletedTypeQNameId;
|
|
|
|
/**
|
|
* Construct the parameters
|
|
*
|
|
* @param deletedTypeQNameId the QName ID representing deleted nodes
|
|
*/
|
|
public SOLRTrackingParameters(Long deletedTypeQNameId)
|
|
{
|
|
this.deletedTypeQNameId = deletedTypeQNameId;
|
|
}
|
|
|
|
public Long getFromIdInclusive()
|
|
{
|
|
return fromIdInclusive;
|
|
}
|
|
|
|
public void setFromIdInclusive(Long fromIdInclusive)
|
|
{
|
|
this.fromIdInclusive = fromIdInclusive;
|
|
}
|
|
|
|
public Long getFromCommitTimeInclusive()
|
|
{
|
|
return fromCommitTimeInclusive;
|
|
}
|
|
|
|
public void setFromCommitTimeInclusive(Long fromCommitTimeInclusive)
|
|
{
|
|
this.fromCommitTimeInclusive = fromCommitTimeInclusive;
|
|
}
|
|
|
|
public List<Long> getIds()
|
|
{
|
|
return ids;
|
|
}
|
|
|
|
public void setIds(List<Long> ids)
|
|
{
|
|
this.ids = ids;
|
|
}
|
|
|
|
/**
|
|
* Helper for cross-DB boolean support
|
|
*
|
|
* @return <tt>true</tt> always
|
|
*/
|
|
public boolean getTrue()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Helper for cross-DB boolean support
|
|
*
|
|
* @return <tt>false</tt> always
|
|
*/
|
|
public boolean getFalse()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public Long getDeletedTypeQNameId()
|
|
{
|
|
return deletedTypeQNameId;
|
|
}
|
|
|
|
public Long getToIdExclusive()
|
|
{
|
|
return toIdExclusive;
|
|
}
|
|
|
|
public void setToIdExclusive(Long toIdExclusive)
|
|
{
|
|
this.toIdExclusive = toIdExclusive;
|
|
}
|
|
|
|
public Long getToCommitTimeExclusive()
|
|
{
|
|
return toCommitTimeExclusive;
|
|
}
|
|
|
|
public void setToCommitTimeExclusive(Long toCommitTimeExclusive)
|
|
{
|
|
this.toCommitTimeExclusive = toCommitTimeExclusive;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode()
|
|
{
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((fromCommitTimeInclusive == null) ? 0 : fromCommitTimeInclusive.hashCode());
|
|
result = prime * result + ((fromIdInclusive == null) ? 0 : fromIdInclusive.hashCode());
|
|
result = prime * result + ((ids == null) ? 0 : ids.hashCode());
|
|
result = prime * result + ((toCommitTimeExclusive == null) ? 0 : toCommitTimeExclusive.hashCode());
|
|
result = prime * result + ((toIdExclusive == null) ? 0 : toIdExclusive.hashCode());
|
|
result = prime * result + ((deletedTypeQNameId == null) ? 0 : deletedTypeQNameId.hashCode());
|
|
return result;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj)
|
|
{
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
SOLRTrackingParameters other = (SOLRTrackingParameters) obj;
|
|
return
|
|
EqualsHelper.nullSafeEquals(this.fromCommitTimeInclusive, other.fromCommitTimeInclusive) &&
|
|
EqualsHelper.nullSafeEquals(this.fromIdInclusive, other.fromIdInclusive) &&
|
|
EqualsHelper.nullSafeEquals(this.ids, other.ids) &&
|
|
EqualsHelper.nullSafeEquals(this.toIdExclusive, other.toIdExclusive) &&
|
|
EqualsHelper.nullSafeEquals(this.toCommitTimeExclusive, other.toCommitTimeExclusive) &&
|
|
EqualsHelper.nullSafeEquals(this.deletedTypeQNameId, other.deletedTypeQNameId);
|
|
}
|
|
|
|
@Override
|
|
public String toString()
|
|
{
|
|
return "SOLRTrackingParameters [fromIdInclusive=" + fromIdInclusive
|
|
+ ", fromCommitTimeInclusive=" + fromCommitTimeInclusive + ", ids=" + ids
|
|
+ ", toIdExclusive=" + toIdExclusive + ", toCommitTimeExclusive="
|
|
+ toCommitTimeExclusive + ", typeQNameId=" + deletedTypeQNameId + "]";
|
|
}
|
|
}
|