Package com._1c.g5.v8.dt.md
Class CommonAttributeCacheProvider
java.lang.Object
com._1c.g5.v8.derived.computer.AbstractDerivedDataPartComputer
com._1c.g5.v8.dt.md.CommonAttributeCacheProvider
- All Implemented Interfaces:
IDerivedDataPartComputer,ICommonAttributeCacheProvider,IManagedService
@LifecycleService(name="COMMON_ATTRIBUTE_CACHE_PROVIDER")
public class CommonAttributeCacheProvider
extends AbstractDerivedDataPartComputer
implements ICommonAttributeCacheProvider
Special cache for
CommonAttribute index elements. Contains index elements sorted in lexicographical order by name-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()protected voidClears cache itemsvoidcompute(IBmObject bmObject, IPartBasedObjectContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Computes part of the given object derived data.protected Collection<org.eclipse.xtext.resource.IEObjectDescription>computeCacheItems(IBmObject target) ComputesCommonAttributeindex elements by context objectvoidCollection<org.eclipse.xtext.resource.IEObjectDescription>GetsCommonAttributeindex elementsMethods inherited from class com._1c.g5.v8.derived.computer.AbstractDerivedDataPartComputer
getSupportedPartIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.derived.computer.IDerivedDataPartComputer
computeForRemovedObject, getSupportedPartId, isSeparateContainmentContextComputation
-
Constructor Details
-
CommonAttributeCacheProvider
public CommonAttributeCacheProvider()Constructor
-
-
Method Details
-
compute
public void compute(IBmObject bmObject, IPartBasedObjectContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IDerivedDataPartComputerComputes part of the given object derived data.- Specified by:
computein interfaceIDerivedDataPartComputer- Parameters:
bmObject- Context of the derived data computing. Cannot benullcontext- The context of the DD computation. May not benullprogressMonitor- Controls the computation of the derived data. Cannot benull
-
getCommonAttributeCacheItems
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getCommonAttributeCacheItems(IBmObject target) Description copied from interface:ICommonAttributeCacheProviderGetsCommonAttributeindex elements- Specified by:
getCommonAttributeCacheItemsin interfaceICommonAttributeCacheProvider- Parameters:
target- contextEObjectfor getting index elements, can't benull - Returns:
CommonAttributeindex elements, nevernull
-
activate
public void activate()- Specified by:
activatein interfaceIManagedService
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceIManagedService
-
clearCacheItems
protected void clearCacheItems()Clears cache items -
computeCacheItems
protected Collection<org.eclipse.xtext.resource.IEObjectDescription> computeCacheItems(IBmObject target) ComputesCommonAttributeindex elements by context object- Parameters:
target-- Returns:
-