This project has retired. For details please refer to its
Attic page .
AbstractSimpleConstraint
org.apache.maven.archiva.database.constraints
Class AbstractSimpleConstraint
java.lang.Object
org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint
All Implemented Interfaces: Constraint , SimpleConstraint
Direct Known Subclasses: MostRecentArchivaAuditLogsConstraint , MostRecentRepositoryScanStatistics , UniqueArtifactIdConstraint , UniqueFieldConstraint , UniqueGroupIdConstraint , UniqueVersionConstraint
public abstract class AbstractSimpleConstraint extends java.lang.Objectimplements SimpleConstraint
Simple Constraint abstract for working with nearly-raw SQL strings.
Field Summary
protected java.lang.Object[]
params
Method Summary
java.lang.String
getCountSql ()
java.lang.String
getFetchLimits ()
Get the fetch limits on the object.
java.lang.Object[]
getParameters ()
Get the parameters used for this query.
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
params
protected java.lang.Object[] params
AbstractSimpleConstraint
public AbstractSimpleConstraint ()
getParameters
public java.lang.Object[] getParameters ()
Description copied from interface: SimpleConstraint
Get the parameters used for this query. (required if using parameterized SQL)
NOTE: This is DAO implementation specific.
Specified by: getParameters
in interface SimpleConstraint
Returns: the parameters. (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)
isResultsPersistable
public boolean isResultsPersistable ()
Description copied from interface: SimpleConstraint
When working with result classes that are not persistable,
it is advisable to tell the underlying DAO to not do the persistable related efforts.
Specified by: isResultsPersistable
in interface SimpleConstraint
Returns: true if result classes are persistable.
getCountSql
public java.lang.String getCountSql ()
Specified by: getCountSql
in interface SimpleConstraint