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