Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.eclipselink.core.context
Interface EclipseLinkCaching

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model
All Known Subinterfaces:
JavaEclipseLinkCaching

public interface EclipseLinkCaching
extends JpaContextNode

EclipseLink caching

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static boolean DEFAULT_ALWAYS_REFRESH
           
static String DEFAULT_ALWAYS_REFRESH_PROPERTY
           
static EclipseLinkCacheCoordinationType DEFAULT_COORDINATION_TYPE
           
static String DEFAULT_COORDINATION_TYPE_PROPERTY
           
static boolean DEFAULT_DISABLE_HITS
           
static String DEFAULT_DISABLE_HITS_PROPERTY
           
static EclipseLinkExistenceType DEFAULT_EXISTENCE_TYPE
           
static String DEFAULT_EXISTENCE_TYPE_PROPERTY
           
static EclipseLinkCacheIsolationType2_2 DEFAULT_ISOLATION
           
static String DEFAULT_ISOLATION_PROPERTY
           
static boolean DEFAULT_REFRESH_ONLY_IF_NEWER
           
static String DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY
           
static boolean DEFAULT_SHARED
           
static String DEFAULT_SHARED_PROPERTY
           
static int DEFAULT_SIZE
           
static String DEFAULT_SIZE_PROPERTY
           
static EclipseLinkCacheType DEFAULT_TYPE
           
static String DEFAULT_TYPE_PROPERTY
           
static String EXPIRY_PROPERTY
           
static String EXPIRY_TIME_OF_DAY_PROPERTY
           
static String SPECIFIED_ALWAYS_REFRESH_PROPERTY
           
static String SPECIFIED_COORDINATION_TYPE_PROPERTY
           
static String SPECIFIED_DISABLE_HITS_PROPERTY
           
static String SPECIFIED_EXISTENCE_TYPE_PROPERTY
           
static String SPECIFIED_ISOLATION_PROPERTY
           
static String SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY
           
static String SPECIFIED_SHARED_PROPERTY
           
static String SPECIFIED_SIZE_PROPERTY
           
static String SPECIFIED_TYPE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 EclipseLinkTimeOfDay addExpiryTimeOfDay()
          Add Cache expiryTimeOfDay annotation or xml element, this will set Expiry to null as it is not valid to set both expiry and timeOfDayExpiry
 EclipseLinkCacheCoordinationType getCoordinationType()
          This is the combination of defaultCoordinationType and specifiedCoordinationType.
 EclipseLinkCacheCoordinationType getDefaultCoordinationType()
           
 EclipseLinkExistenceType getDefaultExistenceType()
           
 EclipseLinkCacheIsolationType2_2 getDefaultIsolation()
           
 int getDefaultSize()
           
 EclipseLinkCacheType getDefaultType()
           
 EclipseLinkExistenceType getExistenceType()
          This is the combination of defaultExistenceType and specifiedExistenceType.
 Integer getExpiry()
          corresponds to the Cache expiry element.
 EclipseLinkTimeOfDay getExpiryTimeOfDay()
          corresponds to the Cache expiryTimeOfDay annotation or xml element.
 EclipseLinkCacheIsolationType2_2 getIsolation()
          This is the combination of defaultIsolation and specifiedIsolation.
 int getSize()
          This is the combination of defaultSize and specifiedSize.
 Boolean getSpecifiedAlwaysRefresh()
           
 EclipseLinkCacheCoordinationType getSpecifiedCoordinationType()
           
 Boolean getSpecifiedDisableHits()
           
 EclipseLinkExistenceType getSpecifiedExistenceType()
           
 EclipseLinkCacheIsolationType2_2 getSpecifiedIsolation()
           
 Boolean getSpecifiedRefreshOnlyIfNewer()
           
 Boolean getSpecifiedShared()
           
 Integer getSpecifiedSize()
           
 EclipseLinkCacheType getSpecifiedType()
           
 EclipseLinkCacheType getType()
          This is the combination of defaultType and specifiedType.
 boolean isAlwaysRefresh()
          This is the combination of defaultAlwaysRefresh and specifiedAlwaysRefresh.
 boolean isDefaultAlwaysRefresh()
           
 boolean isDefaultDisableHits()
           
 boolean isDefaultRefreshOnlyIfNewer()
           
 boolean isDefaultShared()
           
 boolean isDisableHits()
          This is the combination of defaultDisableHits and specifiedDisableHits.
 boolean isRefreshOnlyIfNewer()
          This is the combination of defaultRefreshOnlyIfNewer and specifiedRefreshOnlyIfNewer.
 boolean isShared()
          This is the combination of defaultShared and specifiedShared.
 void removeExpiryTimeOfDay()
          Removes the Cache expiryTimeOfDay annotation/xml element
 void setExpiry(Integer expiry)
          Setting this to a non-null value will set timeOfDayExpiry to null
 void setSpecifiedAlwaysRefresh(Boolean alwaysRefresh)
           
 void setSpecifiedCoordinationType(EclipseLinkCacheCoordinationType coordinationType)
           
 void setSpecifiedDisableHits(Boolean disableHits)
           
 void setSpecifiedExistenceType(EclipseLinkExistenceType type)
           
 void setSpecifiedIsolation(EclipseLinkCacheIsolationType2_2 isolation)
           
 void setSpecifiedRefreshOnlyIfNewer(Boolean refreshOnlyIfNewer)
           
 void setSpecifiedShared(Boolean shared)
          Specifying shared false will return the following caching settings to their defaults: type size always refresh refresh only if newer disable hits coordination type Additionally, the following settings will be cleared: expiry expiry time of day These settings do not apply to an unchared cache.
 void setSpecifiedSize(Integer size)
           
 void setSpecifiedType(EclipseLinkCacheType type)
           
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

SPECIFIED_TYPE_PROPERTY

static final String SPECIFIED_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_TYPE_PROPERTY

static final String DEFAULT_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_TYPE

static final EclipseLinkCacheType DEFAULT_TYPE

SPECIFIED_SIZE_PROPERTY

static final String SPECIFIED_SIZE_PROPERTY
See Also:
Constant Field Values

DEFAULT_SIZE_PROPERTY

static final String DEFAULT_SIZE_PROPERTY
See Also:
Constant Field Values

DEFAULT_SIZE

static final int DEFAULT_SIZE
See Also:
Constant Field Values

SPECIFIED_SHARED_PROPERTY

static final String SPECIFIED_SHARED_PROPERTY
See Also:
Constant Field Values

DEFAULT_SHARED_PROPERTY

static final String DEFAULT_SHARED_PROPERTY
See Also:
Constant Field Values

DEFAULT_SHARED

static final boolean DEFAULT_SHARED
See Also:
Constant Field Values

SPECIFIED_ALWAYS_REFRESH_PROPERTY

static final String SPECIFIED_ALWAYS_REFRESH_PROPERTY
See Also:
Constant Field Values

DEFAULT_ALWAYS_REFRESH_PROPERTY

static final String DEFAULT_ALWAYS_REFRESH_PROPERTY
See Also:
Constant Field Values

DEFAULT_ALWAYS_REFRESH

static final boolean DEFAULT_ALWAYS_REFRESH
See Also:
Constant Field Values

SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY

static final String SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY
See Also:
Constant Field Values

DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY

static final String DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY
See Also:
Constant Field Values

DEFAULT_REFRESH_ONLY_IF_NEWER

static final boolean DEFAULT_REFRESH_ONLY_IF_NEWER
See Also:
Constant Field Values

SPECIFIED_DISABLE_HITS_PROPERTY

static final String SPECIFIED_DISABLE_HITS_PROPERTY
See Also:
Constant Field Values

DEFAULT_DISABLE_HITS_PROPERTY

static final String DEFAULT_DISABLE_HITS_PROPERTY
See Also:
Constant Field Values

DEFAULT_DISABLE_HITS

static final boolean DEFAULT_DISABLE_HITS
See Also:
Constant Field Values

SPECIFIED_COORDINATION_TYPE_PROPERTY

static final String SPECIFIED_COORDINATION_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_COORDINATION_TYPE_PROPERTY

static final String DEFAULT_COORDINATION_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_COORDINATION_TYPE

static final EclipseLinkCacheCoordinationType DEFAULT_COORDINATION_TYPE

EXPIRY_PROPERTY

static final String EXPIRY_PROPERTY
See Also:
Constant Field Values

EXPIRY_TIME_OF_DAY_PROPERTY

static final String EXPIRY_TIME_OF_DAY_PROPERTY
See Also:
Constant Field Values

SPECIFIED_EXISTENCE_TYPE_PROPERTY

static final String SPECIFIED_EXISTENCE_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_EXISTENCE_TYPE_PROPERTY

static final String DEFAULT_EXISTENCE_TYPE_PROPERTY
See Also:
Constant Field Values

DEFAULT_EXISTENCE_TYPE

static final EclipseLinkExistenceType DEFAULT_EXISTENCE_TYPE

SPECIFIED_ISOLATION_PROPERTY

static final String SPECIFIED_ISOLATION_PROPERTY
See Also:
Constant Field Values

DEFAULT_ISOLATION_PROPERTY

static final String DEFAULT_ISOLATION_PROPERTY
See Also:
Constant Field Values

DEFAULT_ISOLATION

static final EclipseLinkCacheIsolationType2_2 DEFAULT_ISOLATION
Method Detail

getType

EclipseLinkCacheType getType()
This is the combination of defaultType and specifiedType. If getSpecifiedType() returns null, then return getDefaultType()


getSpecifiedType

EclipseLinkCacheType getSpecifiedType()

setSpecifiedType

void setSpecifiedType(EclipseLinkCacheType type)

getDefaultType

EclipseLinkCacheType getDefaultType()

getSize

int getSize()
This is the combination of defaultSize and specifiedSize. If getSpecifiedSize() returns null, then return getDefaultSize()


getSpecifiedSize

Integer getSpecifiedSize()

setSpecifiedSize

void setSpecifiedSize(Integer size)

getDefaultSize

int getDefaultSize()

isShared

boolean isShared()
This is the combination of defaultShared and specifiedShared. If getSpecifiedShared() returns null, then return isDefaultShared()


getSpecifiedShared

Boolean getSpecifiedShared()

setSpecifiedShared

void setSpecifiedShared(Boolean shared)
Specifying shared false will return the following caching settings to their defaults: Additionally, the following settings will be cleared: These settings do not apply to an unchared cache.


isDefaultShared

boolean isDefaultShared()

isAlwaysRefresh

boolean isAlwaysRefresh()
This is the combination of defaultAlwaysRefresh and specifiedAlwaysRefresh. If getSpecifiedAlwaysRefresh() returns null, then return isDefaultAlwaysRefresh()


getSpecifiedAlwaysRefresh

Boolean getSpecifiedAlwaysRefresh()

setSpecifiedAlwaysRefresh

void setSpecifiedAlwaysRefresh(Boolean alwaysRefresh)

isDefaultAlwaysRefresh

boolean isDefaultAlwaysRefresh()

isRefreshOnlyIfNewer

boolean isRefreshOnlyIfNewer()
This is the combination of defaultRefreshOnlyIfNewer and specifiedRefreshOnlyIfNewer. If getSpecifiedRefreshOnlyIfNewer() returns null, then return isDefaultRefreshOnlyIfNewer()


getSpecifiedRefreshOnlyIfNewer

Boolean getSpecifiedRefreshOnlyIfNewer()

setSpecifiedRefreshOnlyIfNewer

void setSpecifiedRefreshOnlyIfNewer(Boolean refreshOnlyIfNewer)

isDefaultRefreshOnlyIfNewer

boolean isDefaultRefreshOnlyIfNewer()

isDisableHits

boolean isDisableHits()
This is the combination of defaultDisableHits and specifiedDisableHits. If getSpecifiedDisableHits() returns null, then return getDefaultDisableHits()


getSpecifiedDisableHits

Boolean getSpecifiedDisableHits()

setSpecifiedDisableHits

void setSpecifiedDisableHits(Boolean disableHits)

isDefaultDisableHits

boolean isDefaultDisableHits()

getCoordinationType

EclipseLinkCacheCoordinationType getCoordinationType()
This is the combination of defaultCoordinationType and specifiedCoordinationType. If getSpecifiedCoordinationType() returns null, then return getDefaultCoordinationType()


getSpecifiedCoordinationType

EclipseLinkCacheCoordinationType getSpecifiedCoordinationType()

setSpecifiedCoordinationType

void setSpecifiedCoordinationType(EclipseLinkCacheCoordinationType coordinationType)

getDefaultCoordinationType

EclipseLinkCacheCoordinationType getDefaultCoordinationType()

getExpiry

Integer getExpiry()
corresponds to the Cache expiry element. If this returns a non-null value then getExpiryTimeOfDay will return null. It is not valid to specify both


setExpiry

void setExpiry(Integer expiry)
Setting this to a non-null value will set timeOfDayExpiry to null


getExpiryTimeOfDay

EclipseLinkTimeOfDay getExpiryTimeOfDay()
corresponds to the Cache expiryTimeOfDay annotation or xml element. If this returns a non-null value then getExpiry will return null. It is not valid to specify both.


addExpiryTimeOfDay

EclipseLinkTimeOfDay addExpiryTimeOfDay()
Add Cache expiryTimeOfDay annotation or xml element, this will set Expiry to null as it is not valid to set both expiry and timeOfDayExpiry


removeExpiryTimeOfDay

void removeExpiryTimeOfDay()
Removes the Cache expiryTimeOfDay annotation/xml element


getExistenceType

EclipseLinkExistenceType getExistenceType()
This is the combination of defaultExistenceType and specifiedExistenceType. If getSpecifiedExistenceType() returns null, then return getDefaultExistenceType()


getSpecifiedExistenceType

EclipseLinkExistenceType getSpecifiedExistenceType()

setSpecifiedExistenceType

void setSpecifiedExistenceType(EclipseLinkExistenceType type)

getDefaultExistenceType

EclipseLinkExistenceType getDefaultExistenceType()

getIsolation

EclipseLinkCacheIsolationType2_2 getIsolation()
This is the combination of defaultIsolation and specifiedIsolation. If getSpecifiedIsolation() returns null, then return getDefaultIsolation()


getSpecifiedIsolation

EclipseLinkCacheIsolationType2_2 getSpecifiedIsolation()

setSpecifiedIsolation

void setSpecifiedIsolation(EclipseLinkCacheIsolationType2_2 isolation)

getDefaultIsolation

EclipseLinkCacheIsolationType2_2 getDefaultIsolation()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.