Package io.jmix.eclipselink.impl
Class EclipselinkAttributeChangesProvider
java.lang.Object
io.jmix.data.impl.BaseAttributeChangesProvider
io.jmix.eclipselink.impl.EclipselinkAttributeChangesProvider
- All Implemented Interfaces:
AttributeChangesProvider
@Component("eclipselink_EclipselinkAttributeChangesProvider")
public class EclipselinkAttributeChangesProvider
extends BaseAttributeChangesProvider
-
Field Summary
Fields inherited from class io.jmix.data.impl.BaseAttributeChangesProvider
entityStates, metadata, metadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildChanges
(AttributeChanges.Builder builder, org.eclipse.persistence.sessions.changesets.ObjectChangeSet objectChangeSet, MetaClass metaClass, BiFunction<Object, MetaProperty, Object> transformer) protected void
buildChangesByImplementation
(AttributeChanges.Builder builder, Object entity, BiFunction<Object, MetaProperty, Object> transformer) protected void
checkEntityByImplementation
(Object entity) protected Object
getOldValueByImplementation
(Object entity, String attribute) protected boolean
void
setEntityManager
(javax.persistence.EntityManager entityManager) Methods inherited from class io.jmix.data.impl.BaseAttributeChangesProvider
buildExtraChanges, checkEntityState, convertValueIfNeeded, getAttributeChanges, getChangedAttributeNames, getOldValue, isChanged, isChanged, newCollectionForProperty, setEntityStates, setMetadata, setMetadataTools
-
Field Details
-
entityManager
protected javax.persistence.EntityManager entityManager
-
-
Constructor Details
-
EclipselinkAttributeChangesProvider
public EclipselinkAttributeChangesProvider()
-
-
Method Details
-
setEntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager) -
buildChangesByImplementation
protected void buildChangesByImplementation(AttributeChanges.Builder builder, Object entity, BiFunction<Object, MetaProperty, Object> transformer) - Specified by:
buildChangesByImplementation
in classBaseAttributeChangesProvider
-
getOldValueByImplementation
- Specified by:
getOldValueByImplementation
in classBaseAttributeChangesProvider
-
getChangedAttributeNamesByImplementation
- Specified by:
getChangedAttributeNamesByImplementation
in classBaseAttributeChangesProvider
-
isSoftDeletionEnabled
protected boolean isSoftDeletionEnabled()- Specified by:
isSoftDeletionEnabled
in classBaseAttributeChangesProvider
-
checkEntityByImplementation
-
buildChanges
protected void buildChanges(AttributeChanges.Builder builder, @Nullable org.eclipse.persistence.sessions.changesets.ObjectChangeSet objectChangeSet, MetaClass metaClass, BiFunction<Object, MetaProperty, Object> transformer)
-