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

org.apache.maven.archiva.database
Interface SimpleConstraint

Package class diagram package SimpleConstraint
All Superinterfaces:
Constraint
All Known Implementing Classes:
AbstractSimpleConstraint, MostRecentArchivaAuditLogsConstraint, MostRecentRepositoryScanStatistics, UniqueArtifactIdConstraint, UniqueFieldConstraint, UniqueGroupIdConstraint, UniqueVersionConstraint

public interface SimpleConstraint
extends Constraint

SimpleConstraint


Field Summary
 
Fields inherited from interface org.apache.maven.archiva.database.Constraint
ASCENDING, DESCENDING
 
Method Summary
 java.lang.String getCountSql()
           
 java.lang.Object[] getParameters()
          Get the parameters used for this query.
 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.
 boolean isResultsPersistable()
          When working with result classes that are not persistable, it is advisable to tell the underlying DAO to not do the persistable related efforts.
 
Methods inherited from interface org.apache.maven.archiva.database.Constraint
getFetchLimits
 

Method Detail

getParameters

java.lang.Object[] getParameters()
Get the parameters used for this query. (required if using parameterized SQL) NOTE: This is DAO implementation specific.

Returns:
the parameters. (can be null)

getSelectSql

java.lang.String getSelectSql()
Get the SELECT query value for the constraint.

Returns:
the SELECT value for this constraint. (can be null)

getResultClass

java.lang.Class<?> getResultClass()
For simple Constraints the results class must be specified.

Returns:
the result class.

isResultsPersistable

boolean isResultsPersistable()
When working with result classes that are not persistable, it is advisable to tell the underlying DAO to not do the persistable related efforts.

Returns:
true if result classes are persistable.

getCountSql

java.lang.String getCountSql()