|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.model.jdo.impl.PersistenceElementImpl
com.sun.jdo.api.persistence.model.jdo.impl.PersistenceMemberElementImpl
com.sun.jdo.api.persistence.model.jdo.impl.PersistenceFieldElementImpl
public class PersistenceFieldElementImpl
| Field Summary |
|---|
| Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
ADD, REMOVE, SET |
| Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElementProperties |
|---|
PROP_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 Summary | |
|---|---|
PersistenceFieldElementImpl()
Create new PersistenceFieldElementImpl with no corresponding name. |
|
PersistenceFieldElementImpl(String name)
Creates new PersistenceFieldElementImpl with the corresponding name |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sun.jdo.api.persistence.model.jdo.impl.PersistenceMemberElementImpl |
|---|
firePropertyChange, fireVetoableChange |
| Methods inherited from class com.sun.jdo.api.persistence.model.jdo.impl.PersistenceElementImpl |
|---|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Constructor Detail |
|---|
public PersistenceFieldElementImpl()
public PersistenceFieldElementImpl(String name)
name - the name of the element| Method Detail |
|---|
public 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.DERIVED
ModelException - if impossiblepublic boolean isReadSensitive()
getPersistenceType returns
DERIVED
isReadSensitive 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.DERIVED
public 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
DERIVED
ModelException - if impossiblesetWriteSensitive(boolean),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDpublic boolean isWriteSensitive()
getPersistenceType returns
DERIVED
isWriteSensitive 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.DERIVED
public 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
DERIVED
ModelException - 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 not
ModelException - if impossiblePersistenceClassElementImpl.getKeyClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||