|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheAnnotation
Corresponds to the EclipseLink annotation org.eclipse.persistence.annotations.Cache 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
JavaResourceNode.Root |
| Field Summary | |
|---|---|
static java.lang.String |
ALWAYS_REFRESH_PROPERTY
|
static java.lang.String |
ANNOTATION_NAME
|
static java.lang.String |
COORDINATION_TYPE_PROPERTY
|
static java.lang.String |
DISABLE_HITS_PROPERTY
|
static java.lang.String |
EXPIRY_PROPERTY
|
static java.lang.String |
EXPIRY_TIME_OF_DAY_PROPERTY
|
static java.lang.String |
REFRESH_ONLY_IF_NEWER_PROPERTY
|
static java.lang.String |
SHARED_PROPERTY
|
static java.lang.String |
SIZE_PROPERTY
|
static java.lang.String |
TYPE_PROPERTY
|
| Method Summary | |
|---|---|
TimeOfDayAnnotation |
addExpiryTimeOfDay()
|
java.lang.Boolean |
getAlwaysRefresh()
Corresponds to the 'alwaysRefresh' element of the Cache annotation. |
TextRange |
getAlwaysRefreshTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'alwaysRefresh' element. |
CacheCoordinationType |
getCoordinationType()
Corresponds to the 'coordinationType' element of the Cache annotation. |
TextRange |
getCoordinationTypeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'coordinationType' element. |
java.lang.Boolean |
getDisableHits()
Corresponds to the 'disableHits' element of the Cache annotation. |
TextRange |
getDisablesHitsTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'disableHits' element. |
java.lang.Integer |
getExpiry()
Corresponds to the 'expiry' element of the Cache annotation. |
TextRange |
getExpiryTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'expiry' element. |
TimeOfDayAnnotation |
getExpiryTimeOfDay()
Corresponds to the 'expiryTimeOfDay' element of the Cache annotation. |
TextRange |
getExpiryTimeOfDayTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'expiryTimeOfDay' element. |
java.lang.Boolean |
getRefreshOnlyIfNewer()
Corresponds to the 'refreshOnlyIfNewer' element of the Cache annotation. |
TextRange |
getRefreshOnlyIfNewerTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'refreshOnlyIfNewer' element. |
java.lang.Boolean |
getShared()
Corresponds to the 'shared' element of the Cache annotation. |
TextRange |
getSharedTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'shared' element. |
java.lang.Integer |
getSize()
Corresponds to the 'size' element of the Cache annotation. |
TextRange |
getSizeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'size' element. |
CacheType |
getType()
Corresponds to the 'type' element of the Cache annotation. |
TextRange |
getTypeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'type' element. |
void |
removeExpiryTimeOfDay()
|
void |
setAlwaysRefresh(java.lang.Boolean alwaysRefresh)
Corresponds to the 'alwaysRefresh' element of the Cache annotation. |
void |
setCoordinationType(CacheCoordinationType coordinationType)
Corresponds to the 'coordinationType' element of the Cache annotation. |
void |
setDisableHits(java.lang.Boolean disableHits)
Corresponds to the 'disableHits' element of the Cache annotation. |
void |
setExpiry(java.lang.Integer expiry)
Corresponds to the 'expiry' element of the Cache annotation. |
void |
setRefreshOnlyIfNewer(java.lang.Boolean refreshOnlyIfNewer)
Corresponds to the 'refreshOnlyIfNewer' element of the Cache annotation. |
void |
setShared(java.lang.Boolean shared)
Corresponds to the 'shared' element of the Cache annotation. |
void |
setSize(java.lang.Integer size)
Corresponds to the 'size' element of the Cache annotation. |
void |
setType(CacheType type)
Corresponds to the 'type' element of the Cache annotation. |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.Annotation |
|---|
getAnnotationName, getJdtAnnotation, newAnnotation, removeAnnotation |
| Methods inherited from interface org.eclipse.jpt.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getRoot, getTextRange, initialize, update |
| Field Detail |
|---|
static final java.lang.String ANNOTATION_NAME
static final java.lang.String TYPE_PROPERTY
static final java.lang.String SIZE_PROPERTY
static final java.lang.String SHARED_PROPERTY
static final java.lang.String EXPIRY_PROPERTY
static final java.lang.String EXPIRY_TIME_OF_DAY_PROPERTY
static final java.lang.String ALWAYS_REFRESH_PROPERTY
static final java.lang.String REFRESH_ONLY_IF_NEWER_PROPERTY
static final java.lang.String DISABLE_HITS_PROPERTY
static final java.lang.String COORDINATION_TYPE_PROPERTY
| Method Detail |
|---|
CacheType getType()
void setType(CacheType type)
TextRange getTypeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'type' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Integer getSize()
void setSize(java.lang.Integer size)
TextRange getSizeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'size' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Boolean getShared()
void setShared(java.lang.Boolean shared)
TextRange getSharedTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'shared' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Integer getExpiry()
void setExpiry(java.lang.Integer expiry)
TextRange getExpiryTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'expiry' element.
If the element does not exist return the TextRange
for the Cache annotation.
TimeOfDayAnnotation getExpiryTimeOfDay()
TimeOfDayAnnotation addExpiryTimeOfDay()
void removeExpiryTimeOfDay()
TextRange getExpiryTimeOfDayTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'expiryTimeOfDay' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Boolean getAlwaysRefresh()
void setAlwaysRefresh(java.lang.Boolean alwaysRefresh)
TextRange getAlwaysRefreshTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'alwaysRefresh' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Boolean getRefreshOnlyIfNewer()
void setRefreshOnlyIfNewer(java.lang.Boolean refreshOnlyIfNewer)
TextRange getRefreshOnlyIfNewerTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'refreshOnlyIfNewer' element.
If the element does not exist return the TextRange
for the Cache annotation.
java.lang.Boolean getDisableHits()
void setDisableHits(java.lang.Boolean disableHits)
TextRange getDisablesHitsTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'disableHits' element.
If the element does not exist return the TextRange
for the Cache annotation.
CacheCoordinationType getCoordinationType()
void setCoordinationType(CacheCoordinationType coordinationType)
TextRange getCoordinationTypeTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'coordinationType' element.
If the element does not exist return the TextRange
for the Cache annotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||