Class PersistenceTypeDescriptionMemberPrimitiveDefinition.Default
java.lang.Object
one.microstream.persistence.types.PersistenceTypeDescriptionMemberPrimitiveDefinition.Default
- All Implemented Interfaces:
PersistenceTypeDescriptionMember
,PersistenceTypeDescriptionMemberPrimitiveDefinition
- Direct Known Subclasses:
PersistenceTypeDefinitionMemberPrimitiveDefinition.Default
- Enclosing interface:
- PersistenceTypeDescriptionMemberPrimitiveDefinition
public static class PersistenceTypeDescriptionMemberPrimitiveDefinition.Default extends Object implements PersistenceTypeDescriptionMemberPrimitiveDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
PersistenceTypeDescriptionMember.IdentityHashEqualator
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMemberPrimitiveDefinition
PersistenceTypeDescriptionMemberPrimitiveDefinition.Default
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
assembleTypeDescription(PersistenceTypeDescriptionMemberAppender assembler)
boolean
equalsStructure(PersistenceTypeDescriptionMember other)
Structure means equal order of members by type name and simple name.
Not qualifier, since that is only required for intra-type field identificationboolean
hasReferences()
boolean
isEnumConstant()
boolean
isInstanceMember()
boolean
isPrimitive()
boolean
isPrimitiveDefinition()
boolean
isReference()
boolean
isValidPersistentLength(long persistentLength)
String
name()
The simple or "primary" name of the member, if applicable.long
persistentMaximumLength()
Returns the highest possible length value that a member of the persistent form for values of the type represented by this instance can have.long
persistentMinimumLength()
Returns the lowest possible length value that a member of the persistent form for values of the type represented by this instance can have.String
primitiveDefinition()
String
qualifier()
A type-internal qualifier to distinct different members with equal "primary" name.String
typeName()
void
validatePersistentLength(long persistentLength)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
isFixedLength, isIdentical, isVariableLength
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMemberPrimitiveDefinition
createDefinitionMember, equalsDescription, identifier
-
Constructor Details
-
Method Details
-
primitiveDefinition
- Specified by:
primitiveDefinition
in interfacePersistenceTypeDescriptionMemberPrimitiveDefinition
-
assembleTypeDescription
- Specified by:
assembleTypeDescription
in interfacePersistenceTypeDescriptionMember
-
persistentMinimumLength
public long persistentMinimumLength()Description copied from interface:PersistenceTypeDescriptionMember
Returns the lowest possible length value that a member of the persistent form for values of the type represented by this instance can have. The precise meaning of the length value depends on the actual persistence form.- Specified by:
persistentMinimumLength
in interfacePersistenceTypeDescriptionMember
- Returns:
- the persistent form length of null if variable length.
- See Also:
PersistenceTypeDescriptionMember.persistentMaximumLength()
-
persistentMaximumLength
public long persistentMaximumLength()Description copied from interface:PersistenceTypeDescriptionMember
Returns the highest possible length value that a member of the persistent form for values of the type represented by this instance can have. The precise meaning of the length value depends on the actual persistence form.- Specified by:
persistentMaximumLength
in interfacePersistenceTypeDescriptionMember
- Returns:
- the persistent form length of null if variable length.
- See Also:
PersistenceTypeDescriptionMember.persistentMinimumLength()
-
isValidPersistentLength
public boolean isValidPersistentLength(long persistentLength)- Specified by:
isValidPersistentLength
in interfacePersistenceTypeDescriptionMember
-
equalsStructure
Description copied from interface:PersistenceTypeDescriptionMember
Structure means equal order of members by type name and simple name.
Not qualifier, since that is only required for intra-type field identification- Specified by:
equalsStructure
in interfacePersistenceTypeDescriptionMember
- Parameters:
other
- the description to compare to- Returns:
- if this and the other description's structure are equal
- See Also:
PersistenceTypeDescriptionMember.equalDescription(PersistenceTypeDescriptionMember, PersistenceTypeDescriptionMember)
-
typeName
- Specified by:
typeName
in interfacePersistenceTypeDescriptionMember
-
qualifier
Description copied from interface:PersistenceTypeDescriptionMember
A type-internal qualifier to distinct different members with equal "primary" name. E.g. reflection-based type handling where fields names are only unique in combination with their declaring class.May be
null
if not applicable.- Specified by:
qualifier
in interfacePersistenceTypeDescriptionMember
- Returns:
- the member's qualifier string to ensure a unique
PersistenceTypeDescriptionMember.identifier()
in a group of members.
-
name
Description copied from interface:PersistenceTypeDescriptionMember
The simple or "primary" name of the member, if applicable. E.g. "lastName".May be
null
if not applicable.- Specified by:
name
in interfacePersistenceTypeDescriptionMember
- Returns:
- the member's simple name.
-
isReference
public final boolean isReference()- Specified by:
isReference
in interfacePersistenceTypeDescriptionMember
- Returns:
- if this member directly is a reference.
-
isPrimitive
public final boolean isPrimitive()- Specified by:
isPrimitive
in interfacePersistenceTypeDescriptionMember
- Returns:
- if this member is primitive value.
-
isPrimitiveDefinition
public final boolean isPrimitiveDefinition()- Specified by:
isPrimitiveDefinition
in interfacePersistenceTypeDescriptionMember
- Returns:
- if this member is a primitive type definition instead of a field definition.
-
isEnumConstant
public final boolean isEnumConstant()- Specified by:
isEnumConstant
in interfacePersistenceTypeDescriptionMember
- Returns:
- if this member is a enum constant name definition instead of an isntance field definition.
-
hasReferences
public final boolean hasReferences()- Specified by:
hasReferences
in interfacePersistenceTypeDescriptionMember
- Returns:
- if this field contains references. Either because it is a reference itself,
see
PersistenceTypeDescriptionMember.isReference()
, or because it is a complex type that contains one or more nested members that have references.
-
validatePersistentLength
public void validatePersistentLength(long persistentLength)- Specified by:
validatePersistentLength
in interfacePersistenceTypeDescriptionMember
-
isInstanceMember
public final boolean isInstanceMember()- Specified by:
isInstanceMember
in interfacePersistenceTypeDescriptionMember
- Specified by:
isInstanceMember
in interfacePersistenceTypeDescriptionMemberPrimitiveDefinition
-