KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > plan > condition > _SingleColumnPredicate


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition;
2
3 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
4 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.predicate;
5 import com.daffodilwoods.database.resource.DException;
6 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.booleanvalueexpression;
7
8 /**
9  * It represents all the predicate for a column of a table. It is required in
10  * separating out the condition for index present on the table.
11  * <p>Title: </p>
12  * <p>Description: </p>
13  * <p>Copyright: Copyright (c) 2003</p>
14  * <p>Company: </p>
15  * @author unascribed
16  * @version 1.0
17  */

18
19 public interface _SingleColumnPredicate {
20
21    /**
22     * Sets the predicate for single column.
23     * @param predicate
24     * @throws DException
25     */

26
27    public void setPredicate(predicate predicate) throws DException ;
28
29    /**
30     * Sets the name of the column
31     * @param columnName
32     * @throws DException
33     */

34
35    public void setColumnName(String JavaDoc columnName) throws DException ;
36
37    /**
38     * Returns the column name.
39     * @return
40     * @throws DException
41     */

42
43    public String JavaDoc getColumnName() throws DException ;
44
45    /**
46     * Returns the predicate.
47     * @return
48     * @throws DException
49     */

50
51    public predicate getPredicate() throws DException ;
52
53    /**
54     * it is required in merging of predicates. This merging is performed on the
55     * basis of predicate type.
56     * @return type of predicate. it may be equalPredicate, greater predicate,
57     * less predicate etc.
58     * @throws DException
59     */

60
61    public int getPredicateType() throws DException ;
62
63    /**
64     * Checks whether 'like predicate' is present.
65     * @return
66     * @throws DException
67     */

68
69    public boolean isLikePredicate() throws DException ;
70 }
71
Popular Tags