Package org.datanucleus.metadata
Class ContainerComponent
- java.lang.Object
-
- org.datanucleus.metadata.ContainerComponent
-
- All Implemented Interfaces:
java.io.Serializable
class ContainerComponent extends java.lang.Object implements java.io.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
Fields Modifier and Type Field Description protected AbstractClassMetaData
classMetaData
ClassMetaData for the component.protected java.lang.Boolean
dependent
Whether the component is dependent on the container (i.e should be deleted with the container).protected java.lang.Boolean
embedded
Whether the component is stored embedded.protected java.lang.Boolean
serialized
Whether the component is stored serialised.private static long
serialVersionUID
protected java.lang.String
typeName
Type of the component.
-
Constructor Summary
Constructors Constructor Description ContainerComponent()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getDependent()
java.lang.Boolean
getEmbedded()
java.lang.Boolean
getSerialized()
java.lang.String
getTypeName()
(package private) void
populate(java.lang.String packageName, ClassLoaderResolver clr, java.lang.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(java.lang.Boolean dependent)
void
setEmbedded(java.lang.Boolean embedded)
void
setSerialized(java.lang.Boolean serialized)
void
setTypeName(java.lang.String type)
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
embedded
protected java.lang.Boolean embedded
Whether the component is stored embedded.
-
serialized
protected java.lang.Boolean serialized
Whether the component is stored serialised.
-
dependent
protected java.lang.Boolean dependent
Whether the component is dependent on the container (i.e should be deleted with the container).
-
typeName
protected java.lang.String typeName
Type of the component.
-
classMetaData
protected AbstractClassMetaData classMetaData
ClassMetaData for the component.
-
-
Method Detail
-
getEmbedded
public java.lang.Boolean getEmbedded()
-
setEmbedded
public void setEmbedded(java.lang.Boolean embedded)
-
getSerialized
public java.lang.Boolean getSerialized()
-
setSerialized
public void setSerialized(java.lang.Boolean serialized)
-
getDependent
public java.lang.Boolean getDependent()
-
setDependent
public void setDependent(java.lang.Boolean dependent)
-
getTypeName
public java.lang.String getTypeName()
-
setTypeName
public void setTypeName(java.lang.String type)
-
populate
void populate(java.lang.String packageName, ClassLoaderResolver clr, java.lang.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.- Parameters:
packageName
- The package of the owning classclr
- ClassLoader resolverprimary
- Primary class loader
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-