Package javax.jdo.metadata
Interface FetchGroupMetadata
- All Superinterfaces:
Metadata
Represents a fetch group for a class.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for all fields/properties defined on the fetch group.getName()
Accessor for the fetch group name (set on construction).int
Accessor for the number of fields/properties defined for this fetch group.Accessor for whether to call post load for this fetch group.newFieldMetadata
(String name) Add a new field for this fetch group.newPropertyMetadata
(String name) Add a new property for this fetch group.setPostLoad
(boolean load) Method to set whether to call post load with this fetch groupMethods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
getName
String getName()Accessor for the fetch group name (set on construction).- Returns:
- The fetch group name
-
setPostLoad
Method to set whether to call post load with this fetch group- Parameters:
load
- Call post load- Returns:
- This metadata object
-
getPostLoad
Boolean getPostLoad()Accessor for whether to call post load for this fetch group.- Returns:
- Whether to call post-load
-
getMembers
MemberMetadata[] getMembers()Accessor for all fields/properties defined on the fetch group.- Returns:
- The members
-
getNumberOfMembers
int getNumberOfMembers()Accessor for the number of fields/properties defined for this fetch group.- Returns:
- The number of members
-
newFieldMetadata
Add a new field for this fetch group.- Parameters:
name
- Name of field- Returns:
- The FieldMetadata
-
newPropertyMetadata
Add a new property for this fetch group.- Parameters:
name
- Name of property- Returns:
- The PropertyMetadata
-