Cumulus4j API
(1.1.0)

org.cumulus4j.store.model
Class IndexEntryContainerSize

java.lang.Object
  extended by org.cumulus4j.store.model.IndexEntry
      extended by org.cumulus4j.store.model.IndexEntryContainerSize
All Implemented Interfaces:
StoreCallback

public class IndexEntryContainerSize
extends IndexEntry

Persistent index information for the size of fields of type Collection/Map.


Constructor Summary
IndexEntryContainerSize()
           
 
Method Summary
 ClassMeta getClassMeta()
          Get the ClassMeta of the concrete type of the instance containing the field.
 Long getIndexKey()
          Get the value which is indexed by this instance.
protected  void setIndexKey(Object indexKey)
           
 
Methods inherited from class org.cumulus4j.store.model.IndexEntry
equals, getFieldMeta, getIndexEntryID, getIndexValue, getKeyID, getKeyStoreRefID, getPersistenceManager, hashCode, jdoPreStore, setClassMeta, setFieldMeta, setIndexValue, setKeyID, setKeyStoreRefID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexEntryContainerSize

public IndexEntryContainerSize()
Method Detail

getIndexKey

public Long getIndexKey()
Description copied from class: IndexEntry
Get the value which is indexed by this instance. It serves as 2nd part of the unique key together with the property fieldMeta.

Specified by:
getIndexKey in class IndexEntry
Returns:
the key.

setIndexKey

protected void setIndexKey(Object indexKey)
Specified by:
setIndexKey in class IndexEntry

getClassMeta

public ClassMeta getClassMeta()
Get the ClassMeta of the concrete type of the instance containing the field.

If a field is declared in a super-class, all sub-classes have it, too. But when querying instances of a sub-class (either as candidate-class or in a relation (as concrete type of the field/property), only this given sub-class and its sub-classes should be found.

The ClassMeta here is either the same as fieldMeta.classMeta (if it is an instance of the class declaring the field) or a ClassMeta of a sub-class of fieldMeta.classMeta.

The IndexEntryContainerSize always uses the FieldMeta.classMeta as classMeta.

Overrides:
getClassMeta in class IndexEntry
Returns:
the ClassMeta of the concrete type of the instance containing the field.

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.