| java.lang.Object org.jaffa.components.codehelper.tx.CodeHelperTx
CodeHelperTx | public class CodeHelperTx implements ICodeHelper(Code) | | This is the default implementation of the ICodeHelper interface. It will retrieve codes for each domainClassName passed in the input.
It will use reflection to determine the fields to return. Additional criteria can also be passed in the input, to restrict the output.
For complex queries, create custom implementations of the interface, rather than making this generic implementation complex !!!
author: GautamJ |
Method Summary | |
public void | destroy() This should be invoked, when done with the helper. | public static Object | formatDescription(CodeHelperInElementDto inputElement, Object code, Object description) This method is used to format the description field.
It returns the description as is, if the 'appendCodeAndDescription' flag is false.
Otherwise, it appends the code and description, using the markers specified in the inputElement.
If no markers are specified, then the format will be 'code (description)'.
Parameters: inputElement - The input to the ICodeHelper. Parameters: code - The code value. Parameters: description - The description for the code. | public CodeHelperOutDto | getCodes(CodeHelperInDto input) Retrieves the Codes for the specified domainClassName passed in the input.
Parameters: input - The input dto, containing a list of domainClass to retrieve. | public static void | main(String[] args) |
destroy | public void destroy()(Code) | | This should be invoked, when done with the helper. This will ensure that all the acquired resources are released.
|
formatDescription | public static Object formatDescription(CodeHelperInElementDto inputElement, Object code, Object description)(Code) | | This method is used to format the description field.
It returns the description as is, if the 'appendCodeAndDescription' flag is false.
Otherwise, it appends the code and description, using the markers specified in the inputElement.
If no markers are specified, then the format will be 'code (description)'.
Parameters: inputElement - The input to the ICodeHelper. Parameters: code - The code value. Parameters: description - The description for the code. a formatted description. |
main | public static void main(String[] args)(Code) | | Test stub
Parameters: args - arguments |
|
|