Package com.db4o.internal
Class PrimitiveTypeMetadata
- java.lang.Object
-
- com.db4o.internal.Identifiable
-
- com.db4o.internal.PersistentBase
-
- com.db4o.internal.ClassMetadata
-
- com.db4o.internal.PrimitiveTypeMetadata
-
- All Implemented Interfaces:
StoredClass
,LinkLengthAware
,Persistent
- Direct Known Subclasses:
ObjectTypeMetadata
public class PrimitiveTypeMetadata extends ClassMetadata
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.ClassMetadata
_ancestor, _aspects, _typeHandler
-
Fields inherited from class com.db4o.internal.Identifiable
_id, _state
-
-
Constructor Summary
Constructors Constructor Description PrimitiveTypeMetadata(ObjectContainerBase container)
PrimitiveTypeMetadata(ObjectContainerBase container, TypeHandler4 handler, int id, ReflectClass classReflector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cascadeActivation(ActivationContext context)
java.lang.Object
deepClone(java.lang.Object context)
void
defragment(DefragmentContext context)
TypeHandler4
delegateTypeHandler(Context context)
void
delete(DeleteContext context)
boolean
descendOnCascadingActivation()
protected AspectTraversalStrategy
detectAspectTraversalStrategy()
boolean
equals(java.lang.Object obj)
boolean
hasClassIndex()
returns true if this StoredClass has a class index.int
hashCode()
boolean
hasIdentity()
java.lang.Object
instantiate(UnmarshallingContext context)
java.lang.Object
instantiateTransient(UnmarshallingContext context)
boolean
isArray()
boolean
isStronglyTyped()
no any, primitive, array or other tricks.PreparedComparison
prepareComparison(Context context, java.lang.Object source)
TypeHandler4
readCandidateHandler(QueryingReadContext context)
java.lang.String
toString()
java.lang.Object
wrapWithTransactionContext(Transaction transaction, java.lang.Object value)
boolean
writeObjectBegin()
-
Methods inherited from class com.db4o.internal.ClassMetadata
addFieldIndices, adjustCollectionDepthToBorders, adjustUpdateDepth, aspectCount, aspectsAreInitialized, aspectsAreNull, callConstructor, cascadeOnDelete, cascadeOnDeleteTernary, cascadesOnDeleteOrUpdate, checkType, classReflector, collectConstraints, collectIDs, collectIDs, collectIDs, config, configOrAncestorConfig, container, correctHandlerVersion, deactivate, declaredAspectCount, defragClass, defragObject, dispatchEvent, dropClassIndex, fieldByName, fieldMetadataForName, forceDeactivation, generateCommitTimestamps, generateUUIDs, getAncestor, getComparableObject, getHigherHierarchy, getHigherOrCommonHierarchy, getIdentifier, getIDs, getIDs, getName, getParentStoredClass, getStoredFields, hasEventRegistered, hasField, hasObjectConstructor, hasVersionField, holdsAnyClass, index, indexEntryCount, instanceCount, instanceCount, isAssignableFrom, isDb4oTypeImpl, isDirty, isInternal, isModified, isStorable, isStruct, isTranslated, isValueType, nameToWrite, onInstantiate, ownLength, readAspectCount, readClass, readName1, readThis, readVirtualAttributes, reflector, refresh, rename, seekCandidateHandler, seekToField, seekToField, setAncestor, storedField, toStaticField, traverseAllAspects, traverseDeclaredAspects, traverseDeclaredFields, typeHandler, updateDepthFromConfig, updateExistingStaticField, writeThis
-
Methods inherited from class com.db4o.internal.PersistentBase
free, idSystem, linkLength, newWriteBuffer, produceReadBuffer, produceWriteBuffer, read, read, readBufferById, slotChangeFactory, write, writeOwnID
-
Methods inherited from class com.db4o.internal.Identifiable
beginProcessing, endProcessing, getID, isActive, isNew, setID, setStateClean, setStateDeactivated, setStateDirty
-
-
-
-
Constructor Detail
-
PrimitiveTypeMetadata
public PrimitiveTypeMetadata(ObjectContainerBase container, TypeHandler4 handler, int id, ReflectClass classReflector)
-
PrimitiveTypeMetadata
public PrimitiveTypeMetadata(ObjectContainerBase container)
-
-
Method Detail
-
cascadeActivation
public void cascadeActivation(ActivationContext context)
- Overrides:
cascadeActivation
in classClassMetadata
-
descendOnCascadingActivation
public boolean descendOnCascadingActivation()
- Overrides:
descendOnCascadingActivation
in classClassMetadata
-
delete
public void delete(DeleteContext context) throws Db4oIOException
- Overrides:
delete
in classClassMetadata
- Throws:
Db4oIOException
-
hasClassIndex
public boolean hasClassIndex()
Description copied from interface:StoredClass
returns true if this StoredClass has a class index.- Specified by:
hasClassIndex
in interfaceStoredClass
- Overrides:
hasClassIndex
in classClassMetadata
-
instantiate
public java.lang.Object instantiate(UnmarshallingContext context)
- Overrides:
instantiate
in classClassMetadata
-
instantiateTransient
public java.lang.Object instantiateTransient(UnmarshallingContext context)
- Overrides:
instantiateTransient
in classClassMetadata
-
isArray
public boolean isArray()
- Overrides:
isArray
in classClassMetadata
-
hasIdentity
public boolean hasIdentity()
- Overrides:
hasIdentity
in classClassMetadata
-
isStronglyTyped
public boolean isStronglyTyped()
Description copied from class:ClassMetadata
no any, primitive, array or other tricks. overridden in YapClassAny and YapClassPrimitive- Overrides:
isStronglyTyped
in classClassMetadata
-
prepareComparison
public PreparedComparison prepareComparison(Context context, java.lang.Object source)
- Overrides:
prepareComparison
in classClassMetadata
-
readCandidateHandler
public TypeHandler4 readCandidateHandler(QueryingReadContext context)
- Overrides:
readCandidateHandler
in classClassMetadata
-
writeObjectBegin
public final boolean writeObjectBegin()
- Overrides:
writeObjectBegin
in classClassMetadata
-
toString
public java.lang.String toString()
- Overrides:
toString
in classClassMetadata
-
defragment
public void defragment(DefragmentContext context)
- Overrides:
defragment
in classClassMetadata
-
wrapWithTransactionContext
public java.lang.Object wrapWithTransactionContext(Transaction transaction, java.lang.Object value)
- Overrides:
wrapWithTransactionContext
in classClassMetadata
-
delegateTypeHandler
public TypeHandler4 delegateTypeHandler(Context context)
- Overrides:
delegateTypeHandler
in classClassMetadata
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classIdentifiable
-
deepClone
public java.lang.Object deepClone(java.lang.Object context)
-
detectAspectTraversalStrategy
protected AspectTraversalStrategy detectAspectTraversalStrategy()
- Overrides:
detectAspectTraversalStrategy
in classClassMetadata
-
-