Interface IAdopterContext.ITransactionalAdopterContext
-
- All Superinterfaces:
IAdopterContext
- Enclosing interface:
- IAdopterContext
public static interface IAdopterContext.ITransactionalAdopterContext extends IAdopterContext
Adoption context extension that is in adoption process with some associated BM transaction to attach adopted objects to.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.md.extension.adopt.participants.IAdopterContext
IAdopterContext.ITransactionalAdopterContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IBmModel
getModel()
Returns asseciated BM model to attach adopted objects to.IBmTransaction
getTransaction()
Returns asseciated BM transaction to attach adopted objects to.<T extends org.eclipse.emf.ecore.EObject>
voidupdateAdopted(T nativeObject, T adoptedObject)
Invokes default update of the specified adopted object by its native object.-
Methods inherited from interface com._1c.g5.v8.dt.md.extension.adopt.participants.IAdopterContext
adopt
-
-
-
-
Method Detail
-
getTransaction
IBmTransaction getTransaction()
Returns asseciated BM transaction to attach adopted objects to.- Returns:
- the asseciated BM transaction to attach adopted objects to, never
null
-
getModel
IBmModel getModel()
Returns asseciated BM model to attach adopted objects to.- Returns:
- the asseciated BM model to attach adopted objects to, never
null
-
updateAdopted
<T extends org.eclipse.emf.ecore.EObject> void updateAdopted(T nativeObject, T adoptedObject)
Invokes default update of the specified adopted object by its native object. It should never be invoked on the element received as a parameter of theIModelObjectAdopterParticipant.adopt(EObject, Version, IAdopterContext)
orIAdoptedObjectUpdater.updateAdopted(EObject, EObject, IAdopterContext)
methods.- Parameters:
nativeObject
- the native model object to get update information from, cannot benull
adoptedObject
- the adopted model object to update, cannot benull
- Throws:
IllegalArgumentException
- if the providedsource
object cannot be adopted
-
-