This project has retired. For details please refer to its
Attic page.
ArtifactsByChecksumConstraint
org.apache.maven.archiva.database.constraints
Class ArtifactsByChecksumConstraint
java.lang.Object
org.apache.maven.archiva.database.constraints.AbstractDeclarativeConstraint
org.apache.maven.archiva.database.constraints.ArtifactsByChecksumConstraint
- All Implemented Interfaces:
- Constraint, DeclarativeConstraint
public class ArtifactsByChecksumConstraint
- extends AbstractDeclarativeConstraint
- implements Constraint
Constraint for retrieving artifacts whose sha1 or md5 checksum matches the
specified value.
Field Summary |
static java.lang.String |
MD5
|
static java.lang.String |
SHA1
|
Method Summary |
java.lang.String |
getSortColumn()
Get the sort column name. |
java.lang.String |
getWhereCondition()
Get the SELECT WHERE (condition) value for the constraint. |
Methods inherited from class org.apache.maven.archiva.database.constraints.AbstractDeclarativeConstraint |
equals, getDeclaredImports, getDeclaredParameters, getFetchLimits, getFilter, getParameters, getRange, getSortDirection, getVariables, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SHA1
public static final java.lang.String SHA1
- See Also:
- Constant Field Values
MD5
public static final java.lang.String MD5
- See Also:
- Constant Field Values
ArtifactsByChecksumConstraint
public ArtifactsByChecksumConstraint(java.lang.String desiredChecksum)
- Create constraint for checksum (without providing type)
- Parameters:
desiredChecksum
- the checksum (either SHA1 or MD5)
ArtifactsByChecksumConstraint
public ArtifactsByChecksumConstraint(java.lang.String desiredChecksum,
java.lang.String type)
- Create constraint for specific checksum.
- Parameters:
desiredChecksum
- the checksum (either SHA1 or MD5)type
- the type of checksum (either SHA1
or MD5
)
getSortColumn
public java.lang.String getSortColumn()
- Description copied from interface:
DeclarativeConstraint
- Get the sort column name.
- Specified by:
getSortColumn
in interface DeclarativeConstraint
- Returns:
- the sort column name. (can be null)
getWhereCondition
public java.lang.String getWhereCondition()
- Description copied from interface:
DeclarativeConstraint
- Get the SELECT WHERE (condition) value for the constraint.
- Specified by:
getWhereCondition
in interface DeclarativeConstraint
- Returns:
- the equivalent of the SELECT WHERE (condition) value for this constraint. (can be null)