public abstract class FieldGroupElement extends PersistenceMemberElement implements FieldElementHolder
Modifier and Type | Class and Description |
---|---|
static interface |
FieldGroupElement.Impl
Pluggable implementation of the storage of field element properties.
|
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 and Description |
---|
FieldGroupElement()
Create new FieldGroupElement with no implementation.
|
FieldGroupElement(FieldGroupElement.Impl impl,
PersistenceClassElement declaringClass)
Create new FieldGroupElement with the provided implementation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getDeclaringClass, hashCode, setDeclaringClass
addPropertyChangeListener, addVetoableChangeListener, compareTo, getImpl, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setImpl, setName, toString
public FieldGroupElement()
public FieldGroupElement(FieldGroupElement.Impl impl, PersistenceClassElement declaringClass)
impl
- the implementation to usedeclaringClass
- the class to attach topublic void addField(PersistenceFieldElement field) throws ModelException
addField
in interface FieldElementHolder
field
- the field to be addedModelException
- if impossiblepublic void addFields(PersistenceFieldElement[] fields) throws ModelException
addFields
in interface FieldElementHolder
fields
- the array of fields to be addedModelException
- if impossiblepublic void removeField(PersistenceFieldElement field) throws ModelException
removeField
in interface FieldElementHolder
field
- the field to be removedModelException
- if impossiblepublic void removeFields(PersistenceFieldElement[] fields) throws ModelException
removeFields
in interface FieldElementHolder
fields
- the array of fields to be removedModelException
- if impossiblepublic PersistenceFieldElement[] getFields()
getFields
in interface FieldElementHolder
public void setFields(PersistenceFieldElement[] fields) throws ModelException
setFields
in interface FieldElementHolder
fields
- the fields maintained by this holderModelException
- if impossiblepublic PersistenceFieldElement getField(String name)
getField
in interface FieldElementHolder
name
- the name of the field to be foundnull
if none existspublic boolean containsField(PersistenceFieldElement field)
containsField
in interface FieldElementHolder
field
- the field to be testedCopyright © 2021. All rights reserved.