com.sun.jdo.api.persistence.model.jdo
Interface FieldGroupElement.Impl

All Superinterfaces:
PersistenceElement.Impl, PersistenceMemberElement.Impl
All Known Subinterfaces:
ConcurrencyGroupElement.Impl
All Known Implementing Classes:
ConcurrencyGroupElementImpl, FieldGroupElementImpl
Enclosing class:
FieldGroupElement

public static interface FieldGroupElement.Impl
extends PersistenceMemberElement.Impl

Pluggable implementation of the storage of field element properties.

See Also:
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
 void changeFields(PersistenceFieldElement[] fields, int action)
          Change the set of fields.
 PersistenceFieldElement getField(String name)
          Find a field by name.
 PersistenceFieldElement[] getFields()
          Get all fields.
 
Methods inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
 

Method Detail

changeFields

void changeFields(PersistenceFieldElement[] fields,
                  int action)
                  throws ModelException
Change the set of fields.

Parameters:
fields - the new fields
action - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SET
Throws:
ModelException - if impossible

getFields

PersistenceFieldElement[] getFields()
Get all fields.

Returns:
the fields

getField

PersistenceFieldElement getField(String name)
Find a field by name.

Parameters:
name - the name to match
Returns:
the field, or null if it does not exist


Copyright © 2012 GlassFish Community. All Rights Reserved.