svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / expressionevaluator / DALExpressionBuilder.java @ 46517
History | View | Annotate | Download (1.86 KB)
1 |
package org.gvsig.fmap.dal.expressionevaluator; |
---|---|
2 |
|
3 |
import org.gvsig.expressionevaluator.ExpressionBuilder; |
4 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Function; |
5 |
import org.gvsig.expressionevaluator.ExpressionBuilder.Value; |
6 |
import org.gvsig.expressionevaluator.Formatter; |
7 |
import org.gvsig.expressionevaluator.GeometryExpressionBuilder; |
8 |
import org.gvsig.fmap.dal.SQLBuilder.SelectBuilder; |
9 |
|
10 |
/**
|
11 |
*
|
12 |
* @author jjdelcerro
|
13 |
*/
|
14 |
public interface DALExpressionBuilder { |
15 |
|
16 |
// public interface SelectBuilder {
|
17 |
//
|
18 |
// public SelectBuilder column(String name);
|
19 |
//
|
20 |
// public SelectBuilder column_all();
|
21 |
//
|
22 |
// public SelectBuilder from(String tableName); // from === table
|
23 |
//
|
24 |
// public SelectBuilder where(Value where);
|
25 |
//
|
26 |
// public SelectBuilder order(String columnName, boolean asc);
|
27 |
//
|
28 |
// public SelectBuilder limit(long limit);
|
29 |
//
|
30 |
// public Value toValue();
|
31 |
//
|
32 |
// @Override
|
33 |
// public String toString();
|
34 |
//
|
35 |
// public String toString(Formatter<Value> formatter);
|
36 |
//
|
37 |
// }
|
38 |
|
39 |
public interface SelectCountBuilder { |
40 |
|
41 |
public SelectCountBuilder table(String tableName); |
42 |
|
43 |
public SelectCountBuilder where(Value where);
|
44 |
|
45 |
public Value toValue();
|
46 |
|
47 |
@Override
|
48 |
public String toString(); |
49 |
} |
50 |
|
51 |
public GeometryExpressionBuilder expression();
|
52 |
|
53 |
public Formatter<Value> formatter(); |
54 |
|
55 |
public Formatter<Value> formatter(Formatter<Value> formatter); |
56 |
|
57 |
public SelectBuilder select();
|
58 |
|
59 |
public SelectCountBuilder select_count();
|
60 |
|
61 |
public Function exists(Value list, String id); |
62 |
|
63 |
public Function exists(Value list);
|
64 |
|
65 |
public Function foreing_value(String attrlocal, String attrforeing); |
66 |
|
67 |
public Function current_row();
|
68 |
|
69 |
public Function current_table();
|
70 |
|
71 |
public Function isselected_current_row();
|
72 |
|
73 |
// public Function geometry();
|
74 |
//Use this function dissable database optimizations
|
75 |
|
76 |
} |