Package org.datanucleus.metadata
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 AbstractClassMetaData
ClassMetaData for the component.protected Boolean
Whether the component is dependent on the container (i.e should be deleted with the container).protected Boolean
Whether the component is stored embedded.protected Boolean
Whether the component is stored serialised.private static final long
protected String
Type of the component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
populate
(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.void
setDependent
(Boolean dependent) void
setEmbedded
(Boolean embedded) void
setSerialized
(Boolean serialized) void
setTypeName
(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
-