Interface BinaryField<T>
- All Superinterfaces:
PersistenceTypeDefinitionMember
,PersistenceTypeDefinitionMemberField
,PersistenceTypeDefinitionMemberFieldGeneric
,PersistenceTypeDescriptionMember
,PersistenceTypeDescriptionMemberField
,PersistenceTypeDescriptionMemberFieldGeneric
- All Known Subinterfaces:
BinaryField.Initializable<T>
- All Known Implementing Classes:
BinaryField.Abstract
,BinaryField.Default_boolean
,BinaryField.Default_byte
,BinaryField.Default_char
,BinaryField.Default_double
,BinaryField.Default_float
,BinaryField.Default_int
,BinaryField.Default_long
,BinaryField.Default_short
,BinaryField.DefaultReference
public interface BinaryField<T> extends PersistenceTypeDefinitionMemberFieldGeneric
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BinaryField.Abstract<T>
static class
BinaryField.Default_boolean<T>
static class
BinaryField.Default_byte<T>
static class
BinaryField.Default_char<T>
static class
BinaryField.Default_double<T>
static class
BinaryField.Default_float<T>
static class
BinaryField.Default_int<T>
static class
BinaryField.Default_long<T>
static class
BinaryField.Default_short<T>
static class
BinaryField.DefaultReference<T,R>
static interface
BinaryField.Defaults
static interface
BinaryField.Initializable<T>
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
PersistenceTypeDescriptionMember.IdentityHashEqualator
-
Method Summary
Modifier and Type Method Description long
calculateBinaryLength(T instance)
boolean
canSet()
default BinaryField<T>
copyForName(String name)
BinaryField<T>
copyForName(String qualifier, String name)
default <L extends PersistenceReferenceLoader>
LiterateLoadableReferences(Binary data, L loader)
default <F extends PersistenceFunction>
FiterateReferences(Object instance, F iterator)
String
name()
The simple or "primary" name of the member, if applicable.default boolean
read_boolean(Binary data)
default byte
read_byte(Binary data)
default char
read_char(Binary data)
default double
read_double(Binary data)
default float
read_float(Binary data)
default int
read_int(Binary data)
default long
read_long(Binary data)
default short
read_short(Binary data)
default Object
readReference(Binary data, PersistenceLoadHandler handler)
void
setToInstance(T instance, Binary data, PersistenceLoadHandler handler)
void
storeFromInstance(T instance, Binary data, PersistenceStoreHandler<Binary> handler)
Class<?>
type()
void
validateState(T instance, Binary data, PersistenceLoadHandler handler)
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinitionMember
runtimeQualifier
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinitionMemberField
field
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMember
assembleTypeDescription, createDefinitionMember, equalsDescription, equalsStructure, hasReferences, identifier, isEnumConstant, isFixedLength, isIdentical, isPrimitive, isPrimitiveDefinition, isReference, isValidPersistentLength, isVariableLength, persistentMaximumLength, persistentMinimumLength, validatePersistentLength
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescriptionMemberField
isInstanceMember, qualifier, typeName
-
Method Details
-
type
Class<?> type()- Specified by:
type
in interfacePersistenceTypeDefinitionMember
- Returns:
- the runtime type used by this description member, if possible. Otherwise
null
.
-
name
String 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
- Specified by:
name
in interfacePersistenceTypeDescriptionMemberField
- Returns:
- the member's simple name.
-
copyForName
- Specified by:
copyForName
in interfacePersistenceTypeDefinitionMemberFieldGeneric
-
copyForName
- Specified by:
copyForName
in interfacePersistenceTypeDefinitionMemberFieldGeneric
-
storeFromInstance
-
setToInstance
-
validateState
-
canSet
boolean canSet() -
iterateReferences
-
iterateLoadableReferences
-
calculateBinaryLength
-
read_byte
-
read_boolean
-
read_short
-
read_char
-
read_int
-
read_float
-
read_long
-
read_double
-
readReference
-