1 /*
2 * Copyright 2006 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.ole.gl.businessobject.inquiry;
17
18 import java.util.List;
19 import java.util.Map;
20 import java.util.Properties;
21
22 /**
23 * The inquirable class to support the cash balance lookup. Since there are no user defined inquiries to
24 * perform on cash balance fields, this class returns many, many nulls
25 */
26 public class CashBalanceInquirableImpl extends AbstractGeneralLedgerInquirableImpl {
27
28 /**
29 * Since there are no user defined attributes, returns null
30 * @return null - no user defined attributes
31 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#buildUserDefinedAttributeKeyList()
32 */
33 @Override
34 public List buildUserDefinedAttributeKeyList() {
35 return null;
36 }
37
38 /**
39 * Returns null as the map, as there are no drill downs here
40 * @return null for the map of attributes
41 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getUserDefinedAttributeMap()
42 */
43 @Override
44 public Map getUserDefinedAttributeMap() {
45 return null;
46 }
47
48 /**
49 * Returns null for any attribute
50 * @param attributeName the name of an attribute for the inquiry
51 * @return null, no matter what
52 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getAttributeName(java.lang.String)
53 */
54 @Override
55 public String getAttributeName(String attributeName) {
56 return null;
57 }
58
59 /**
60 * Returns null for any name/value pair its handed
61 * @param keyName the name of the key to lookup
62 * @param keyValue the value of the key to lookup
63 * @return null, every time
64 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyValue(java.lang.String, java.lang.Object)
65 */
66 @Override
67 public Object getKeyValue(String keyName, Object keyValue) {
68 return null;
69 }
70
71 /**
72 * Given a key name, returns null
73 * @param keyName the key name to change on the fly
74 * @return null, every time
75 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyName(java.lang.String)
76 */
77 @Override
78 public String getKeyName(String keyName) {
79 return null;
80 }
81
82 /**
83 * Returns null as the lookupable impl for this inquiry
84 * @return null, there isn't a lookupable impl
85 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getLookupableImplAttributeName()
86 */
87 @Override
88 public String getLookupableImplAttributeName() {
89 return null;
90 }
91
92 /**
93 * Returns the base inquiry url to search...in this case, nothing
94 * @return null, as there's no URL to go to
95 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getBaseUrl()
96 */
97 @Override
98 public String getBaseUrl() {
99 return null;
100 }
101
102 /**
103 * The class name of the business object that should be inquired on for the attribute
104 * @param the attribute name to build an inquiry for
105 * @return null, as there are no inquiries
106 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getInquiryBusinessObjectClass(java.lang.String)
107 */
108 @Override
109 public Class getInquiryBusinessObjectClass(String attributeName) {
110 return null;
111 }
112
113 /**
114 * Adds no parameters at all
115 * @param parameter the parameter map to add new properties
116 * @param attributeName the name of the attribute being inquired on
117 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String)
118 */
119 @Override
120 public void addMoreParameters(Properties parameter, String attributeName) {
121 }
122 }