View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.common_test_tester.support;
17  
18  import org.springframework.transaction.annotation.Transactional;
19  
20  @Transactional
21  public class MyBusinessClassImpl implements MyBusinessClass{
22  	private MyDao myDao;
23  	private OtherDao otherDao;
24  	
25  	public int doBusinessThing(){
26  		myDao.createValue(new Value("lalala"));
27  		otherDao.foo();
28  		if(myDao.findValueFromValue("Value Number One")!=null){
29  			return 1;
30  		}
31  		return 0;
32  	}
33  	
34  	/**
35  	 * @return the myDao
36  	 */
37  	public MyDao getMyDao() {
38  		return myDao;
39  	}
40  	/**
41  	 * @param myDao the myDao to set
42  	 */
43  	public void setMyDao(MyDao myDao) {
44  		this.myDao = myDao;
45  	}
46  	/**
47  	 * @return the otherDao
48  	 */
49  	public OtherDao getOtherDao() {
50  		return otherDao;
51  	}
52  	/**
53  	 * @param otherDao the otherDao to set
54  	 */
55  	public void setOtherDao(OtherDao otherDao) {
56  		this.otherDao = otherDao;
57  	}
58  }