|
||||||||||
| 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.PersistenceElement
com.sun.jdo.api.persistence.model.jdo.PersistenceMemberElement
com.sun.jdo.api.persistence.model.jdo.FieldGroupElement
public abstract class FieldGroupElement
| Nested Class Summary | |
|---|---|
static interface |
FieldGroupElement.Impl
Pluggable implementation of the storage of field element properties. |
| Field Summary |
|---|
| 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 | |
|---|---|
FieldGroupElement()
Create new FieldGroupElement with no implementation. |
|
FieldGroupElement(FieldGroupElement.Impl impl,
PersistenceClassElement declaringClass)
Create new FieldGroupElement with the provided implementation. |
|
| Method Summary | |
|---|---|
void |
addField(PersistenceFieldElement field)
Add the supplied field to the collection of fields maintained by this holder. |
void |
addFields(PersistenceFieldElement[] fields)
Add the supplied fields to the collection of fields maintained by this holder. |
boolean |
containsField(PersistenceFieldElement field)
Tests whether the supplied field is in the collection of fields maintained by this holder. |
PersistenceFieldElement |
getField(String name)
Returns the field with the supplied name from the collection of fields maintained by this holder. |
PersistenceFieldElement[] |
getFields()
Returns the collection of fields maintained by this holder in the form of an array. |
void |
removeField(PersistenceFieldElement field)
Remove the supplied field from the collection of fields maintained by this holder. |
void |
removeFields(PersistenceFieldElement[] fields)
Removed the supplied fields from the collection of fields maintained by this holder. |
void |
setFields(PersistenceFieldElement[] fields)
Sets the collection of fields maintained by this holder to the contents of the supplied array. |
| Methods inherited from class com.sun.jdo.api.persistence.model.jdo.PersistenceMemberElement |
|---|
equals, getDeclaringClass, hashCode, setDeclaringClass |
| Methods inherited from class com.sun.jdo.api.persistence.model.jdo.PersistenceElement |
|---|
addPropertyChangeListener, addVetoableChangeListener, compareTo, getImpl, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setImpl, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldGroupElement()
public FieldGroupElement(FieldGroupElement.Impl impl,
PersistenceClassElement declaringClass)
impl - the implementation to usedeclaringClass - the class to attach to| Method Detail |
|---|
public void addField(PersistenceFieldElement field)
throws ModelException
addField in interface FieldElementHolderfield - the field to be added
ModelException - if impossible
public void addFields(PersistenceFieldElement[] fields)
throws ModelException
addFields in interface FieldElementHolderfields - the array of fields to be added
ModelException - if impossible
public void removeField(PersistenceFieldElement field)
throws ModelException
removeField in interface FieldElementHolderfield - the field to be removed
ModelException - if impossible
public void removeFields(PersistenceFieldElement[] fields)
throws ModelException
removeFields in interface FieldElementHolderfields - the array of fields to be removed
ModelException - if impossiblepublic PersistenceFieldElement[] getFields()
getFields in interface FieldElementHolder
public void setFields(PersistenceFieldElement[] fields)
throws ModelException
setFields in interface FieldElementHolderfields - the fields maintained by this holder
ModelException - if impossiblepublic PersistenceFieldElement getField(String name)
getField in interface FieldElementHoldername - the name of the field to be found
null if none existspublic boolean containsField(PersistenceFieldElement field)
containsField in interface FieldElementHolderfield - the field to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||