public class TargetEntityStates
extends java.lang.Object
Constructor and Description |
---|
TargetEntityStates(CdmBase entity) |
TargetEntityStates(CdmBase entity,
java.lang.Object[] currentState,
java.lang.Object[] previousState,
java.lang.String[] propertyNames,
org.hibernate.type.Type[] types) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
currentPropertyState(java.lang.String propertyName) |
CdmBase |
getEntity() |
boolean |
hasPreviousState() |
java.lang.Object |
previousPropertyState(java.lang.String propertyName) |
<T> T |
previousPropertyState(java.lang.String propertyName,
java.lang.Class<T> propertyType) |
boolean |
propertyChanged(java.lang.String propertyName)
Compares the current state of the entity property (state being persisted) with the previous state
(state to be overwritten in the storage) and returns
true in case there is a previous
state and the new state is different. |
public TargetEntityStates(CdmBase entity, java.lang.Object[] currentState, java.lang.Object[] previousState, java.lang.String[] propertyNames, org.hibernate.type.Type[] types)
entity
- currentState
- previousState
- propertyNames
- types
- public TargetEntityStates(CdmBase entity)
public CdmBase getEntity()
public boolean hasPreviousState()
public boolean propertyChanged(java.lang.String propertyName)
true
in case there is a previous
state and the new state is different.propertyName
- public <T> T previousPropertyState(java.lang.String propertyName, java.lang.Class<T> propertyType)
public java.lang.Object previousPropertyState(java.lang.String propertyName)
public java.lang.Object currentPropertyState(java.lang.String propertyName)
Copyright © 2007-2020 EDIT. All Rights Reserved.