public class PersistenceFieldElementImpl extends PersistenceMemberElementImpl implements PersistenceFieldElement.Impl
ADD, REMOVE, SETPROP_CARDINALITY, PROP_COLLECTION_CLASS, PROP_DELETE_ACTION, PROP_ELEMENT_CLASS, PROP_FIELDS, PROP_GROUPS, PROP_IDENTITY, PROP_INVERSE_FIELD, PROP_KEY_CLASS, PROP_KEY_FIELD, PROP_MODIFIED, PROP_NAME, PROP_PERSISTENCE, PROP_PREFETCH, PROP_SENSITIVITY, PROP_UPDATE_ACTION| Constructor and Description |
|---|
PersistenceFieldElementImpl()
Create new PersistenceFieldElementImpl with no corresponding name.
|
PersistenceFieldElementImpl(String name)
Creates new PersistenceFieldElementImpl with the corresponding name
|
| 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.
|
firePropertyChange, fireVetoableChangeaddPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNamepublic PersistenceFieldElementImpl()
public PersistenceFieldElementImpl(String name)
name - the name of the elementpublic int getPersistenceType()
getPersistenceType in interface PersistenceFieldElement.ImplPersistenceFieldElement.PERSISTENT or
PersistenceFieldElement.DERIVED. The default is PERSISTENT.public void setPersistenceType(int type)
throws ModelException
setPersistenceType in interface PersistenceFieldElement.Impltype - - an integer indicating the persistence type, one of:
PersistenceFieldElement.PERSISTENT or
PersistenceFieldElement.DERIVEDModelException - if impossiblepublic boolean isReadSensitive()
getPersistenceType returns
DERIVEDisReadSensitive in interface PersistenceFieldElement.Impltrue if the field is read sensitive,
false if it is not or if the persistence type is not
derivedisWriteSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDpublic void setReadSensitive(boolean flag)
throws ModelException
setReadSensitive in interface PersistenceFieldElement.Implflag - - 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.DERIVEDpublic boolean isWriteSensitive()
getPersistenceType returns
DERIVEDisWriteSensitive in interface PersistenceFieldElement.Impltrue if the field is write sensitive,
false if it is not or if the persistence type is not
derivedisReadSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDpublic void setWriteSensitive(boolean flag)
throws ModelException
setWriteSensitive in interface PersistenceFieldElement.Implflag - - 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.DERIVEDpublic boolean isKey()
isKey in interface PersistenceFieldElement.Impltrue if the field is a key field,
false otherwisePersistenceClassElementImpl.getKeyClass()public void setKey(boolean flag)
throws ModelException
setKey in interface PersistenceFieldElement.Implflag - - if true, the field element is marked
as a key field; otherwise, it is notModelException - if impossiblePersistenceClassElementImpl.getKeyClass()Copyright © 2017–2019 Eclipse Foundation. All rights reserved.