@Entity
public class RollbackItem
extends com.whitestein.lsps.common.AbstractEntity
Modifier and Type | Field and Description |
---|---|
static String |
FIND_ALL
Query name
|
static int |
MAX_DATA_LENGTH
Maximum length of the data field.
|
static int |
MAX_EXCEPTION_LENGTH
Maximum length of the exception stack-trace field.
|
Modifier | Constructor and Description |
---|---|
protected |
RollbackItem()
Creates new instance.
|
|
RollbackItem(long modelInstanceId,
String principalName,
byte[] inputData,
String stackTrace,
List<ErrorModelInstanceState> modelInstanceStates,
Date createDate)
Creates new agent invocation instance.
|
|
RollbackItem(String service,
String method,
String principalName,
byte[] inputData,
String stackTrace,
List<ErrorModelInstanceState> modelInstanceStates,
Date createDate)
Creates new service invocation instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addModelInstanceState(ErrorModelInstanceState state)
Adds errorModelInstanceState to this rollbackItem.
|
Date |
getCreateDate()
The date this rollback item instance was created.
|
byte[] |
getInputData()
The input data.
|
String |
getMethod()
Returns the service method.
|
Long |
getModelInstanceId()
Returns the model instance id.
|
List<ErrorModelInstanceState> |
getModelInstanceStates()
Returns model instance states.
|
String |
getPrincipalName()
Returns principal name.
|
Date |
getResendDate()
Last date the message was re-sent.
|
String |
getService()
Returns the service name.
|
String |
getStackTrace()
Exception stack-trace.
|
RollbackInfo.Type |
getType()
Returns the invocation type.
|
void |
setResendDate(Date resendDate)
Last date the message was re-sent.
|
public static final String FIND_ALL
public static final int MAX_DATA_LENGTH
public static final int MAX_EXCEPTION_LENGTH
protected RollbackItem()
public RollbackItem(long modelInstanceId, String principalName, byte[] inputData, String stackTrace, List<ErrorModelInstanceState> modelInstanceStates, Date createDate)
modelInstanceId
- principalName
- inputData
- stackTrace
- modelInstanceStates
- createDate
- NullPointerException
- if any of the arguments is nullpublic RollbackItem(String service, String method, String principalName, byte[] inputData, String stackTrace, List<ErrorModelInstanceState> modelInstanceStates, Date createDate)
service
- method
- principalName
- inputData
- stackTrace
- modelInstanceStates
- createDate
- NullPointerException
- if any of the arguments is nullpublic Long getModelInstanceId()
public String getService()
public String getMethod()
public String getPrincipalName()
public Date getCreateDate()
public String getStackTrace()
public byte[] getInputData()
public Date getResendDate()
public void setResendDate(Date resendDate)
resendDate
- the resendDate to setpublic RollbackInfo.Type getType()
public List<ErrorModelInstanceState> getModelInstanceStates()
public void addModelInstanceState(ErrorModelInstanceState state)
state
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.