This project has retired. For details please refer to its
Attic page.
UniqueFieldConstraint
org.apache.maven.archiva.database.constraints
Class UniqueFieldConstraint
java.lang.Object
org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint
org.apache.maven.archiva.database.constraints.UniqueFieldConstraint
- All Implemented Interfaces:
- Constraint, SimpleConstraint
public class UniqueFieldConstraint
- extends AbstractSimpleConstraint
- implements Constraint
UniqueFieldConstraint
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueFieldConstraint
public UniqueFieldConstraint(java.lang.String className,
java.lang.String fieldName)
UniqueFieldConstraint
public UniqueFieldConstraint(java.lang.String className,
java.lang.String fieldName,
java.lang.String fieldNamePrefix)
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)