|
||||||||||
| 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.FieldGroupElementImpl
public class FieldGroupElementImpl
| 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 | |
|---|---|
FieldGroupElementImpl()
Create new FieldGroupElementImpl with no corresponding name. |
|
FieldGroupElementImpl(String name)
Creates new FieldGroupElementImpl with the corresponding name |
|
| Method Summary | |
|---|---|
void |
changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields. |
PersistenceElementCollection |
getCollection()
Returns the field collection of this field group element. |
PersistenceFieldElement |
getField(String name)
Find a field by name. |
PersistenceFieldElement[] |
getFields()
Get all fields. |
void |
setCollection(PersistenceElementCollection collection)
Set the field collection of this field group element to the supplied collection. |
| 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 FieldGroupElementImpl()
public FieldGroupElementImpl(String name)
name - the name of the element| Method Detail |
|---|
public PersistenceFieldElement getField(String name)
getField in interface FieldGroupElement.Implname - the name to match
null if it does not existpublic PersistenceFieldElement[] getFields()
getFields in interface FieldGroupElement.Impl
public void changeFields(PersistenceFieldElement[] fields,
int action)
throws ModelException
changeFields in interface FieldGroupElement.Implfields - the new fieldsaction - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SET
ModelException - if impossiblepublic PersistenceElementCollection getCollection()
public void setCollection(PersistenceElementCollection collection)
collection - the field collection of this field group element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||