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

org.apache.maven.archiva.database
Interface DeclarativeConstraint

Package class diagram package DeclarativeConstraint
All Superinterfaces:
Constraint
All Known Implementing Classes:
AbstractDeclarativeConstraint, ArchivaAuditLogsConstraint, ArchivaRepositoryByUrlConstraint, ArtifactsByChecksumConstraint, ArtifactsByRepositoryConstraint, ArtifactsProcessedConstraint, ArtifactsRelatedConstraint, ArtifactVersionsConstraint, OlderArtifactsByAgeConstraint, OlderSnapshotArtifactsByAgeConstraint, ProjectsByArtifactUsageConstraint, RangeConstraint, RecentArtifactsByAgeConstraint, RepositoryContentStatisticsByRepositoryConstraint, RepositoryProblemByArtifactConstraint, RepositoryProblemByGroupIdConstraint, RepositoryProblemByRepositoryIdConstraint, RepositoryProblemByTypeConstraint, RepositoryProblemConstraint

public interface DeclarativeConstraint
extends Constraint

DeclarativeConstraint


Field Summary
 
Fields inherited from interface org.apache.maven.archiva.database.Constraint
ASCENDING, DESCENDING
 
Method Summary
 java.lang.String[] getDeclaredImports()
          Get the declared imports used for this query.
 java.lang.String[] getDeclaredParameters()
          Get the declared parameters used for this query.
 java.lang.String getFilter()
          The JDOQL filter to apply to the query.
 java.lang.Object[] getParameters()
          Get the parameters used for this query.
 int[] getRange()
          Get the declared range used for this query.
 java.lang.String getSortColumn()
          Get the sort column name.
 java.lang.String getSortDirection()
          Get the sort direction name.
 java.lang.String[] getVariables()
          Get the variables used within the query.
 java.lang.String getWhereCondition()
          Get the SELECT WHERE (condition) value for the constraint.
 
Methods inherited from interface org.apache.maven.archiva.database.Constraint
getFetchLimits
 

Method Detail

getDeclaredImports

java.lang.String[] getDeclaredImports()
Get the declared imports used for this query. (optional)

NOTE: This is DAO implementation specific.

Returns:
the imports. (can be null)

getDeclaredParameters

java.lang.String[] getDeclaredParameters()
Get the declared parameters used for this query. (optional)

NOTE: This is DAO implementation specific.

Returns:
the parameters. (can be null)

getFilter

java.lang.String getFilter()
The JDOQL filter to apply to the query. (optional)

NOTE: This is DAO implementation specific.

Returns:
the filter to apply. (can be null)

getParameters

java.lang.Object[] getParameters()
Get the parameters used for this query. (required if using getDeclaredParameters() )

NOTE: This is DAO implementation specific.

Returns:
the parameters. (can be null)

getSortDirection

java.lang.String getSortDirection()
Get the sort direction name.

Returns:
the sort direction name. ("ASC" or "DESC") (only valid if getSortColumn() is specified.)

getSortColumn

java.lang.String getSortColumn()
Get the sort column name.

Returns:
the sort column name. (can be null)

getVariables

java.lang.String[] getVariables()
Get the variables used within the query.

NOTE: This is DAO implementation specific.

Returns:
the variables used within the query.

getWhereCondition

java.lang.String getWhereCondition()
Get the SELECT WHERE (condition) value for the constraint.

Returns:
the equivalent of the SELECT WHERE (condition) value for this constraint. (can be null)

getRange

int[] getRange()
Get the declared range used for this query. (optional)

NOTE: This is DAO implementation specific.

Returns:
the range. (can be null)