org.kuali.kfs.vnd.service
Interface CommodityCodeService

All Known Implementing Classes:
CommodityCodeServiceImpl

public interface CommodityCodeService

This interface defines methods that a Commodity Code Service must provide


Method Summary
 CommodityCode getByPrimaryId(String purchasingCommodityCode)
          Retrieves a commodity code object by its primary key - the purchasing commodity code.
 boolean wildCardCommodityCodeExists(String wildCardCommodityCode)
          Checks whether the commodity code in wildcard form exists.
 

Method Detail

getByPrimaryId

CommodityCode getByPrimaryId(String purchasingCommodityCode)
Retrieves a commodity code object by its primary key - the purchasing commodity code.

Parameters:
purchasingCommodityCode -
Returns:
CommodityCode the commodity code object which has the purchasingCommodityCode in the input parameter to match its the primary key.

wildCardCommodityCodeExists

boolean wildCardCommodityCodeExists(String wildCardCommodityCode)
Checks whether the commodity code in wildcard form exists. For example, if the wildCardCommodityCode in the input parameter is 100* and the database has commodity code 10023, then this method will return true. If no matching found then this method returns false.

Parameters:
wildCardCommodityCode - The string containing wild card character to be queried to the database.
Returns:
boolean true if the wildcardCommodityCode exists in the database.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.