public int initForMessage(Rec record)
    {
        int iErrorCode = Constant.NORMAL_RETURN;
        if (m_messageDataDescChildren != null)
        {
            for (String strKey : m_messageDataDescChildren.keySet())
            {
                MessageDataDesc messageDataDesc = m_messageDataDescChildren.get(strKey);
                iErrorCode = messageDataDesc.initForMessage(record);
                if (iErrorCode != Constant.NORMAL_RETURN)
                    break;
            }
        }
        return iErrorCode;
    }
public int initForMessage ( Rec record ) { int iErrorCode = Constant . NORMAL_RETURN ; if ( m_messageDataDescChildren != null ) { for ( String strKey : m_messageDataDescChildren . keySet ( ) ) { MessageDataDesc messageDataDesc = m_messageDataDescChildren . get ( strKey ) ; iErrorCode = messageDataDesc . initForMessage ( record ) ; if ( iErrorCode != Constant . NORMAL_RETURN ) break ; } } return iErrorCode ; }
Initialize the fields in this record to prepare for this message.
Also, do any other preparation needed before sending this message.
@param record The record to initialize
@return An error code if there were any problems.