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 TypeMethodDescriptionvoid
activate()
protected void
Clears cache itemsvoid
compute
(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) ComputesCommonAttribute
index elements by context objectvoid
Collection<org.eclipse.xtext.resource.IEObjectDescription>
GetsCommonAttribute
index elementsMethods inherited from class com._1c.g5.v8.derived.computer.AbstractDerivedDataPartComputer
getSupportedPartId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IDerivedDataPartComputer
Computes part of the given object derived data.- Specified by:
compute
in interfaceIDerivedDataPartComputer
- Parameters:
bmObject
- Context of the derived data computing. Cannot benull
context
- The context of the DD computation. May not benull
progressMonitor
- Controls the computation of the derived data. Cannot benull
-
getCommonAttributeCacheItems
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getCommonAttributeCacheItems(IBmObject target) Description copied from interface:ICommonAttributeCacheProvider
GetsCommonAttribute
index elements- Specified by:
getCommonAttributeCacheItems
in interfaceICommonAttributeCacheProvider
- Parameters:
target
- contextEObject
for getting index elements, can't benull - Returns:
CommonAttribute
index elements, nevernull
-
activate
public void activate()- Specified by:
activate
in interfaceIManagedService
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceIManagedService
-
clearCacheItems
protected void clearCacheItems()Clears cache items -
computeCacheItems
protected Collection<org.eclipse.xtext.resource.IEObjectDescription> computeCacheItems(IBmObject target) ComputesCommonAttribute
index elements by context object- Parameters:
target
-- Returns:
-