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 @ 44769
History | View | Annotate | Download (1.61 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 |
|
8 |
/**
|
9 |
*
|
10 |
* @author jjdelcerro
|
11 |
*/
|
12 |
public interface DALExpressionBuilder { |
13 |
|
14 |
public interface SelectBuilder { |
15 |
|
16 |
public SelectBuilder column(String name); |
17 |
|
18 |
public SelectBuilder column_all();
|
19 |
|
20 |
public SelectBuilder from(String tableName); // from === table |
21 |
|
22 |
public SelectBuilder where(Value where);
|
23 |
|
24 |
public SelectBuilder order(String columnName, boolean asc); |
25 |
|
26 |
public SelectBuilder limit(long limit); |
27 |
|
28 |
public Value toValue();
|
29 |
|
30 |
@Override
|
31 |
public String toString(); |
32 |
|
33 |
public String toString(Formatter<Value> formatter); |
34 |
|
35 |
} |
36 |
|
37 |
public interface SelectCountBuilder { |
38 |
|
39 |
public SelectCountBuilder table(String tableName); |
40 |
|
41 |
public SelectCountBuilder where(Value where);
|
42 |
|
43 |
public Value toValue();
|
44 |
|
45 |
@Override
|
46 |
public String toString(); |
47 |
} |
48 |
|
49 |
public ExpressionBuilder expression();
|
50 |
|
51 |
public Formatter<Value> formatter(); |
52 |
|
53 |
public Formatter<Value> formatter(Formatter<Value> formatter); |
54 |
|
55 |
public SelectBuilder select();
|
56 |
|
57 |
public SelectCountBuilder select_count();
|
58 |
|
59 |
public Function exists(Value list, String id); |
60 |
|
61 |
public Function exists(Value list);
|
62 |
|
63 |
public Function foreing_value(String attrlocal, String attrforeing); |
64 |
|
65 |
public Function current_row();
|
66 |
|
67 |
public Function current_table();
|
68 |
|
69 |
public Function isselected_current_row();
|
70 |
|
71 |
} |