1 package com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression; 2 3 import java.util.*; 4 5 import com.daffodilwoods.daffodildb.server.sql99.common.*; 6 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition.*; 7 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.table.*; 8 import com.daffodilwoods.daffodildb.server.sql99.expression.*; 9 import com.daffodilwoods.daffodildb.server.sql99.utils.*; 10 import com.daffodilwoods.database.resource.*; 11 import com.daffodilwoods.database.sqlinitiator.*; 12 13 public abstract class AbstractBooleanValueExpression extends AbstractValueExpression implements booleanvalueexpression { 14 15 public _QualifiedBVE getQualifiedBVE(TableDetails tableDetails[]) throws com.daffodilwoods.database.resource.DException { 16 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 17 18 throw new java.lang.UnsupportedOperationException ("Method getQualifiedBVE() not yet implemented." + getClass()); 19 } 20 21 public ByteComparison getByteComparison(Object object) throws DException { 22 return new ByteComparison(false, new int[] {Datatypes.BOOLEAN}); 23 } 24 25 public int canUseForSeek() throws com.daffodilwoods.database.resource.DException { 26 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 27 28 throw new java.lang.UnsupportedOperationException ("Method canUseForSeek() not yet implemented." + getClass()); 29 } 30 31 public _IndexPredicateInterface getCost(_Order order, String [] queryColumns, Object session, TableDetails tableDetails, ColumnDetails[] aggregateColumns) throws DException { 32 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 33 34 throw new java.lang.UnsupportedOperationException ("Method getCost() not yet implemented." + getClass()); 35 36 } 37 38 39 public void setColumnPredicates(_AllColumnPredicates parm1) throws com.daffodilwoods.database.resource.DException { 40 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 41 42 throw new java.lang.UnsupportedOperationException ("Method setColumnPredicates() not yet implemented." + getClass()); 43 } 44 45 public int getConditionType() throws com.daffodilwoods.database.resource.DException { 46 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 47 48 throw new java.lang.UnsupportedOperationException ("Method getConditionType() not yet implemented." + getClass()); 49 } 50 51 public _BVEPlan getExecutionPlan() throws com.daffodilwoods.database.resource.DException { 52 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 53 54 throw new java.lang.UnsupportedOperationException ("Method getExecutionPlan() not yet implemented." + getClass()); 55 } 56 57 public boolean isNullPredicate() throws DException { 58 new Exception (" CLASS NAME ::: " + this.getClass()).printStackTrace(); 59 60 throw new java.lang.UnsupportedOperationException ("Method isNullPredicate() not yet implemented." + getClass()); 61 } 62 63 public long getEstimatedRows(long noOfRows) throws DException { 64 65 throw new java.lang.UnsupportedOperationException ("Method getEstimatedRows() not yet implemented." + getClass()); 66 } 67 68 public double getCost(long rowCount, boolean index) throws DException { 69 70 throw new java.lang.UnsupportedOperationException ("Method getCost() not yet implemented." + getClass()); 71 } 72 73 public Object clone() throws CloneNotSupportedException { 74 throw new CloneNotSupportedException (); 75 } 76 77 protected boolean checkForMultipleTables() throws DException { 78 getColumnDetails(); 79 Set set = new HashSet(); 80 for (int i = 0; i < columnDetails.length; i++) { 81 if (columnDetails[i].getType() == REFERENCE && columnDetails[i].getTriggerFlag() == false ) { 82 set.add(columnDetails[i].getTableDetails()); 83 } 84 } 85 return set.size() > 1; 86 } 87 public int getCardinality() throws DException { 88 89 return 1; 90 } 91 92 93 } 94 | Popular Tags |