Class CDOCollectionLoadingConfig
java.lang.Object
org.eclipse.emf.cdo.common.revision.CDOCollectionLoadingConfig
An immutable collection-loading configuration snapshot.
A null configuration means that modern partial collection loading is disabled. A non-null configuration,
including an empty configuration, enables the mode. The configuration itself only describes runtime defaults and
explicit model-element overrides; it does not evaluate metamodel annotations or perform collection loading.
- Since:
- 4.29
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe two independent collection-loading dimensions at one configuration level. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty enabled configuration.CDOCollectionLoadingConfig(CDOCollectionLoadingConfig.ChunkConfig defaultChunkConfig, Map<?, CDOCollectionLoadingConfig.ChunkConfig> overrides) Creates an immutable configuration snapshot. -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(CDOModelElementRef<?> ref) get(EStructuralFeature feature) Returns the optional model-independent default.Returns the immutable explicit-override snapshot.inthashCode()static CDOCollectionLoadingConfigread(CDODataInput in) Reads a complete configuration without resolving symbolic model references.toString()voidwrite(CDODataOutput out) Writes this complete configuration snapshot.
-
Constructor Details
-
CDOCollectionLoadingConfig
public CDOCollectionLoadingConfig()Creates an empty enabled configuration. -
CDOCollectionLoadingConfig
public CDOCollectionLoadingConfig(CDOCollectionLoadingConfig.ChunkConfig defaultChunkConfig, Map<?, CDOCollectionLoadingConfig.ChunkConfig> overrides) Creates an immutable configuration snapshot.- Parameters:
defaultChunkConfig- the optional model-independent defaultoverrides- the explicit package, class, and feature overrides, keyed by materialized EMF elements or symbolic model-element references- Throws:
IllegalArgumentException- if an override key is not a supported model element or symbolic reference
-
-
Method Details
-
getDefaultChunkConfig
Returns the optional model-independent default.- Returns:
- the default, or
null
-
getOverrides
Returns the immutable explicit-override snapshot.- Returns:
- the overrides keyed by symbolic model-element references
-
get
-
get
-
get
-
get
-
write
Writes this complete configuration snapshot.- Parameters:
out- the protocol output- Throws:
IOException- if the snapshot cannot be written
-
hashCode
public int hashCode() -
equals
-
toString
-
read
Reads a complete configuration without resolving symbolic model references.- Parameters:
in- the protocol input- Returns:
- the decoded configuration, or
nullwhen modern PCL is disabled - Throws:
IOException- if a model identifier cannot be decoded
-