1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  package org.seasar.tuigwaa.model;
23  
24  import java.util.Map;
25  
26  import org.seasar.tuigwaa.database.function.CriteriaExeFunction;
27  import org.seasar.tuigwaa.database.function.DaoMethod;
28  import org.seasar.tuigwaa.database.function.criteria.UnaryCriteriaFunction;
29  import org.seasar.tuigwaa.model.DAOServiceImpl.FunctionSet;
30  import org.seasar.tuigwaa.model.common.EntityDAO;
31  import org.seasar.tuigwaa.model.core.TgwEntity;
32  
33  
34  /***
35   * @author nishioka
36   */
37  public interface DAOService {
38  
39  	public FunctionSet getFunctionSet(TgwEntity entity);
40  
41  	public EntityDAO getDAO(TgwEntity entity);
42  
43  	public TgwEntity createProjectionEntity(TgwEntity entity,
44  			String aggregationName);
45  
46  	public CriteriaExeFunction injectDataFilter(TgwEntity entity,
47  			String aggregationName, UnaryCriteriaFunction function);
48  
49  	public void registerDaoMethod(TgwEntity entity, DaoMethod daoMethod);
50  
51  	public DaoMethod deregisterDaoMethod(TgwEntity entity, String filter);
52  
53  	public Map getDataFilterFunctionMap(TgwEntity entity);
54  
55  	public Map getAggregationFunctionMap(TgwEntity entity);
56  
57  	public Map getSearchFunctionMap(TgwEntity entity);
58  
59  	public Map getValueFunctionMap(TgwEntity entity);
60  
61  	public Map getCustomFormFunctionMap(TgwEntity entity);
62  
63  	public void resetAllFunctions();
64  	
65  
66  	
67  	
68  	
69  	public void saveFunction(TgwEntity entity);
70  
71  	public void saveAllFunctions();
72  
73  	public void loadFunctions(TgwEntity entity);
74  
75  }