org.cumulus4j.store.model
Class EmbeddedClassMeta
java.lang.Object
org.cumulus4j.store.model.ClassMeta
org.cumulus4j.store.model.EmbeddedClassMeta
- All Implemented Interfaces:
- DetachCallback, LoadCallback, StoreCallback
public class EmbeddedClassMeta
- extends ClassMeta
Methods inherited from class org.cumulus4j.store.model.ClassMeta |
equals, getClassID, getClassName, getClassName, getDataNucleusClassMetaData, getFieldMeta, getFieldMeta, getFieldMeta, getFieldMetas, getFieldName2FieldMeta, getPackageName, getPersistenceManager, getSimpleClassName, getSuperClassMeta, getUniqueScope, hashCode, jdoPostLoad, jdoPreDetach, jdoPreStore, setSuperClassMeta, setUniqueScope, toString |
UNIQUE_SCOPE_PREFIX_EMBEDDED_CLASS_META
protected static final String UNIQUE_SCOPE_PREFIX_EMBEDDED_CLASS_META
EmbeddedClassMeta
protected EmbeddedClassMeta()
EmbeddedClassMeta
public EmbeddedClassMeta(ExecutionContext executionContext,
ClassMeta nonEmbeddedClassMeta,
FieldMeta embeddingFieldMeta)
addFieldMeta
public void addFieldMeta(FieldMeta fieldMeta)
- Overrides:
addFieldMeta
in class ClassMeta
removeFieldMeta
public void removeFieldMeta(FieldMeta fieldMeta)
- Overrides:
removeFieldMeta
in class ClassMeta
getNonEmbeddedClassMeta
public ClassMeta getNonEmbeddedClassMeta()
- Get the non-embedded
ClassMeta
of which this instance is a reference wihtin the scope of
the getEmbeddingFieldMeta()
.
- Returns:
- the non-embedded
ClassMeta
(the one representing FCOs). Never null
.
getEmbeddingFieldMeta
public FieldMeta getEmbeddingFieldMeta()
- Get the field embedding this pseudo-class.
This may be an EmbeddedFieldMeta
, if this is a nested-embedded-field-situation.
- Returns:
- the field embedding this pseudo-class. Never
null
.
getEmbeddedFieldMetaForNonEmbeddedFieldMeta
public EmbeddedFieldMeta getEmbeddedFieldMetaForNonEmbeddedFieldMeta(FieldMeta fieldMeta)
- Get the
FieldMeta
managed by this instances corresponding to the given fieldMeta
.
The given fieldMeta
can be a sub-FieldMeta (not directly assigned to the corresponding ClassMeta,
but assigned to one of its FieldMetas).
- Parameters:
fieldMeta
- a non-embedded FieldMeta
(i.e. not an instance of EmbeddedFieldMeta
).
- Returns:
getFieldMetasWithSubFieldMetas
protected Collection<FieldMeta> getFieldMetasWithSubFieldMetas()
populateFieldMetasWithSubFieldMetas
protected void populateFieldMetasWithSubFieldMetas(Collection<FieldMeta> result,
FieldMeta fieldMeta)
jdoPostDetach
public void jdoPostDetach(Object o)
- Specified by:
jdoPostDetach
in interface DetachCallback
- Overrides:
jdoPostDetach
in class ClassMeta
setNonEmbeddedClassMetaPostponedInPostDetach
protected void setNonEmbeddedClassMetaPostponedInPostDetach(PostDetachRunnableManager postDetachRunnableManager,
DetachedClassMetaModel detachedClassMetaModel,
int postponeCounter)
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.