@ProviderType
public interface ConstraintResolverContext<T extends com.liferay.portal.kernel.model.change.tracking.CTModel<T>>
Modifier and Type | Method and Description |
---|---|
<R,E extends java.lang.Throwable> |
getInTarget(com.liferay.petra.function.UnsafeSupplier<R,E> unsafeSupplier)
Returns the result of the unsafe supplier from within the target change
tracking collection.
|
T |
getSourceCTModel()
Returns the source change tracking model that has a unique constraint
conflict with the target change tracking model.
|
T |
getTargetCTModel()
Returns the target change tracking model that has a unique constraint
conflict with the source change tracking model.
|
boolean |
isSourceCTModel(com.liferay.portal.kernel.model.change.tracking.CTModel<?> ctModel)
Returns whether the change tracking model is from the source.
|
boolean |
isTargetCTModel(com.liferay.portal.kernel.model.change.tracking.CTModel<?> ctModel)
Returns whether the change tracking model is from the target.
|
<R,E extends java.lang.Throwable> R getInTarget(com.liferay.petra.function.UnsafeSupplier<R,E> unsafeSupplier) throws E extends java.lang.Throwable
unsafeSupplier
- the unsafe supplier to callE extends java.lang.Throwable
T getSourceCTModel()
T getTargetCTModel()
boolean isSourceCTModel(com.liferay.portal.kernel.model.change.tracking.CTModel<?> ctModel)
ctModel
- the change tracking model to checkboolean isTargetCTModel(com.liferay.portal.kernel.model.change.tracking.CTModel<?> ctModel)
ctModel
- the change tracking model to check