1 17 package org.apache.ws.jaxme.sqls; 18 19 import java.util.Iterator ; 20 import java.util.Map ; 21 22 import org.apache.ws.jaxme.sqls.impl.CombinedConstraintImpl; 23 24 25 28 public interface CombinedConstraint extends Constraint { 29 32 public interface Type { 33 36 public final static Type AND = new CombinedConstraintImpl.TypeImpl("AND"); 37 40 public final static Type OR = new CombinedConstraintImpl.TypeImpl("OR"); 41 } 42 43 47 public CombinedConstraint.Type getType(); 48 49 51 public CombinedConstraint createAndConstraint(); 52 53 55 public CombinedConstraint createOrConstraint(); 56 57 59 public BooleanConstraint createEQ(); 60 61 63 public BooleanConstraint createNE(); 64 65 67 public BooleanConstraint createLT(); 68 69 71 public BooleanConstraint createGT(); 72 73 75 public BooleanConstraint createLE(); 76 77 79 public BooleanConstraint createGE(); 80 81 83 public BooleanConstraint createLIKE(); 84 85 87 public BooleanConstraint createISNULL(); 88 89 91 public BooleanConstraint createIN(); 92 93 96 public void createEXISTS(SelectStatement pStatement); 97 98 101 public BooleanConstraint createBETWEEN(); 102 103 115 public void addJoin(ForeignKey pKey, TableReference pReferencingTable, 116 TableReference pReferencedTable); 117 118 125 public void addJoin(TableReference pReferencingTable, 126 ColumnSet pReferencingColumnSet, 127 TableReference pReferencedTable, 128 ColumnSet pReferencedColumnSet); 129 130 138 public void addConstraint(Map pMap, Constraint pConstraint); 139 140 144 public void addColumnSetQuery(ColumnSet pSet, TableReference pTableReference); 145 146 149 public int getNumParts(); 150 151 154 public Iterator getParts(); 155 156 159 public boolean isNOT(); 160 161 164 public void setNOT(boolean pNOT); 165 } 166 | Popular Tags |