org.kuali.kfs.gl.businessobject.lookup
Class BusinessObjectFieldConverter

java.lang.Object
  extended by org.kuali.kfs.gl.businessobject.lookup.BusinessObjectFieldConverter

public class BusinessObjectFieldConverter
extends Object

This class converts field values from G/L Business Objects to G?L transactions


Constructor Summary
BusinessObjectFieldConverter()
           
 
Method Summary
static Map convertFromTransactionFieldValues(Map fieldValues)
          This method converts the field values from GL transaction to normal GL business objects
static String convertFromTransactionPropertyName(String propertyName)
          This method converts the property name of a normal business object from GL transaction
static List convertToTransactionFields(List fields)
          This method converts the field values from normal GL business objects to GL transaction
static Map convertToTransactionFieldValues(Map fieldValues)
          This method converts the field values from normal GL business objects to GL transaction
static String convertToTransactionPropertyName(String propertyName)
          This method converts the property name of a normal business object to GL transaction
static void escapeSingleQuote(Map fieldValues)
          Escapes any single quotes in map name/property values
static void escapeSpecialCharacter(Map fieldValues, String specialCharacter, String replacement)
          Escapes any special characters in map name/property values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessObjectFieldConverter

public BusinessObjectFieldConverter()
Method Detail

convertToTransactionFields

public static List convertToTransactionFields(List fields)
This method converts the field values from normal GL business objects to GL transaction

Parameters:
fields - list of fields in GL business object
Returns:
the list of fields for GL transaction

convertToTransactionFieldValues

public static Map convertToTransactionFieldValues(Map fieldValues)
This method converts the field values from normal GL business objects to GL transaction

Parameters:
fieldValues - the map of field values for normal GL business objects
Returns:
the map of field values for GL transaction

convertToTransactionPropertyName

public static String convertToTransactionPropertyName(String propertyName)
This method converts the property name of a normal business object to GL transaction

Parameters:
propertyName - the property name of a normal business object
Returns:
the property name of GL transaction

convertFromTransactionPropertyName

public static String convertFromTransactionPropertyName(String propertyName)
This method converts the property name of a normal business object from GL transaction

Parameters:
propertyName - the property name of GL transaction
Returns:
the property name of a normal business object

convertFromTransactionFieldValues

public static Map convertFromTransactionFieldValues(Map fieldValues)
This method converts the field values from GL transaction to normal GL business objects

Parameters:
fieldValues - the map of field values for GL transaction
Returns:
the map of field values for normal GL business objects

escapeSpecialCharacter

public static void escapeSpecialCharacter(Map fieldValues,
                                          String specialCharacter,
                                          String replacement)
Escapes any special characters in map name/property values

Parameters:
fieldValues - map of field keys and their values
specialCharacter - special characters to replace
replacement - value to replace special characters with

escapeSingleQuote

public static void escapeSingleQuote(Map fieldValues)
Escapes any single quotes in map name/property values

Parameters:
fieldValues -


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