View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.test.document;
17  
18  import org.kuali.rice.core.api.util.type.KualiDecimal;
19  import org.kuali.rice.krad.document.SessionDocument;
20  import org.kuali.rice.krad.document.TransactionalDocumentBase;
21  
22  import javax.persistence.Column;
23  import javax.persistence.Entity;
24  import javax.persistence.Table;
25  import java.sql.Timestamp;
26  
27  /**
28   * This is a test transactional document for use with testing data dictionary searchable attributes on the doc search. 
29   * 
30   * @author Kuali Rice Team (rice.collab@kuali.org)
31   */
32  @Entity
33  @Table(name="ACCT_DD_ATTR_DOC")
34  //@org.hibernate.annotations.TypeDef(
35  //			name="rice_decimal",
36  //			typeClass=HibernateKualiDecimalFieldType.class
37  //	)
38  public class AccountWithDDAttributesDocument extends TransactionalDocumentBase implements SessionDocument {
39  	private static final long serialVersionUID = 174220131121010870L;
40  	
41  	@Column(name="ACCT_NUM")
42  	private Integer accountNumber;
43  	@Column(name="ACCT_OWNR")
44  	private String accountOwner;
45  	//@Type(type="rice_decimal")
46  	@Column(name="ACCT_BAL")
47  	private KualiDecimal accountBalance;
48  	@Column(name="ACCT_OPN_DAT")
49  	private Timestamp accountOpenDate;
50  	@Column(name="ACCT_UPDATE_DT_TM")
51  	private Timestamp accountUpdateDateTime;
52  	@Column(name="ACCT_STAT")
53  	private String accountState;
54  	//@Type(type="yes_no")
55  	@Column(name="ACCT_AWAKE")
56  	private boolean accountAwake;
57  	
58  	public Integer getAccountNumber() {
59  		return this.accountNumber;
60  	}
61  
62  	public void setAccountNumber(Integer accountNumber) {
63  		this.accountNumber = accountNumber;
64  	}
65  
66  	public String getAccountOwner() {
67  		return this.accountOwner;
68  	}
69  
70  	public void setAccountOwner(String accountOwner) {
71  		this.accountOwner = accountOwner;
72  	}
73  
74  	public KualiDecimal getAccountBalance() {
75  		return this.accountBalance;
76  	}
77  
78  	public void setAccountBalance(KualiDecimal accountBalance) {
79  		this.accountBalance = accountBalance;
80  	}
81  
82  	public Timestamp getAccountOpenDate() {
83  		return this.accountOpenDate;
84  	}
85  
86  	public void setAccountOpenDate(Timestamp accountOpenDate) {
87  		this.accountOpenDate = accountOpenDate;
88  	}
89  
90  	public String getAccountState() {
91  		return this.accountState;
92  	}
93  
94  	public void setAccountState(String accountState) {
95  		this.accountState = accountState;
96  	}
97  
98  	public String getAccountStateMultiselect() {
99  		return this.accountState;
100 	}
101 	
102 	/**
103 	 * @return the accountUpdateDateTime
104 	 */
105 	public Timestamp getAccountUpdateDateTime() {
106 		return this.accountUpdateDateTime;
107 	}
108 
109 	/**
110 	 * @param accountUpdateDateTime the accountUpdateDateTime to set
111 	 */
112 	public void setAccountUpdateDateTime(Timestamp accountUpdateDateTime) {
113 		this.accountUpdateDateTime = accountUpdateDateTime;
114 	}
115 
116 	/**
117 	 * @return the accountAwake
118 	 */
119 	public boolean isAccountAwake() {
120 		return this.accountAwake;
121 	}
122 
123 	/**
124 	 * @param accountAwake the accountAwake to set
125 	 */
126 	public void setAccountAwake(boolean accountAwake) {
127 		this.accountAwake = accountAwake;
128 	}
129 	
130 }