Package org.eclipse.emf.cdo.view

# Schnittstelle CDOUnitManager

Alle Superschnittstellen:
  `org.eclipse.net4j.util.container.IContainer<CDOUnit>`, `org.eclipse.net4j.util.event.INotifier`

public interface CDOUnitManager extends org.eclipse.net4j.util.container.IContainer<CDOUnit>
Locally manages the open `units` of a `view`.

Seit:
  4.5
Autor:
  Eike Stepper
No Implement
  This interface is not intended to be implemented by clients.
No Extend
  This interface is not intended to be extended by clients.

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Schnittstelle
Beschreibung
`static final class`
`CDOUnitManager.UnitExistsException`
An unchecked `CDOException` being thrown from `CDOUnitManager.createUnit()` to indicate that the given root object already is the `root` of an existing `unit`.
`static final class`
`CDOUnitManager.UnitNotFoundException`
An unchecked `CDOException` being thrown from `CDOUnitManager.openUnit()` to indicate that no `unit` exists for the given root object.

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.container.IContainer

`org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`org.eclipse.net4j.util.event.INotifier.INotifier2`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`CDOUnit`
`createUnit(EObject root, boolean open, IProgressMonitor monitor)`
`CDOUnit`
`getOpenUnit(EObject object)`
`CDOUnit[]`
`getOpenUnits()`
`CDOView`
`getView()`
`boolean`
`isAutoResourceUnitsEnabled()`
`boolean`
`isPrefetchLockStates()`
`boolean`
`isUnit(EObject root)`
`CDOUnit`
`openUnit(EObject root, boolean createOnDemand, IProgressMonitor monitor)`
`void`
`setAutoResourceUnitsEnabled(boolean enabled)`
`void`
`setPrefetchLockStates(boolean prefetchLockStates)`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.container.IContainer

`getElements, isEmpty`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier

`addListener, getListeners, hasListeners, removeListener`

## Methodendetails

### getView

CDOView getView()

### isUnit

boolean isUnit(EObject root)

### createUnit

CDOUnit createUnit(EObject root, boolean open, IProgressMonitor monitor) throws CDOUnitManager.UnitExistsException

Löst aus:
  `CDOUnitManager.UnitExistsException`

### openUnit

CDOUnit openUnit(EObject root, boolean createOnDemand, IProgressMonitor monitor) throws CDOUnitManager.UnitNotFoundException

Löst aus:
  `CDOUnitManager.UnitNotFoundException`

### getOpenUnit

CDOUnit getOpenUnit(EObject object)

### getOpenUnits

CDOUnit[] getOpenUnits()

### isPrefetchLockStates

boolean isPrefetchLockStates()

Seit:
  4.23

### setPrefetchLockStates

void setPrefetchLockStates(boolean prefetchLockStates)

Seit:
  4.23

### isAutoResourceUnitsEnabled

boolean isAutoResourceUnitsEnabled()

### setAutoResourceUnitsEnabled

void setAutoResourceUnitsEnabled(boolean enabled)