Class SysIdOutboundInterfaceWriteRequest
java.lang.Object
com.onenetwork.platform.integ.msg.OutboundInterfaceWriteRequest
com.onenetwork.platform.integ.msg.SysIdOutboundInterfaceWriteRequest
public class SysIdOutboundInterfaceWriteRequest extends OutboundInterfaceWriteRequest
Request to generate outbound data based on surrogate id of models.
-
Constructor Summary
Constructors Constructor Description SysIdOutboundInterfaceWriteRequest(java.lang.String outboundInterfaceName, java.lang.String outboundInterfaceVersion, QueueRef outboundQueueRef, java.util.List<java.lang.Long> sysIds, SqlParams sqlParams)
Constructs a Request to generate an outbound request. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Long,Model>
getSysIdModelMap()
This method is used to return Map with key as SysId and value as Model.java.util.List<java.lang.Long>
getSysIds()
Returns the surrogate ids to be applied to the queryvoid
setSysIdModelMap(java.util.Map<java.lang.Long,Model> sysIdModelMap)
This method is used to accept Map with key as SysId and value as Model.Methods inherited from class com.onenetwork.platform.integ.msg.OutboundInterfaceWriteRequest
getActionName, getAdditionalOutboundQueueRefs, getClientFileName, getConfigJSON, getInboundInterfaceName, getInboundInterfaceVersion, getMessageMetadata, getNetChangeId, getNetChangeThreshold, getOutboundInterfaceName, getOutboundInterfaceVersion, getOutboundQueueRef, getPreferredTimeZone, getSender, getSqlParams, isByteOrderMark, isEnqueueInNewTransaction, isLocalize, setActionName, setAdditionalOutboundQueueRefs, setByteOrderMark, setClientFileName, setConfigJSON, setEnqueueInNewTransaction, setInboundInterfaceName, setInboundInterfaceVersion, setLocalize, setMessageMetadata, setNetChangeId, setPreferredTimeZone, setSender, setSqlParams
-
Constructor Details
-
SysIdOutboundInterfaceWriteRequest
public SysIdOutboundInterfaceWriteRequest(java.lang.String outboundInterfaceName, java.lang.String outboundInterfaceVersion, QueueRef outboundQueueRef, java.util.List<java.lang.Long> sysIds, SqlParams sqlParams)Constructs a Request to generate an outbound request.- Parameters:
outboundInterfaceName
- interface that is used to generate the CSVoutboundInterfaceVersion
- outbound interface version (can use null to indicate most recent version)outboundQueueRef
- queue into which the outbound message should be placedsqlParams
- additional parameters to bind in the sql (only required if you have customized the where clause or query with additional bind params)sysIds
- list of sysIds for which this Csv is to be generated. If null that means its a netChange request.
-
-
Method Details
-
getSysIds
public java.util.List<java.lang.Long> getSysIds()Returns the surrogate ids to be applied to the query -
setSysIdModelMap
This method is used to accept Map with key as SysId and value as Model. It can be used when Models are required by Outbound Generator instead/along with SysIds list. The scenario's where it can be used are - 1) Insufficient permission of user to derive model using sysId's 2) When models are derived from sysId's then data in Transient field is lost.- Parameters:
sysIdModelMap
- - Map with key as SysId of Model and value as Model.
-
getSysIdModelMap
This method is used to return Map with key as SysId and value as Model. It is used when Models are required by Outbound Generator instead/along with SysIds list. The scenario's where it can be used are - 1) Insufficient permission of user to derive model using sysId's 2) When models are derived from sysId's then data in Transient field is lost.- Returns:
- sysIdModelMap - Map with key as SysId of Model and value as Model.
-