Identity Map Options

Use the following table to enter data in following fields on the Caching tab:

Field | Description
--- | ---

Type Foot 1

Use the Type list to choose the identity map as follows:

- Weak with Soft Subcache (`SoftCacheWeakIdentityMap`)–cache first n elements in soft space, anything after that in weak space (see "Soft and Hard Cache Weak Identity Maps")

- Weak with Hard Subcache (`HardCacheWeakIdentityMap`)–cache first n elements in hard space, anything after that in weak space (see "Soft and Hard Cache Weak Identity Maps")

- Weak (`WeakIdentityMap`)–cache everything in weak space (see "Weak Identity Map" )

- Full (`FullIdentityMap`)–cache everything permanently (see "Full Identity Map")

- None (`NoIdentityMap`)–cache nothing (see "No Identity Map")

For more information, see "Cache Type and Object Identity".

Changing the project's default identity map does not affect descriptors that already exist in the project.

Size Footref 1

Specify the size of the cache as follows:

- When using Weak with Soft Subcache or Weak with Hard Subcache, the size is the size of the subcache.

- When using Full or Weak, the size indicates the starting size of the identity map.

Default | When you enter a cache size, the Default check box is cleared. To reset the size to the default for the selected cache type, check the Default check box.

Footnote 1 If a descriptor is a child in an inheritance hierarchy, TopLink makes this field read only and displays the options from the parent root descriptor. For more information, see "Inheritance".

See Also

  Configuring Cache Type and Size at the Descriptor Level
  Configuring Cache Type and Size at the Project Level
  Understanding the Cache