|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EclipseLinkCaching
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.
| 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()
|
int |
getDefaultSize()
|
EclipseLinkCacheType |
getDefaultType()
|
EclipseLinkExistenceType |
getExistenceType()
This is the combination of defaultExistenceType and specifiedExistenceType. |
java.lang.Integer |
getExpiry()
corresponds to the Cache expiry element. |
EclipseLinkTimeOfDay |
getExpiryTimeOfDay()
corresponds to the Cache expiryTimeOfDay annotation or xml element. |
int |
getSize()
This is the combination of defaultSize and specifiedSize. |
java.lang.Boolean |
getSpecifiedAlwaysRefresh()
|
EclipseLinkCacheCoordinationType |
getSpecifiedCoordinationType()
|
java.lang.Boolean |
getSpecifiedDisableHits()
|
EclipseLinkExistenceType |
getSpecifiedExistenceType()
|
java.lang.Boolean |
getSpecifiedRefreshOnlyIfNewer()
|
java.lang.Boolean |
getSpecifiedShared()
|
java.lang.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(java.lang.Integer expiry)
Setting this to a non-null value will set timeOfDayExpiry to null |
void |
setSpecifiedAlwaysRefresh(java.lang.Boolean alwaysRefresh)
|
void |
setSpecifiedCoordinationType(EclipseLinkCacheCoordinationType coordinationType)
|
void |
setSpecifiedDisableHits(java.lang.Boolean disableHits)
|
void |
setSpecifiedExistenceType(EclipseLinkExistenceType type)
|
void |
setSpecifiedRefreshOnlyIfNewer(java.lang.Boolean refreshOnlyIfNewer)
|
void |
setSpecifiedShared(java.lang.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(java.lang.Integer size)
|
void |
setSpecifiedType(EclipseLinkCacheType type)
|
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
getJpaProject, getParent, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart |
|---|
getResource |
| Field Detail |
|---|
static final java.lang.String SPECIFIED_TYPE_PROPERTY
static final java.lang.String DEFAULT_TYPE_PROPERTY
static final EclipseLinkCacheType DEFAULT_TYPE
static final java.lang.String SPECIFIED_SIZE_PROPERTY
static final java.lang.String DEFAULT_SIZE_PROPERTY
static final int DEFAULT_SIZE
static final java.lang.String SPECIFIED_SHARED_PROPERTY
static final java.lang.String DEFAULT_SHARED_PROPERTY
static final boolean DEFAULT_SHARED
static final java.lang.String SPECIFIED_ALWAYS_REFRESH_PROPERTY
static final java.lang.String DEFAULT_ALWAYS_REFRESH_PROPERTY
static final boolean DEFAULT_ALWAYS_REFRESH
static final java.lang.String SPECIFIED_REFRESH_ONLY_IF_NEWER_PROPERTY
static final java.lang.String DEFAULT_REFRESH_ONLY_IF_NEWER_PROPERTY
static final boolean DEFAULT_REFRESH_ONLY_IF_NEWER
static final java.lang.String SPECIFIED_DISABLE_HITS_PROPERTY
static final java.lang.String DEFAULT_DISABLE_HITS_PROPERTY
static final boolean DEFAULT_DISABLE_HITS
static final java.lang.String SPECIFIED_COORDINATION_TYPE_PROPERTY
static final java.lang.String DEFAULT_COORDINATION_TYPE_PROPERTY
static final EclipseLinkCacheCoordinationType DEFAULT_COORDINATION_TYPE
static final java.lang.String EXPIRY_PROPERTY
static final java.lang.String EXPIRY_TIME_OF_DAY_PROPERTY
static final java.lang.String SPECIFIED_EXISTENCE_TYPE_PROPERTY
static final java.lang.String DEFAULT_EXISTENCE_TYPE_PROPERTY
static final EclipseLinkExistenceType DEFAULT_EXISTENCE_TYPE
| Method Detail |
|---|
EclipseLinkCacheType getType()
EclipseLinkCacheType getSpecifiedType()
void setSpecifiedType(EclipseLinkCacheType type)
EclipseLinkCacheType getDefaultType()
int getSize()
java.lang.Integer getSpecifiedSize()
void setSpecifiedSize(java.lang.Integer size)
int getDefaultSize()
boolean isShared()
java.lang.Boolean getSpecifiedShared()
void setSpecifiedShared(java.lang.Boolean shared)
false will return the following
caching settings to their defaults:
boolean isDefaultShared()
boolean isAlwaysRefresh()
java.lang.Boolean getSpecifiedAlwaysRefresh()
void setSpecifiedAlwaysRefresh(java.lang.Boolean alwaysRefresh)
boolean isDefaultAlwaysRefresh()
boolean isRefreshOnlyIfNewer()
java.lang.Boolean getSpecifiedRefreshOnlyIfNewer()
void setSpecifiedRefreshOnlyIfNewer(java.lang.Boolean refreshOnlyIfNewer)
boolean isDefaultRefreshOnlyIfNewer()
boolean isDisableHits()
java.lang.Boolean getSpecifiedDisableHits()
void setSpecifiedDisableHits(java.lang.Boolean disableHits)
boolean isDefaultDisableHits()
EclipseLinkCacheCoordinationType getCoordinationType()
EclipseLinkCacheCoordinationType getSpecifiedCoordinationType()
void setSpecifiedCoordinationType(EclipseLinkCacheCoordinationType coordinationType)
EclipseLinkCacheCoordinationType getDefaultCoordinationType()
java.lang.Integer getExpiry()
void setExpiry(java.lang.Integer expiry)
EclipseLinkTimeOfDay getExpiryTimeOfDay()
EclipseLinkTimeOfDay addExpiryTimeOfDay()
void removeExpiryTimeOfDay()
EclipseLinkExistenceType getExistenceType()
EclipseLinkExistenceType getSpecifiedExistenceType()
void setSpecifiedExistenceType(EclipseLinkExistenceType type)
EclipseLinkExistenceType getDefaultExistenceType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||