public static interface PersistenceFieldElement.Impl extends PersistenceMemberElement.Impl
ADD, REMOVE, SET| Modifier and Type | Method and Description |
|---|---|
int |
getPersistenceType()
Get the persistence type of this field element.
|
boolean |
isKey()
Determines whether this field element is a key field or not.
|
boolean |
isReadSensitive()
Determines whether this field element is read sensitive or not.
|
boolean |
isWriteSensitive()
Determines whether this field element is write sensitive or not.
|
void |
setKey(boolean flag)
Set whether this field element is a key field or not.
|
void |
setPersistenceType(int type)
Set the persistence type of this field element.
|
void |
setReadSensitive(boolean flag)
Set whether this field element is read sensitive or not.
|
void |
setWriteSensitive(boolean flag)
Set whether this field element is write sensitive or not.
|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNameint getPersistenceType()
PersistenceFieldElement.PERSISTENT or
PersistenceFieldElement.DERIVEDvoid setPersistenceType(int type)
throws ModelException
type - - an integer indicating the persistence type, one of:
PersistenceFieldElement.PERSISTENT or PersistenceFieldElement.DERIVEDModelException - if impossibleboolean isReadSensitive()
getPersistenceType returns
DERIVEDtrue if the field is read sensitive,
false if it is not or if the persistence type is not
derivedisWriteSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDvoid setReadSensitive(boolean flag)
throws ModelException
flag - - if true and this is a derived field, the
field element is marked as read sensitive; otherwise, it is not
This value is only used if getPersistenceType returns
DERIVEDModelException - if impossiblesetWriteSensitive(boolean),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDboolean isWriteSensitive()
getPersistenceType returns
DERIVEDtrue if the field is write sensitive,
false if it is not or if the persistence type is not
derivedisReadSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDvoid setWriteSensitive(boolean flag)
throws ModelException
flag - - if true and this is a derived field, the
field element is marked as write sensitive; otherwise, it is not
This value is only used if getPersistenceType returns
DERIVEDModelException - if impossiblesetReadSensitive(boolean),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDboolean isKey()
true if the field is a key field,
false otherwisePersistenceClassElement.getKeyClass()void setKey(boolean flag)
throws ModelException
flag - - if true, the field element is marked
as a key field; otherwise, it is notModelException - if impossiblePersistenceClassElement.getKeyClass()Copyright © 2017–2019 Eclipse Foundation. All rights reserved.