Cumulus4j API
(1.2.0)

org.cumulus4j.store.model
Class EmbeddedClassMeta

java.lang.Object
  extended by org.cumulus4j.store.model.ClassMeta
      extended by org.cumulus4j.store.model.EmbeddedClassMeta
All Implemented Interfaces:
DetachCallback, LoadCallback, StoreCallback

public class EmbeddedClassMeta
extends ClassMeta


Nested Class Summary
protected static class EmbeddedClassMeta.NamedQueries
           
 
Field Summary
protected static String UNIQUE_SCOPE_PREFIX_EMBEDDED_CLASS_META
           
 
Fields inherited from class org.cumulus4j.store.model.ClassMeta
attachedClassMetasInPostDetachThreadLocal, UNIQUE_SCOPE_CLASS_META
 
Constructor Summary
protected EmbeddedClassMeta()
           
  EmbeddedClassMeta(ExecutionContext executionContext, ClassMeta nonEmbeddedClassMeta, FieldMeta embeddingFieldMeta)
           
 
Method Summary
 void addFieldMeta(FieldMeta fieldMeta)
           
 EmbeddedFieldMeta getEmbeddedFieldMetaForNonEmbeddedFieldMeta(FieldMeta fieldMeta)
          Get the FieldMeta managed by this instances corresponding to the given fieldMeta.
 FieldMeta getEmbeddingFieldMeta()
          Get the field embedding this pseudo-class.
protected  Collection<FieldMeta> getFieldMetasWithSubFieldMetas()
           
 ClassMeta getNonEmbeddedClassMeta()
          Get the non-embedded ClassMeta of which this instance is a reference wihtin the scope of the getEmbeddingFieldMeta().
 void jdoPostDetach(Object o)
           
protected  void populateFieldMetasWithSubFieldMetas(Collection<FieldMeta> result, FieldMeta fieldMeta)
           
 void removeFieldMeta(FieldMeta fieldMeta)
           
protected  void setNonEmbeddedClassMetaPostponedInPostDetach(PostDetachRunnableManager postDetachRunnableManager, DetachedClassMetaModel detachedClassMetaModel, int postponeCounter)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNIQUE_SCOPE_PREFIX_EMBEDDED_CLASS_META

protected static final String UNIQUE_SCOPE_PREFIX_EMBEDDED_CLASS_META
Constructor Detail

EmbeddedClassMeta

protected EmbeddedClassMeta()

EmbeddedClassMeta

public EmbeddedClassMeta(ExecutionContext executionContext,
                         ClassMeta nonEmbeddedClassMeta,
                         FieldMeta embeddingFieldMeta)
Method Detail

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)

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.