Interface PersistenceFieldElement.Impl
-
- All Superinterfaces:
PersistenceElement.Impl,PersistenceMemberElement.Impl
- All Known Subinterfaces:
RelationshipElement.Impl
- All Known Implementing Classes:
PersistenceFieldElementImpl,RelationshipElementImpl
- Enclosing class:
- PersistenceFieldElement
public static interface PersistenceFieldElement.Impl extends PersistenceMemberElement.Impl
Pluggable implementation of the storage of field element properties.
-
-
Field Summary
-
Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl
ADD, REMOVE, SET
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPersistenceType()Get the persistence type of this field element.booleanisKey()Determines whether this field element is a key field or not.booleanisReadSensitive()Determines whether this field element is read sensitive or not.booleanisWriteSensitive()Determines whether this field element is write sensitive or not.voidsetKey(boolean flag)Set whether this field element is a key field or not.voidsetPersistenceType(int type)Set the persistence type of this field element.voidsetReadSensitive(boolean flag)Set whether this field element is read sensitive or not.voidsetWriteSensitive(boolean flag)Set whether this field element is write sensitive or not.-
Methods inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
-
-
-
-
Method Detail
-
getPersistenceType
int getPersistenceType()
Get the persistence type of this field element.- Returns:
- the persistence type, one of
PersistenceFieldElement.PERSISTENTorPersistenceFieldElement.DERIVED
-
setPersistenceType
void setPersistenceType(int type) throws ModelExceptionSet the persistence type of this field element.- Parameters:
type- - an integer indicating the persistence type, one of:PersistenceFieldElement.PERSISTENTorPersistenceFieldElement.DERIVED- Throws:
ModelException- if impossible
-
isReadSensitive
boolean isReadSensitive()
Determines whether this field element is read sensitive or not. This value is only used ifgetPersistenceTypereturnsDERIVED- Returns:
trueif the field is read sensitive,falseif it is not or if the persistence type is not derived- See Also:
isWriteSensitive(),setPersistenceType(int),PersistenceFieldElement.DERIVED
-
setReadSensitive
void setReadSensitive(boolean flag) throws ModelExceptionSet whether this field element is read sensitive or not.- Parameters:
flag- - iftrueand this is a derived field, the field element is marked as read sensitive; otherwise, it is not This value is only used ifgetPersistenceTypereturnsDERIVED- Throws:
ModelException- if impossible- See Also:
setWriteSensitive(boolean),setPersistenceType(int),PersistenceFieldElement.DERIVED
-
isWriteSensitive
boolean isWriteSensitive()
Determines whether this field element is write sensitive or not. This value is only used ifgetPersistenceTypereturnsDERIVED- Returns:
trueif the field is write sensitive,falseif it is not or if the persistence type is not derived- See Also:
isReadSensitive(),setPersistenceType(int),PersistenceFieldElement.DERIVED
-
setWriteSensitive
void setWriteSensitive(boolean flag) throws ModelExceptionSet whether this field element is write sensitive or not.- Parameters:
flag- - iftrueand this is a derived field, the field element is marked as write sensitive; otherwise, it is not This value is only used ifgetPersistenceTypereturnsDERIVED- Throws:
ModelException- if impossible- See Also:
setReadSensitive(boolean),setPersistenceType(int),PersistenceFieldElement.DERIVED
-
isKey
boolean isKey()
Determines whether this field element is a key field or not.- Returns:
trueif the field is a key field,falseotherwise- See Also:
PersistenceClassElement.getKeyClass()
-
setKey
void setKey(boolean flag) throws ModelExceptionSet whether this field element is a key field or not.- Parameters:
flag- - iftrue, the field element is marked as a key field; otherwise, it is not- Throws:
ModelException- if impossible- See Also:
PersistenceClassElement.getKeyClass()
-
-