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

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

Package class diagram package AbstractDeclarativeConstraint
java.lang.Object
  extended by org.apache.maven.archiva.database.constraints.AbstractDeclarativeConstraint
All Implemented Interfaces:
Constraint, DeclarativeConstraint
Direct Known Subclasses:
ArchivaRepositoryByUrlConstraint, ArtifactsByChecksumConstraint, ArtifactsByRepositoryConstraint, ArtifactsProcessedConstraint, ArtifactsRelatedConstraint, ArtifactVersionsConstraint, OlderArtifactsByAgeConstraint, OlderSnapshotArtifactsByAgeConstraint, ProjectsByArtifactUsageConstraint, RangeConstraint, RecentArtifactsByAgeConstraint, RepositoryContentStatisticsByRepositoryConstraint, RepositoryProblemByArtifactConstraint, RepositoryProblemByTypeConstraint

public abstract class AbstractDeclarativeConstraint
extends java.lang.Object
implements DeclarativeConstraint

AbstractDeclarativeConstraint


Field Summary
protected  java.lang.String[] declImports
           
protected  java.lang.String[] declParams
           
protected  java.lang.Object[] params
           
protected  int[] range
           
protected  java.lang.String sortDirection
           
protected  java.lang.String[] variables
           
 
Fields inherited from interface org.apache.maven.archiva.database.Constraint
ASCENDING, DESCENDING
 
Constructor Summary
AbstractDeclarativeConstraint()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 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 getFetchLimits()
          Get the fetch limits on the object.
 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 getSortDirection()
          Get the sort direction name.
 java.lang.String[] getVariables()
          Get the variables used within the query.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.maven.archiva.database.DeclarativeConstraint
getSortColumn, getWhereCondition
 

Field Detail

declImports

protected java.lang.String[] declImports

declParams

protected java.lang.String[] declParams

variables

protected java.lang.String[] variables

params

protected java.lang.Object[] params

range

protected int[] range

sortDirection

protected java.lang.String sortDirection
Constructor Detail

AbstractDeclarativeConstraint

public AbstractDeclarativeConstraint()
Method Detail

getFilter

public java.lang.String getFilter()
Description copied from interface: DeclarativeConstraint
The JDOQL filter to apply to the query. (optional)

NOTE: This is DAO implementation specific.

Specified by:
getFilter in interface DeclarativeConstraint
Returns:
the filter to apply. (can be null)

getFetchLimits

public java.lang.String getFetchLimits()
Description copied from interface: Constraint
Get the fetch limits on the object.

Specified by:
getFetchLimits in interface Constraint
Returns:
the fetch limits on the object. (can be null) (O/RM specific)

getDeclaredImports

public java.lang.String[] getDeclaredImports()
Description copied from interface: DeclarativeConstraint
Get the declared imports used for this query. (optional)

NOTE: This is DAO implementation specific.

Specified by:
getDeclaredImports in interface DeclarativeConstraint
Returns:
the imports. (can be null)

getDeclaredParameters

public java.lang.String[] getDeclaredParameters()
Description copied from interface: DeclarativeConstraint
Get the declared parameters used for this query. (optional)

NOTE: This is DAO implementation specific.

Specified by:
getDeclaredParameters in interface DeclarativeConstraint
Returns:
the parameters. (can be null)

getParameters

public java.lang.Object[] getParameters()
Description copied from interface: DeclarativeConstraint
Get the parameters used for this query. (required if using DeclarativeConstraint.getDeclaredParameters() )

NOTE: This is DAO implementation specific.

Specified by:
getParameters in interface DeclarativeConstraint
Returns:
the parameters. (can be null)

getSortDirection

public java.lang.String getSortDirection()
Description copied from interface: DeclarativeConstraint
Get the sort direction name.

Specified by:
getSortDirection in interface DeclarativeConstraint
Returns:
the sort direction name. ("ASC" or "DESC") (only valid if DeclarativeConstraint.getSortColumn() is specified.)

getVariables

public java.lang.String[] getVariables()
Description copied from interface: DeclarativeConstraint
Get the variables used within the query.

NOTE: This is DAO implementation specific.

Specified by:
getVariables in interface DeclarativeConstraint
Returns:
the variables used within the query.

getRange

public int[] getRange()
Description copied from interface: DeclarativeConstraint
Get the declared range used for this query. (optional)

NOTE: This is DAO implementation specific.

Specified by:
getRange in interface DeclarativeConstraint
Returns:
the range. (can be null)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object