Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping
Class BackendMessage
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.BackendMessage
Represents a message raised in the SAP back end which was transmitted via RFC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAvailable fields in a message from back end -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringMessage classprotected StringMessage numberprotected StringSeverity (I, E, W)protected static final Log4JWrapperThe logging instanceprotected StringMessage textprotected TechKeyMessage reference keyprotected final String[]Message parameters -
Constructor Summary
ConstructorsConstructorDescriptionBackendMessage(com.sap.conn.jco.JCoRecord struct) Constructs a message from a JCO structureBackendMessage(String msgType, String msgId, String msgNo) BackendMessage(String msgType, String msgId, String msgNo, String msgV1, String msgV2, String msgV3, String msgV4) Constructs a message based on its attributes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequalsInfo(Object object) String[]getVars()inthashCode()booleanisEmpty()protected booleanisEqual(BackendMessage message) protected booleanisInfoEqual(BackendMessage message)
-
Field Details
-
LOC
The logging instance -
beSeverity
Severity (I, E, W) -
beClass
Message class -
beNumber
Message number -
vars
Message parameters -
messageText
Message text -
refTechKey
Message reference key
-
-
Constructor Details
-
BackendMessage
public BackendMessage() -
BackendMessage
public BackendMessage(com.sap.conn.jco.JCoRecord struct) Constructs a message from a JCO structure- Parameters:
struct- Structure the message is based on
-
BackendMessage
public BackendMessage(String msgType, String msgId, String msgNo, String msgV1, String msgV2, String msgV3, String msgV4) Constructs a message based on its attributes- Parameters:
msgType- Type (I, W, E)msgId- ID (application area)msgNo- NumbermsgV1- Parameter1msgV2- Parameter2msgV3- Parameter3msgV4- Parameter4
-
BackendMessage
-
-
Method Details
-
getBeSeverity
- Returns:
- Severity (I, W, E)
-
getBeClass
- Returns:
- Application area
-
getBeNumber
- Returns:
- Message number
-
getRefTechKey
- Returns:
- Object reference
-
getVars
- Returns:
- Parameters
-
getMessageText
- Returns:
- Message text
-
isEmpty
public boolean isEmpty()- Returns:
- Empty message?
-
hashCode
public int hashCode() -
equals
-
isEqual
- Parameters:
message-- Returns:
-
equalsInfo
-
isInfoEqual
-