Package javax.jdo.metadata
Interface CollectionMetadata
- All Superinterfaces:
Metadata
Represents details of a collection in a field/property in a class.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for whether the element is dependentAccessor for the element type.Accessor for whether the element is embedded.Accessor for whether the element is serialised.setDependentElement
(boolean val) Method to set whether the element is dependent.setElementType
(String type) Method to set the name of the element type.setEmbeddedElement
(boolean val) Method to set whether the element is embedded.setSerializedElement
(boolean val) Method to set whether the element is serialised.Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setElementType
Method to set the name of the element type.- Parameters:
type
- Name of the element type- Returns:
- This metadata object
-
getElementType
String getElementType()Accessor for the element type.- Returns:
- The element type
-
setEmbeddedElement
Method to set whether the element is embedded.- Parameters:
val
- Whether it is embedded- Returns:
- This metadata object
-
getEmbeddedElement
Boolean getEmbeddedElement()Accessor for whether the element is embedded.- Returns:
- whether the element is embedded
-
setSerializedElement
Method to set whether the element is serialised.- Parameters:
val
- Whether it is serialised- Returns:
- This metadata object
-
getSerializedElement
Boolean getSerializedElement()Accessor for whether the element is serialised.- Returns:
- whether the element is serialised
-
setDependentElement
Method to set whether the element is dependent.- Parameters:
val
- Whether it is dependent- Returns:
- This metadata object
-
getDependentElement
Boolean getDependentElement()Accessor for whether the element is dependent- Returns:
- whether the element is dependent
-