Package com._1c.g5.v8.derived.context
Interface ITypeSpecificObjectContextFactory
-
- All Known Implementing Classes:
BasicTypeSpecificObjectContextFactory
,PartBasedContextFactory
public interface ITypeSpecificObjectContextFactory
Produces DD object context(s) for a specific set of BM object types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IObjectDerivedDataContext
createContext(String segmentId, long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, boolean removal, Object computationCause)
Creates a new instance of the DD object context.IObjectDerivedDataContext
createContext(String segmentId, Object objectId, org.eclipse.emf.ecore.EClass objectEClass, boolean removal, Object computationCause)
Creates a new instance of the DD object context.Map<String,Collection<org.eclipse.emf.ecore.EClass>>
getSupportedTypes()
Gets the set of object types this factory could produce contexts for.
-
-
-
Method Detail
-
createContext
IObjectDerivedDataContext createContext(String segmentId, long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, boolean removal, Object computationCause)
Creates a new instance of the DD object context.- Parameters:
segmentId
- The DD segment identifier.bmObjectId
- The identifier of the object to register the removal for.objectEClass
- TheEClass
of the object to register the removal for. Cannot benull
removal
- Indicates that the created context is an object removal context.syncContext
- Designates that the created context is for the sync. DD.computationCause
- Session id the DD context is being collected for. Used only in case if syncContext == true- Returns:
- A new context instance.
-
createContext
IObjectDerivedDataContext createContext(String segmentId, Object objectId, org.eclipse.emf.ecore.EClass objectEClass, boolean removal, Object computationCause)
Creates a new instance of the DD object context.- Parameters:
segmentId
- The DD segment identifier. May not benull
objectId
- The object to register the removal for. May not benull
objectEClass
- TheEClass
of the object to register the removal for. Cannot benull
removal
- Indicates that the created context is an object removal contextcomputationCause
- The identifier of the service the DD is computed for. May benull
- Returns:
- A new context instance, never
null
-
getSupportedTypes
Map<String,Collection<org.eclipse.emf.ecore.EClass>> getSupportedTypes()
Gets the set of object types this factory could produce contexts for.- Returns:
- The set of supported types mapped to DD segment identifiers.
-
-