|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface PersistenceFieldElement.Impl
Pluggable implementation of the storage of field element properties.
PersistenceFieldElement.PersistenceFieldElement(com.sun.jdo.api.persistence.model.jdo.PersistenceFieldElement.Impl, com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement)| Field Summary |
|---|
| Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
ADD, REMOVE, SET |
| 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 interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Method Detail |
|---|
int getPersistenceType()
PersistenceFieldElement.PERSISTENT or
PersistenceFieldElement.DERIVED
void setPersistenceType(int type)
throws ModelException
type - - an integer indicating the persistence type, one of:
PersistenceFieldElement.PERSISTENT or PersistenceFieldElement.DERIVED
ModelException - if impossibleboolean isReadSensitive()
getPersistenceType returns
DERIVED
true if the field is read sensitive,
false if it is not or if the persistence type is not
derivedisWriteSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVED
void 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
DERIVED
ModelException - if impossiblesetWriteSensitive(boolean),
setPersistenceType(int),
PersistenceFieldElement.DERIVEDboolean isWriteSensitive()
getPersistenceType returns
DERIVED
true if the field is write sensitive,
false if it is not or if the persistence type is not
derivedisReadSensitive(),
setPersistenceType(int),
PersistenceFieldElement.DERIVED
void 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
DERIVED
ModelException - 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 not
ModelException - if impossiblePersistenceClassElement.getKeyClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||