Class PersistenceTypeDescriptionMemberField.Abstract
java.lang.Object
one.microstream.persistence.types.PersistenceTypeDescriptionMemberField.Abstract
- All Implemented Interfaces:
PersistenceTypeDescriptionMember,PersistenceTypeDescriptionMemberField
- Direct Known Subclasses:
PersistenceTypeDescriptionMemberFieldGeneric.Abstract,PersistenceTypeDescriptionMemberFieldReflective.Default
- Enclosing interface:
- PersistenceTypeDescriptionMemberField
public abstract static class PersistenceTypeDescriptionMemberField.Abstract extends Object implements PersistenceTypeDescriptionMemberField
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
PersistenceTypeDescriptionMember.IdentityHashEqualatorNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMemberField
PersistenceTypeDescriptionMemberField.Abstract -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanhasReferences()Stringidentifier()The name of the member identifying it in its parent group of members.
E.g.booleanisEnumConstant()booleanisInstanceMember()booleanisPrimitive()booleanisPrimitiveDefinition()booleanisReference()booleanisValidPersistentLength(long persistentLength)Stringname()The simple or "primary" name of the member.longpersistentMaximumLength()Returns the highest possible length value that a member of the persistent form for values of the type represented by this instance can have.longpersistentMinimumLength()Returns the lowest possible length value that a member of the persistent form for values of the type represented by this instance can have.Stringqualifier()A type-internal qualifier to distinct different members with equal "primary" name.StringtoString()StringtypeName()voidvalidatePersistentLength(long persistentLength)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
assembleTypeDescription, createDefinitionMember, equalsDescription, equalsStructure, isFixedLength, isIdentical, isVariableLength
-
Constructor Details
-
Method Details
-
typeName
- Specified by:
typeNamein interfacePersistenceTypeDescriptionMember- Specified by:
typeNamein interfacePersistenceTypeDescriptionMemberField
-
qualifier
Description copied from interface:PersistenceTypeDescriptionMemberFieldA 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 never be
null.- Specified by:
qualifierin interfacePersistenceTypeDescriptionMember- Specified by:
qualifierin interfacePersistenceTypeDescriptionMemberField- Returns:
- the member's qualifier string to ensure a unique
PersistenceTypeDescriptionMember.identifier()in a group of member fields.
-
name
Description copied from interface:PersistenceTypeDescriptionMemberFieldThe simple or "primary" name of the member. E.g. "lastName".May never be
null.- Specified by:
namein interfacePersistenceTypeDescriptionMember- Specified by:
namein interfacePersistenceTypeDescriptionMemberField- Returns:
- the member field's simple name.
-
identifier
Description copied from interface:PersistenceTypeDescriptionMemberThe name of the member identifying it in its parent group of members.
E.g. "com.my.app.entities.Person#lastname".May never be
null.- Specified by:
identifierin interfacePersistenceTypeDescriptionMember- Returns:
- the member's uniquely identifying name.
-
isReference
public final boolean isReference()- Specified by:
isReferencein interfacePersistenceTypeDescriptionMember- Returns:
- if this member directly is a reference.
-
isPrimitive
public final boolean isPrimitive()- Specified by:
isPrimitivein interfacePersistenceTypeDescriptionMember- Returns:
- if this member is primitive value.
-
isPrimitiveDefinition
public final boolean isPrimitiveDefinition()- Specified by:
isPrimitiveDefinitionin interfacePersistenceTypeDescriptionMember- Returns:
- if this member is a primitive type definition instead of a field definition.
-
isEnumConstant
public final boolean isEnumConstant()- Specified by:
isEnumConstantin interfacePersistenceTypeDescriptionMember- Returns:
- if this member is a enum constant name definition instead of an isntance field definition.
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferencesin 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.
-
persistentMinimumLength
public long persistentMinimumLength()Description copied from interface:PersistenceTypeDescriptionMemberReturns 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:
persistentMinimumLengthin interfacePersistenceTypeDescriptionMember- Returns:
- the persistent form length of null if variable length.
- See Also:
PersistenceTypeDescriptionMember.persistentMaximumLength()
-
persistentMaximumLength
public long persistentMaximumLength()Description copied from interface:PersistenceTypeDescriptionMemberReturns 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:
persistentMaximumLengthin interfacePersistenceTypeDescriptionMember- Returns:
- the persistent form length of null if variable length.
- See Also:
PersistenceTypeDescriptionMember.persistentMinimumLength()
-
isValidPersistentLength
public boolean isValidPersistentLength(long persistentLength)- Specified by:
isValidPersistentLengthin interfacePersistenceTypeDescriptionMember
-
validatePersistentLength
public void validatePersistentLength(long persistentLength)- Specified by:
validatePersistentLengthin interfacePersistenceTypeDescriptionMember
-
isInstanceMember
public final boolean isInstanceMember()- Specified by:
isInstanceMemberin interfacePersistenceTypeDescriptionMember- Specified by:
isInstanceMemberin interfacePersistenceTypeDescriptionMemberField
-
toString
-