org.datanucleus.store.schema
Interface MapStoreSchemaData

All Superinterfaces:
StoreSchemaData

public interface MapStoreSchemaData
extends StoreSchemaData

Interface representing schema information for the datastore. Extends the basic StoreSchemaData (set of properties) to allow a Map of child elements (bidirectional).


Method Summary
 void addChild(StoreSchemaData child)
          Method to define a child component for this component.
 void clearChildren()
          Method to remove all children.
 StoreSchemaData getChild(java.lang.String key)
          Accessor for a child store metadata component at a key.
 java.util.Map getChildren()
          Accessor for a Map of child metadata components.
 int getNumberOfChildren()
          Accessor for the number of child metadata components.
 StoreSchemaData getParent()
          Accessor for the parent store metadata component for this (if any).
 void setParent(StoreSchemaData parent)
          Method to set the parentage of a component.
 
Methods inherited from interface org.datanucleus.store.schema.StoreSchemaData
addProperty, getProperty
 

Method Detail

setParent

void setParent(StoreSchemaData parent)
Method to set the parentage of a component.

Parameters:
parent - Parent component

getParent

StoreSchemaData getParent()
Accessor for the parent store metadata component for this (if any).

Returns:
Parent component

addChild

void addChild(StoreSchemaData child)
Method to define a child component for this component.

Parameters:
child - The component

clearChildren

void clearChildren()
Method to remove all children.


getChildren

java.util.Map getChildren()
Accessor for a Map of child metadata components.

Returns:
Child components.

getChild

StoreSchemaData getChild(java.lang.String key)
Accessor for a child store metadata component at a key.

Parameters:
key - Key of the child component
Returns:
The child component.

getNumberOfChildren

int getNumberOfChildren()
Accessor for the number of child metadata components.

Returns:
Number of child components.


Copyright © 2010. All Rights Reserved.