org.eclipse.jpt.eclipselink.core.context.java
Interface JavaCaching

All Superinterfaces:
Caching, org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JpaContextNode, JpaNode, Model

public interface JavaCaching
extends Caching, JavaJpaContextNode

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.1
Version:
2.1

Field Summary
static java.lang.String EXISTENCE_CHECKING_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.eclipselink.core.context.Caching
DEFAULT_ALWAYS_REFRESH, DEFAULT_ALWAYS_REFRESH_PROPERTY, DEFAULT_COORDINATION_TYPE, DEFAULT_COORDINATION_TYPE_PROPERTY, DEFAULT_DISABLE_HITS, DEFAULT_DISABLE_HITS_PROPERTY, DEFAULT_EXISTENCE_TYPE, DEFAULT_EXISTENCE_TYPE_PROPERTY, DEFAULT_REFRESH_ONLY_IF_NEWER, DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY, DEFAULT_SHARED, DEFAULT_SHARED_PROPERTY, DEFAULT_SIZE, DEFAULT_SIZE_PROPERTY, DEFAULT_TYPE, DEFAULT_TYPE_PROPERTY, EXPIRY_PROPERTY, EXPIRY_TIME_OF_DAY_PROPERTY, SPECIFIED_ALWAYS_REFRESH_PROPERTY, SPECIFIED_COORDINATION_TYPE_PROPERTY, SPECIFIED_DISABLE_HITS_PROPERTY, SPECIFIED_EXISTENCE_TYPE_PROPERTY, SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY, SPECIFIED_SHARED_PROPERTY, SPECIFIED_SIZE_PROPERTY, SPECIFIED_TYPE_PROPERTY
 
Method Summary
 boolean hasExistenceChecking()
          Return true if the existence-checking model object exists.
 void initialize(JavaResourcePersistentType resourcePersistentType)
          Initialize the EclipseLinkJavaCaching context model object to match the CacheAnnotation resource model object.
 void setExistenceChecking(boolean existenceChecking)
           
 void update(JavaResourcePersistentType resourcePersistentType)
          Update the EclipseLinkJavaCaching context model object to match the CacheAnnotation resource model object.
 
Methods inherited from interface org.eclipse.jpt.eclipselink.core.context.Caching
addExpiryTimeOfDay, getCoordinationType, getDefaultCoordinationType, getDefaultExistenceType, getDefaultSize, getDefaultType, getExistenceType, getExpiry, getExpiryTimeOfDay, getSize, getSpecifiedAlwaysRefresh, getSpecifiedCoordinationType, getSpecifiedDisableHits, getSpecifiedExistenceType, getSpecifiedRefreshOnlyIfNewer, getSpecifiedShared, getSpecifiedSize, getSpecifiedType, getType, isAlwaysRefresh, isDefaultAlwaysRefresh, isDefaultDisableHits, isDefaultRefreshOnlyIfNewer, isDefaultShared, isDisableHits, isRefreshOnlyIfNewer, isShared, removeExpiryTimeOfDay, setExpiry, setSpecifiedAlwaysRefresh, setSpecifiedCoordinationType, setSpecifiedDisableHits, setSpecifiedExistenceType, setSpecifiedRefreshOnlyIfNewer, setSpecifiedShared, setSpecifiedSize, setSpecifiedType
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 

Field Detail

EXISTENCE_CHECKING_PROPERTY

static final java.lang.String EXISTENCE_CHECKING_PROPERTY
See Also:
Constant Field Values
Method Detail

hasExistenceChecking

boolean hasExistenceChecking()
Return true if the existence-checking model object exists. Have to have a separate flag for this since the default existence type is different depending on whether hasExistenceChecking() returns true or false.


setExistenceChecking

void setExistenceChecking(boolean existenceChecking)

initialize

void initialize(JavaResourcePersistentType resourcePersistentType)
Initialize the EclipseLinkJavaCaching context model object to match the CacheAnnotation resource model object. This should be called immediately after object creation.


update

void update(JavaResourcePersistentType resourcePersistentType)
Update the EclipseLinkJavaCaching context model object to match the CacheAnnotation resource model object. see JpaProject.update()