Uses of Interface
org.litebridge.tracking.FieldAccessor
Packages that use FieldAccessor
Package
Description
Persistence subsystem; contains classes for saving/updating/deleting DTOs
Litebridge Change Tracker
-
Uses of FieldAccessor in org.litebridge.orm.persistence
Methods in org.litebridge.orm.persistence that return FieldAccessorModifier and TypeMethodDescriptionMappedManyToMany.collection()Returns the value of thecollectionrecord component.MappedOneToMany.collection()Returns the value of thecollectionrecord component.DtoConstructor.DtoDependency.field()Returns the value of thefieldrecord component.DtoConstructor.FieldAccessorValue.field()Returns the value of thefieldrecord component.OrmTable.fieldForColumnName(String columnName) Get the field accessor for the specified column name.@Nullable FieldAccessorOrmTable.fieldForColumnNameOrNull(String columnName) Get the field accessor for the specified column name, or null if not found.MappedOneToMany.mappedByField()Returns the value of themappedByFieldrecord component.Methods in org.litebridge.orm.persistence that return types with arguments of type FieldAccessorModifier and TypeMethodDescriptionDtoConstructor.MappingInfo.canonicalConstructorFieldAccessors()Returns the value of thecanonicalConstructorFieldAccessorsrecord component.OrmTable.fieldAcessorStream()Get a stream of field accessors for the table.@Nullable List<FieldAccessor> OrmTable.getOneToManyReverseMappings()Get the one-to-many reverse mappings for the table.TableMapper.MappedTable.manyToOneDependencies()Returns the value of themanyToOneDependenciesrecord component.OrmTable.mappedFieldTargets()Get the mapped field targets.OrmTable.primaryKeyFields()Returns the primary key field accessors for this table.Methods in org.litebridge.orm.persistence with parameters of type FieldAccessorModifier and TypeMethodDescriptionvoidOrmTable.addOneToManyReverseMapping(FieldAccessor fieldAccessor) Add a one-to-many reverse mapping for the specified field.OrmTable.columnMetaDataForField(FieldAccessor fieldAccessor) Get the column metadata for the specified field accessor.OrmTable.getManyToManyMappingForField(FieldAccessor field) Get the many-to-many mapping for the specified field.OrmTable.getOneToManyMappingForField(FieldAccessor field) Get the one-to-many mapping for the specified field.OrmTable.mappedFieldTargetForField(FieldAccessor fieldAccessor) Get the mapped field target for the specified field accessor, throwing an exception if not found.@Nullable MappedFieldTargetOrmTable.mappedFieldTargetForFieldOrNull(FieldAccessor fieldAccessor) Get the mapped field target for the specified field accessor, ornullif not found.Constructors in org.litebridge.orm.persistence with parameters of type FieldAccessorModifierConstructorDescriptionDtoDependency(FieldAccessor field, Class<?> targetDtoClass, List<DtoConstructor.FieldAccessorValue> targetPrimaryKey) Creates an instance of aDtoDependencyrecord class.FieldAccessorValue(FieldAccessor field, @Nullable Object value) Creates an instance of aFieldAccessorValuerecord class.MappedManyToMany(OrmTable joinOrmTable, String[] joinColumns, FieldAccessor collection, Supplier<OrmTable> targetOrmTable, String[] inverseJoinColumns) Creates an instance of aMappedManyToManyrecord class.MappedOneToMany(FieldAccessor mappedByField, FieldAccessor collection) Creates an instance of aMappedOneToManyrecord class.Constructor parameters in org.litebridge.orm.persistence with type arguments of type FieldAccessorModifierConstructorDescriptionMappedTable(OrmTable ormTable, List<FieldAccessor> manyToOneDependencies) Creates an instance of aMappedTablerecord class.MappingInfo(MethodHandle constructor, boolean defaultConstructorUsed, List<FieldAccessor> canonicalConstructorFieldAccessors) Creates an instance of aMappingInforecord class.OrmTable(Class<?> dtoClass, @Nullable Class<?> contextDtoClass, TableMetaData metaData, Map<FieldAccessor, MappedFieldTarget> fieldAccessorTargetMap, ChangeTracker changeTracker, ClassFieldAccessorCache classFieldAccessorCache) Constructs a newOrmTableinstance, initializing table metadata, field-to-column mappings, and a change tracker for managing object state.OrmTable(Class<?> dtoClass, TableMetaData metaData, Map<FieldAccessor, MappedFieldTarget> fieldAccessorTargetMap, ChangeTracker changeTracker, ClassFieldAccessorCache classFieldAccessorCache) Constructs a newOrmTableinstance, initializing table metadata, field-to-column mappings, and a change tracker for managing object state. -
Uses of FieldAccessor in org.litebridge.tracking
Classes in org.litebridge.tracking that implement FieldAccessorModifier and TypeClassDescriptionfinal classDirect field accessFieldAccessorimplementation using Java 9'sVarHandle.final classRepresents a chain ofFieldAccessorinstances, allowing the traversal and manipulation of nested fields of a data transfer object (DTO).final classProperty-basedFieldAccessorimplementation.Methods in org.litebridge.tracking that return FieldAccessorModifier and TypeMethodDescriptionClassFieldAccessorCache.fieldAccessor(Class<?> dtoClass, String fieldName) Retrieves aFieldAccessorfor the specified field name or path.@Nullable FieldAccessorClassFieldAccessorCache.fieldAccessorOrNull(Class<?> dtoClass, String field) Retrieves aFieldAccessorfor the specified field path, ornullif it doesn't exist.ClassFieldAccessorCache.fieldAccessorOrThrow(Class<?> dtoClass, String field) Retrieves aFieldAccessorfor the specified field path, or throws an exception if it doesn't exist.ClassFieldAccessorCache.propertyAccessor(Class<?> dtoClass, String propertyName) Retrieves a property accessor for the specified property name.Methods in org.litebridge.tracking that return types with arguments of type FieldAccessorModifier and TypeMethodDescriptionClassFieldAccessorCache.fieldAccessors(Class<?> dtoClass) Retrieves all field accessors for the specified class.FieldAccessorChain.fieldAccessors()Returns the field accessors.Methods in org.litebridge.tracking with parameters of type FieldAccessorModifier and TypeMethodDescriptionFieldAccessorChain.add(FieldAccessor fieldAccessor) Adds a field accessor to the chain.booleanFieldAccessorChain.isLast(FieldAccessor fieldAccessor) Returnstrueif the given field accessor is the last one in the chain.booleanClassFieldAccessorCache.isNestedDtoField(Class<?> dtoClass, FieldAccessor field) Determines if a field represents a nested DTO.Method parameters in org.litebridge.tracking with type arguments of type FieldAccessorModifier and TypeMethodDescription<DTO> DTOChangeTracker.trackDtoFields(DTO dto, Set<FieldAccessor> trackedFields) Tracks the specified fields of a given Data Transfer Object (DTO) for detecting changes.<DTO> DTOChangeTracker.trackDtoFields(DTO dto, Set<FieldAccessor> trackedFields, boolean snapshotEmpty) Tracks the fields of the given Data Transfer Object (DTO) for detecting changes.Constructors in org.litebridge.tracking with parameters of type FieldAccessorModifierConstructorDescriptionFieldAccessorChain(FieldAccessor parent, String fieldPath, ClassFieldAccessorCache classFieldAccessorCache) Constructs a newFieldAccessorChain.Constructor parameters in org.litebridge.tracking with type arguments of type FieldAccessorModifierConstructorDescriptionTrackedDto(DTO dto, Collection<FieldAccessor> fields, ClassFieldAccessorCache classFieldAccessorCache, Consumer<Object> trackDtoCallback) Construct aTrackedDtoinstance that wraps and tracks a given data transfer object (DTO).