Class RObjectDeltaOperation
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.audit.RObjectDeltaOperation
-
- All Implemented Interfaces:
OperationResult
,OperationResultFull
,EntityState
,Serializable
@Entity public class RObjectDeltaOperation extends Object implements OperationResultFull, EntityState
- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_RECORD_ID
static String
TABLE_NAME
-
Constructor Summary
Constructors Constructor Description RObjectDeltaOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static @NotNull ObjectDeltaOperation
fromRepo(RObjectDeltaOperation operation, PrismContext prismContext, boolean useUtf16)
static @NotNull ObjectDeltaOperation
fromRepo(ResultSet resultSet, PrismContext prismContext, boolean useUtf16)
String
getChecksum()
This method is used for content comparing when querying database (we don't want to compare clob values).byte[]
getDelta()
String
getDeltaOid()
RChangeType
getDeltaType()
byte[]
getFullResult()
RPolyString
getObjectName()
RAuditEventRecord
getRecord()
Long
getRecordId()
RPolyString
getResourceName()
String
getResourceOid()
ROperationResultStatus
getStatus()
int
hashCode()
Boolean
isTransient()
Tells hibernateInterceptor
that entity is transient, so that hibernate session doesn't need to verify it using select queries.void
setChecksum(String checksum)
void
setDelta(byte[] delta)
void
setDeltaOid(String deltaOid)
void
setDeltaType(RChangeType deltaType)
void
setFullResult(byte[] fullResult)
void
setObjectName(RPolyString objectName)
void
setRecord(RAuditEventRecord record)
void
setRecordId(Long recordId)
void
setResourceName(RPolyString resourceName)
void
setResourceOid(String resourceOid)
void
setStatus(ROperationResultStatus status)
void
setTransient(Boolean trans)
static RObjectDeltaOperation
toRepo(RAuditEventRecord record, ObjectDeltaOperation operation, PrismContext prismContext)
static SingleSqlQuery
toRepo(Long recordId, ObjectDeltaOperation operation, PrismContext prismContext)
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
COLUMN_RECORD_ID
public static final String COLUMN_RECORD_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecord
public RAuditEventRecord getRecord()
-
getRecordId
public Long getRecordId()
-
getChecksum
public String getChecksum()
This method is used for content comparing when querying database (we don't want to compare clob values).- Returns:
- md5 hash of
delta
andfullResult
-
getDelta
public byte[] getDelta()
-
getDeltaType
public RChangeType getDeltaType()
-
getDeltaOid
public String getDeltaOid()
-
getFullResult
public byte[] getFullResult()
- Specified by:
getFullResult
in interfaceOperationResultFull
-
getStatus
public ROperationResultStatus getStatus()
- Specified by:
getStatus
in interfaceOperationResult
-
getObjectName
public RPolyString getObjectName()
-
getResourceOid
public String getResourceOid()
-
getResourceName
public RPolyString getResourceName()
-
isTransient
public Boolean isTransient()
Description copied from interface:EntityState
Tells hibernateInterceptor
that entity is transient, so that hibernate session doesn't need to verify it using select queries.- Specified by:
isTransient
in interfaceEntityState
- Returns:
- true if entity is transient
-
setTransient
public void setTransient(Boolean trans)
- Specified by:
setTransient
in interfaceEntityState
-
setRecord
public void setRecord(RAuditEventRecord record)
-
setRecordId
public void setRecordId(Long recordId)
-
setChecksum
public void setChecksum(String checksum)
-
setDelta
public void setDelta(byte[] delta)
-
setStatus
public void setStatus(ROperationResultStatus status)
- Specified by:
setStatus
in interfaceOperationResult
-
setFullResult
public void setFullResult(byte[] fullResult)
- Specified by:
setFullResult
in interfaceOperationResultFull
-
setDeltaType
public void setDeltaType(RChangeType deltaType)
-
setDeltaOid
public void setDeltaOid(String deltaOid)
-
setObjectName
public void setObjectName(RPolyString objectName)
-
setResourceOid
public void setResourceOid(String resourceOid)
-
setResourceName
public void setResourceName(RPolyString resourceName)
-
toRepo
public static RObjectDeltaOperation toRepo(RAuditEventRecord record, ObjectDeltaOperation operation, PrismContext prismContext) throws DtoTranslationException
- Throws:
DtoTranslationException
-
toRepo
public static SingleSqlQuery toRepo(Long recordId, ObjectDeltaOperation operation, PrismContext prismContext) throws DtoTranslationException
- Throws:
DtoTranslationException
-
fromRepo
@NotNull public static @NotNull ObjectDeltaOperation fromRepo(RObjectDeltaOperation operation, PrismContext prismContext, boolean useUtf16) throws DtoTranslationException
- Throws:
DtoTranslationException
-
fromRepo
@NotNull public static @NotNull ObjectDeltaOperation fromRepo(ResultSet resultSet, PrismContext prismContext, boolean useUtf16) throws DtoTranslationException
- Throws:
DtoTranslationException
-
-