This project has retired. For details please refer to its Attic page.
UniqueVersionConstraint

org.apache.maven.archiva.database.constraints
Class UniqueVersionConstraint

Package class diagram package UniqueVersionConstraint
java.lang.Object
  extended by org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint
      extended by org.apache.maven.archiva.database.constraints.UniqueVersionConstraint
All Implemented Interfaces:
Constraint, SimpleConstraint

public class UniqueVersionConstraint
extends AbstractSimpleConstraint
implements Constraint

Obtain the list of version's for specific GroupId and ArtifactId.


Field Summary
 
Fields inherited from class org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint
params
 
Fields inherited from interface org.apache.maven.archiva.database.Constraint
ASCENDING, DESCENDING
 
Constructor Summary
UniqueVersionConstraint(java.util.List<java.lang.String> selectedRepositoryIds, java.lang.String groupId, java.lang.String artifactId)
          Obtain the list of version's for specific GroupId and ArtifactId.
UniqueVersionConstraint(java.lang.String groupId, java.lang.String artifactId)
          Obtain the list of version's for specific GroupId and ArtifactId.
 
Method Summary
 java.lang.Class getResultClass()
          For simple Constraints the results class must be specified.
 java.lang.String getSelectSql()
          Get the SELECT query value for the constraint.
 
Methods inherited from class org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint
getCountSql, getFetchLimits, getParameters, isResultsPersistable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.archiva.database.Constraint
getFetchLimits
 

Constructor Detail

UniqueVersionConstraint

public UniqueVersionConstraint(java.util.List<java.lang.String> selectedRepositoryIds,
                               java.lang.String groupId,
                               java.lang.String artifactId)
Obtain the list of version's for specific GroupId and ArtifactId.

Parameters:
selectedRepositoryIds - the selected repository ids.
groupId - the selected groupId.
artifactId - the selected artifactId.

UniqueVersionConstraint

public UniqueVersionConstraint(java.lang.String groupId,
                               java.lang.String artifactId)
Obtain the list of version's for specific GroupId and ArtifactId.

Parameters:
groupId - the selected groupId.
artifactId - the selected artifactId.
Method Detail

getResultClass

public java.lang.Class getResultClass()
Description copied from interface: SimpleConstraint
For simple Constraints the results class must be specified.

Specified by:
getResultClass in interface SimpleConstraint
Returns:
the result class.

getSelectSql

public java.lang.String getSelectSql()
Description copied from interface: SimpleConstraint
Get the SELECT query value for the constraint.

Specified by:
getSelectSql in interface SimpleConstraint
Returns:
the SELECT value for this constraint. (can be null)