public class RollbackInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RollbackInfo.Type
Rollback info type.
|
Modifier | Constructor and Description |
---|---|
protected |
RollbackInfo()
Creates new instance.
|
|
RollbackInfo(long id,
RollbackInfo.Type type,
java.lang.Long modelInstanceId,
java.lang.String service,
java.lang.String method,
java.lang.String userLogin,
java.lang.String exception,
java.util.Date createDate,
java.util.Date resendDate,
java.util.List<java.lang.Long> errorModelInstanceIds)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreateDate()
The date this rollback info instance was created.
|
java.util.List<java.lang.Long> |
getErrorModelInstanceIds()
Returns list of errorModelInstanceIds stored in this info.
|
java.lang.String |
getException()
A cause of the failure: the stacktrace of the exception.
|
long |
getId()
Database identifier of this record.
|
java.lang.String |
getMethod()
Returns the method name if a service invocation.
|
java.lang.Long |
getModelInstanceId()
Returns the model instance id if an agent invocation.
|
java.util.Date |
getResendDate()
Last date the message was re-sent.
|
java.lang.String |
getService()
Returns the service name if a service invocation.
|
RollbackInfo.Type |
getType()
Returns the info type.
|
java.lang.String |
getUserLogin()
Returns the user login.
|
int |
hashCode() |
protected RollbackInfo()
public RollbackInfo(long id, RollbackInfo.Type type, java.lang.Long modelInstanceId, java.lang.String service, java.lang.String method, java.lang.String userLogin, java.lang.String exception, java.util.Date createDate, java.util.Date resendDate, java.util.List<java.lang.Long> errorModelInstanceIds)
id
- type
- modelInstanceId
- service
- method
- userLogin
- exception
- createDate
- resendDate
- errorModelInstanceIds
- java.lang.NullPointerException
- if the type
or the exception
or the createDate
is nullpublic java.lang.Long getModelInstanceId()
public java.lang.String getService()
public java.lang.String getMethod()
public java.lang.String getUserLogin()
public java.lang.String getException()
public long getId()
public RollbackInfo.Type getType()
public java.util.Date getCreateDate()
public java.util.Date getResendDate()
null
if message was not yet re-sent.public java.util.List<java.lang.Long> getErrorModelInstanceIds()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.