public class FieldGroupElementImpl extends PersistenceMemberElementImpl implements FieldGroupElement.Impl
ADD, REMOVE, SETPROP_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 and Description |
|---|
FieldGroupElementImpl()
Create new FieldGroupElementImpl with no corresponding name.
|
FieldGroupElementImpl(String name)
Creates new FieldGroupElementImpl with the corresponding name
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
firePropertyChange, fireVetoableChangeaddPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNamepublic FieldGroupElementImpl()
public FieldGroupElementImpl(String name)
name - the name of the elementpublic PersistenceFieldElement getField(String name)
getField in interface FieldGroupElement.Implname - the name to matchnull if it does not existpublic PersistenceFieldElement[] getFields()
getFields in interface FieldGroupElement.Implpublic 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.SETModelException - if impossiblepublic PersistenceElementCollection getCollection()
public void setCollection(PersistenceElementCollection collection)
collection - the field collection of this field group elementCopyright © 2013. All Rights Reserved.