Example #1
0
 @Override
 public void createIndexConditions(Session session, TableFilter filter) {
   TableFilter tf = getTableFilter();
   if (filter == tf && column.getType() == Value.BOOLEAN) {
     IndexCondition cond =
         IndexCondition.get(Comparison.EQUAL, this, ValueExpression.get(ValueBoolean.get(true)));
     filter.addIndexCondition(cond);
   }
 }
Example #2
0
 @Override
 public Expression getNotIfPossible(Session session) {
   return new Comparison(
       session, Comparison.EQUAL, this, ValueExpression.get(ValueBoolean.get(false)));
 }