Class AbstractColumnValuePredicate
- java.lang.Object
-
- org.silverpeas.components.mydb.model.predicates.AbstractColumnValuePredicate
-
- All Implemented Interfaces:
ColumnValuePredicate
- Direct Known Subclasses:
Equality
,Identity
,Inclusion
,Inequality
,Inferiority
,Like
,StrictInferiority
,StrictSuperiority
,Superiority
public abstract class AbstractColumnValuePredicate extends Object implements ColumnValuePredicate
Abstract implementation of theColumnValuePredicate
interface.- Author:
- mmoquillon
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMPTY_VALUE
static String
NULL_VALUE
-
Constructor Summary
Constructors Constructor Description AbstractColumnValuePredicate(DbColumn column, String refValue)
Constructs a new predicate on the specified database table's column and with the given reference value.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.silverpeas.core.persistence.jdbc.sql.JdbcSqlQuery
apply(org.silverpeas.core.persistence.jdbc.sql.JdbcSqlQuery query)
DbColumn
getColumn()
Gets the name of the column on which the predicate should be played.Comparable
getReferenceValue()
Gets the value with which all the column's values will be compared when playing the predicate.
-
-
-
Field Detail
-
NULL_VALUE
public static final String NULL_VALUE
- See Also:
- Constant Field Values
-
EMPTY_VALUE
public static final String EMPTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumn
public DbColumn getColumn()
Description copied from interface:ColumnValuePredicate
Gets the name of the column on which the predicate should be played.- Specified by:
getColumn
in interfaceColumnValuePredicate
- Returns:
- the name of a database table's column.
-
getReferenceValue
public Comparable getReferenceValue()
Description copied from interface:ColumnValuePredicate
Gets the value with which all the column's values will be compared when playing the predicate.- Specified by:
getReferenceValue
in interfaceColumnValuePredicate
- Returns:
- a
Comparable
value.
-
apply
public abstract org.silverpeas.core.persistence.jdbc.sql.JdbcSqlQuery apply(org.silverpeas.core.persistence.jdbc.sql.JdbcSqlQuery query)
-
-