Package com.db4o.internal
Class TranslatedAspect
- java.lang.Object
-
- com.db4o.internal.ClassAspect
-
- com.db4o.internal.FieldMetadata
-
- com.db4o.internal.TranslatedAspect
-
- All Implemented Interfaces:
StoredField
public final class TranslatedAspect extends FieldMetadata
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.FieldMetadata
_fieldType, _fieldTypeID, _isArray
-
Fields inherited from class com.db4o.internal.ClassAspect
_handle
-
-
Constructor Summary
Constructors Constructor Description TranslatedAspect(ClassMetadata containingClass, ObjectTranslator translator)
TranslatedAspect(ClassMetadata containingClass, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(UnmarshallingContext context)
boolean
alive()
AspectType
aspectType()
boolean
canUseNullBitmap()
java.lang.Object
construct(ObjectReferenceContext context)
void
deactivate(ActivationContext context)
boolean
equals(java.lang.Object obj)
static java.lang.String
fieldNameFor(ObjectTranslator translator)
java.lang.Object
getOn(Transaction a_trans, java.lang.Object a_OnObject)
java.lang.Object
getOrCreate(Transaction a_trans, java.lang.Object a_OnObject)
dirty hack for com.db4o.types some of them (BlobImpl) need to be set automatically TODO: Derive from FieldMetadata for Db4oTypesint
hashCode()
protected java.lang.Object
indexEntryFor(java.lang.Object indexEntry)
protected Indexable4
indexHandler(ObjectContainerBase stream)
void
initializeTranslator(ObjectTranslator translator)
boolean
isObjectConstructor()
-
Methods inherited from class com.db4o.internal.FieldMetadata
addFieldIndex, addIndexEntry, addIndexEntry, attemptUpdate, canBeDisabled, canLoadByIndex, canUpdateFast, cascadeActivation, cascadingTarget, coerce, collectIDs, container, containingClass, createFieldIndexKey, createIndex, defragAspect, delete, dropIndex, dropIndex, fieldType, fieldTypeID, get, get, getHandler, getIndex, getName, getStoredType, hasConfig, hasIndex, init, init, initIndex, isArray, isPrimitive, linkLength, loadFieldTypeById, marshall, needsArrayAndPrimitiveInfo, newBTree, prepareComparison, qField, read, readIndexEntry, rebuildIndexForClass, rebuildIndexForObject, rebuildIndexForWriter, reflector, removeIndexEntry, rename, search, set, setAvailable, toString, translatorStoredClass, traverseValues, traverseValues, typeHandlerForClass, updating, wrapHandlerToArrays
-
Methods inherited from class com.db4o.internal.ClassAspect
checkEnabled, disableFromAspectCountVersion, incrementOffset, isEnabledOn, isVirtual, setHandle
-
-
-
-
Constructor Detail
-
TranslatedAspect
public TranslatedAspect(ClassMetadata containingClass, java.lang.String name)
-
TranslatedAspect
public TranslatedAspect(ClassMetadata containingClass, ObjectTranslator translator)
-
-
Method Detail
-
initializeTranslator
public void initializeTranslator(ObjectTranslator translator)
-
alive
public boolean alive()
- Overrides:
alive
in classFieldMetadata
-
fieldNameFor
public static java.lang.String fieldNameFor(ObjectTranslator translator)
-
canUseNullBitmap
public boolean canUseNullBitmap()
- Overrides:
canUseNullBitmap
in classFieldMetadata
-
deactivate
public void deactivate(ActivationContext context)
- Overrides:
deactivate
in classFieldMetadata
-
getOn
public java.lang.Object getOn(Transaction a_trans, java.lang.Object a_OnObject)
- Overrides:
getOn
in classFieldMetadata
-
getOrCreate
public java.lang.Object getOrCreate(Transaction a_trans, java.lang.Object a_OnObject)
Description copied from class:FieldMetadata
dirty hack for com.db4o.types some of them (BlobImpl) need to be set automatically TODO: Derive from FieldMetadata for Db4oTypes- Overrides:
getOrCreate
in classFieldMetadata
-
activate
public void activate(UnmarshallingContext context)
- Overrides:
activate
in classFieldMetadata
-
indexEntryFor
protected java.lang.Object indexEntryFor(java.lang.Object indexEntry)
- Overrides:
indexEntryFor
in classFieldMetadata
-
indexHandler
protected Indexable4 indexHandler(ObjectContainerBase stream)
- Overrides:
indexHandler
in classFieldMetadata
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classFieldMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFieldMetadata
-
aspectType
public AspectType aspectType()
- Overrides:
aspectType
in classFieldMetadata
-
isObjectConstructor
public boolean isObjectConstructor()
-
construct
public java.lang.Object construct(ObjectReferenceContext context)
-
-