org.eclipse.jpt.jpa.core.context
Interface AccessHolder

All Superinterfaces:
Model, ReadOnlyAccessHolder
All Known Subinterfaces:
JavaPersistentAttribute, JavaPersistentAttribute2_0, JavaPersistentType, JavaPersistentType2_0, OrmPersistentAttribute, OrmPersistentAttribute2_0, OrmPersistentType, OrmPersistentType2_0, PersistentAttribute, PersistentAttribute2_0, PersistentType, PersistentType2_0

public interface AccessHolder
extends ReadOnlyAccessHolder

Common interface that can be used by clients interested only in a type or attribute's access setting (e.g. a UI composite).

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.2
Version:
2.2

Field Summary
static java.lang.String DEFAULT_ACCESS_PROPERTY
          String constant associated with changes to the default access type
static java.lang.String SPECIFIED_ACCESS_PROPERTY
          String constant associated with changes to the specified access type
 
Method Summary
 AccessType getDefaultAccess()
          Return the default access type, never null
 AccessType getSpecifiedAccess()
          Return the specified access type;
 void setSpecifiedAccess(AccessType newSpecifiedAccess)
          Set the specified access type.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyAccessHolder
getAccess
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Field Detail

SPECIFIED_ACCESS_PROPERTY

static final java.lang.String SPECIFIED_ACCESS_PROPERTY
String constant associated with changes to the specified access type

See Also:
Constant Field Values

DEFAULT_ACCESS_PROPERTY

static final java.lang.String DEFAULT_ACCESS_PROPERTY
String constant associated with changes to the default access type

See Also:
Constant Field Values
Method Detail

getSpecifiedAccess

AccessType getSpecifiedAccess()
Return the specified access type;


setSpecifiedAccess

void setSpecifiedAccess(AccessType newSpecifiedAccess)
Set the specified access type.


getDefaultAccess

AccessType getDefaultAccess()
Return the default access type, never null