001/* 002 * Copyright 2006 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.gl.businessobject.inquiry; 017 018import java.util.List; 019import java.util.Map; 020import java.util.Properties; 021 022/** 023 * The inquirable class to support the cash balance lookup. Since there are no user defined inquiries to 024 * perform on cash balance fields, this class returns many, many nulls 025 */ 026public class CashBalanceInquirableImpl extends AbstractGeneralLedgerInquirableImpl { 027 028 /** 029 * Since there are no user defined attributes, returns null 030 * @return null - no user defined attributes 031 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#buildUserDefinedAttributeKeyList() 032 */ 033 @Override 034 public List buildUserDefinedAttributeKeyList() { 035 return null; 036 } 037 038 /** 039 * Returns null as the map, as there are no drill downs here 040 * @return null for the map of attributes 041 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getUserDefinedAttributeMap() 042 */ 043 @Override 044 public Map getUserDefinedAttributeMap() { 045 return null; 046 } 047 048 /** 049 * Returns null for any attribute 050 * @param attributeName the name of an attribute for the inquiry 051 * @return null, no matter what 052 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getAttributeName(java.lang.String) 053 */ 054 @Override 055 public String getAttributeName(String attributeName) { 056 return null; 057 } 058 059 /** 060 * Returns null for any name/value pair its handed 061 * @param keyName the name of the key to lookup 062 * @param keyValue the value of the key to lookup 063 * @return null, every time 064 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyValue(java.lang.String, java.lang.Object) 065 */ 066 @Override 067 public Object getKeyValue(String keyName, Object keyValue) { 068 return null; 069 } 070 071 /** 072 * Given a key name, returns null 073 * @param keyName the key name to change on the fly 074 * @return null, every time 075 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyName(java.lang.String) 076 */ 077 @Override 078 public String getKeyName(String keyName) { 079 return null; 080 } 081 082 /** 083 * Returns null as the lookupable impl for this inquiry 084 * @return null, there isn't a lookupable impl 085 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getLookupableImplAttributeName() 086 */ 087 @Override 088 public String getLookupableImplAttributeName() { 089 return null; 090 } 091 092 /** 093 * Returns the base inquiry url to search...in this case, nothing 094 * @return null, as there's no URL to go to 095 * @see org.kuali.ole.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getBaseUrl() 096 */ 097 @Override 098 public String getBaseUrl() { 099 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}