Package com.db4o.internal
Class UUIDFieldMetadata
- java.lang.Object
-
- com.db4o.internal.ClassAspect
-
- com.db4o.internal.FieldMetadata
-
- com.db4o.internal.VirtualFieldMetadata
-
- com.db4o.internal.UUIDFieldMetadata
-
- All Implemented Interfaces:
StoredField
public class UUIDFieldMetadata extends VirtualFieldMetadata
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.FieldMetadata
_fieldType, _fieldTypeID, _isArray
-
Fields inherited from class com.db4o.internal.ClassAspect
_handle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFieldIndex(ObjectIdContextImpl context)
void
defragAspect(DefragmentContext context)
void
delete(DeleteContextImpl context, boolean isUpdate)
protected HardObjectReference
getHardObjectReferenceById(Transaction transaction, int parentId, byte[] signature)
HardObjectReference
getHardObjectReferenceBySignature(Transaction transaction, long longPart, byte[] signature)
BTree
getIndex(Transaction transaction)
boolean
hasIndex()
Returns whether this field has an index or not.int
linkLength(HandlerVersionContext context)
protected void
rebuildIndexForObject(LocalObjectContainer container, ClassMetadata classMetadata, int objectId)
-
Methods inherited from class com.db4o.internal.VirtualFieldMetadata
activate, alive, canBeDisabled, canUseNullBitmap, classReflector, deactivate, getHandler, getOrCreate, indexEntryFor, indexHandler, isVirtual, loadFieldTypeById, marshall, needsArrayAndPrimitiveInfo, readVirtualAttribute
-
Methods inherited from class com.db4o.internal.FieldMetadata
addIndexEntry, addIndexEntry, aspectType, attemptUpdate, canLoadByIndex, canUpdateFast, cascadeActivation, cascadingTarget, coerce, collectIDs, container, containingClass, createFieldIndexKey, createIndex, dropIndex, dropIndex, equals, fieldType, fieldTypeID, get, get, getName, getOn, getStoredType, hasConfig, hashCode, init, init, initIndex, isArray, isPrimitive, newBTree, prepareComparison, qField, read, readIndexEntry, rebuildIndexForClass, 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, setHandle
-
-
-
-
Method Detail
-
addFieldIndex
public void addFieldIndex(ObjectIdContextImpl context) throws FieldIndexException
- Specified by:
addFieldIndex
in classVirtualFieldMetadata
- Throws:
FieldIndexException
-
delete
public void delete(DeleteContextImpl context, boolean isUpdate)
- Specified by:
delete
in classVirtualFieldMetadata
-
hasIndex
public boolean hasIndex()
Description copied from interface:StoredField
Returns whether this field has an index or not.- Specified by:
hasIndex
in interfaceStoredField
- Overrides:
hasIndex
in classFieldMetadata
- Returns:
- true if this field has an index.
-
getIndex
public BTree getIndex(Transaction transaction)
- Overrides:
getIndex
in classFieldMetadata
-
rebuildIndexForObject
protected void rebuildIndexForObject(LocalObjectContainer container, ClassMetadata classMetadata, int objectId) throws FieldIndexException
- Overrides:
rebuildIndexForObject
in classFieldMetadata
- Throws:
FieldIndexException
-
linkLength
public int linkLength(HandlerVersionContext context)
- Overrides:
linkLength
in classFieldMetadata
-
getHardObjectReferenceBySignature
public final HardObjectReference getHardObjectReferenceBySignature(Transaction transaction, long longPart, byte[] signature)
-
getHardObjectReferenceById
protected final HardObjectReference getHardObjectReferenceById(Transaction transaction, int parentId, byte[] signature)
-
defragAspect
public void defragAspect(DefragmentContext context)
- Overrides:
defragAspect
in classFieldMetadata
-
-