1 24 package org.objectweb.jalisto.se.query.constraint; 25 26 import org.objectweb.jalisto.se.query.exception.QueryEngineException; 27 import org.objectweb.jalisto.se.api.query.Constraint; 28 29 public class BinaryBooleanOperatorConstraint extends ConstraintImpl { 30 31 public BinaryBooleanOperatorConstraint(Constraint c1, Constraint c2, short operator) { 32 this.left = c1; 33 this.right = c2; 34 this.operator = operator; 35 } 36 37 public Constraint contains() { 38 throw new QueryEngineException(); 39 } 40 41 public Constraint equal() { 42 throw new QueryEngineException(); 43 } 44 45 public Object getObject() { 46 throw new QueryEngineException(); 47 } 48 49 public Constraint greater() { 50 throw new QueryEngineException(); 51 } 52 53 public Constraint identity() { 54 throw new QueryEngineException(); 55 } 56 57 public Constraint like() { 58 throw new QueryEngineException(); 59 } 60 61 public Constraint not() { 62 return this; 63 } 64 65 public Constraint smaller() { 66 throw new QueryEngineException(); 67 } 68 69 public Constraint getLeft() { 70 return left; 71 } 72 73 public Constraint getRight() { 74 return right; 75 } 76 77 public boolean isAndOperator() { 78 return operator == AND_OP; 79 } 80 81 82 private Constraint left; 83 private Constraint right; 84 private short operator; 85 86 public final static short AND_OP = 0; 87 public final static short OR_OP = 1; 88 89 } 90 | Popular Tags |