|
||||||||||
| 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.PersistenceElementCollection
public class PersistenceElementCollection
| Constructor Summary | |
|---|---|
PersistenceElementCollection()
Create new PersistenceElementCollection with no owner, property, or template. |
|
PersistenceElementCollection(PersistenceElementImpl owner,
String propertyName,
Object[] template)
Creates new PersistenceElementCollection |
|
| Method Summary | |
|---|---|
void |
changeElements(List elements,
int action)
Change the set of elements. |
void |
changeElements(PersistenceElement[] elements,
int action)
Change the set of elements. |
PersistenceElement |
getElement(String name)
Returns the element with the supplied name from the collection of elements maintained by this collection. |
PersistenceElement[] |
getElements()
Returns the collection of elements maintained by this holder in the form of an array. |
PersistenceElementImpl |
getOwner()
Returns the owner of this collection. |
String |
getPropertyName()
Returns the property name of this collection. |
Object[] |
getTemplate()
Returns the template for the array of this collection. |
void |
setElements(PersistenceElement[] elements)
Set the collection of elements maintained by this holder to the supplied array. |
void |
setOwner(PersistenceElementImpl owner)
Set the owner of this collection to the supplied implementation. |
void |
setPropertyName(String propertyName)
Set the property name of this collection to the supplied name. |
void |
setTemplate(Object[] template)
Set the template for the array of this collection to the supplied array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceElementCollection()
public PersistenceElementCollection(PersistenceElementImpl owner,
String propertyName,
Object[] template)
| Method Detail |
|---|
public void changeElements(PersistenceElement[] elements,
int action)
throws ModelException
elements - the new elementsaction - PersistenceElement.Impl.ADD,
PersistenceElement.Impl.REMOVE, or
PersistenceElement.Impl.SET
ModelException - if impossible
public void changeElements(List elements,
int action)
throws ModelException
elements - the new elementsaction - PersistenceElement.Impl.ADD,
PersistenceElement.Impl.REMOVE, or
PersistenceElement.Impl.SET
ModelException - if impossiblepublic PersistenceElement[] getElements()
public PersistenceElement getElement(String name)
name - the name to match
null if none
existspublic PersistenceElementImpl getOwner()
public void setOwner(PersistenceElementImpl owner)
owner - the owner of this collectionpublic Object[] getTemplate()
public void setTemplate(Object[] template)
template - the typed template of this collectionpublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName - the property name for this collectionpublic void setElements(PersistenceElement[] elements)
elements - the collection of elements maintained by this holder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||