Class ContainerComponent
java.lang.Object
org.datanucleus.metadata.ContainerComponent
- All Implemented Interfaces:
Serializable
Representation of the details of an object stored in a container.
This can be an element in a collection/array, or the key/value of a Map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractClassMetaDataClassMetaData for the component.protected BooleanWhether the component is dependent on the container (i.e should be deleted with the container).protected BooleanWhether the component is stored embedded.protected BooleanWhether the component is stored serialised.private static final longprotected StringType of the component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidpopulate(String packageName, ClassLoaderResolver clr, ClassLoader primary) Method to update the "type" field to cater for it maybe being in the same package as the owning class, or being in java.lang as per JDO spec rules.voidsetDependent(Boolean dependent) voidsetEmbedded(Boolean embedded) voidsetSerialized(Boolean serialized) voidsetTypeName(String type) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
embedded
Whether the component is stored embedded. -
serialized
Whether the component is stored serialised. -
dependent
Whether the component is dependent on the container (i.e should be deleted with the container). -
typeName
Type of the component. -
classMetaData
ClassMetaData for the component.
-
-
Constructor Details
-
ContainerComponent
public ContainerComponent()Default constructor. Set fields using setters, before populate().
-
-
Method Details
-
getEmbedded
-
setEmbedded
-
getSerialized
-
setSerialized
-
getDependent
-
setDependent
-
getTypeName
-
setTypeName
-
populate
Method to update the "type" field to cater for it maybe being in the same package as the owning class, or being in java.lang as per JDO spec rules.- Parameters:
packageName- The package of the owning classclr- ClassLoader resolverprimary- Primary class loader
-
toString
-