View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  /*
17   * Created on 2005/07/30
18   *
19   * TODO To change the template for this generated file go to
20   * Window - Preferences - Java - Code Style - Code Templates
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  	//save , load dao
68  	
69  	public void saveFunction(TgwEntity entity);
70  
71  	public void saveAllFunctions();
72  
73  	public void loadFunctions(TgwEntity entity);
74  
75  }