Uses of Interface
org.litebridge.tracking.FieldAccessor
Packages that use FieldAccessor
Package
Description
Fluent API for constructing DTO-mapped SQL queries (SELECT statements)
Expressions to select specific expressions from a database
Persistence subsystem; contains classes for saving/updating/deleting DTOs
Litebridge Change Tracker
-
Uses of FieldAccessor in org.litebridge.orm.api.dto
Methods in org.litebridge.orm.api.dto that return FieldAccessorModifier and TypeMethodDescriptionDtoSelectSpec.FieldColumn.fieldAccessor()Returns the value of thefieldAccessorrecord component.Constructors in org.litebridge.orm.api.dto with parameters of type FieldAccessorModifierConstructorDescriptionFieldColumn(FieldAccessor fieldAccessor, Column column) Creates an instance of aFieldColumnrecord class. -
Uses of FieldAccessor in org.litebridge.orm.expression.select
Methods in org.litebridge.orm.expression.select that return FieldAccessorConstructors in org.litebridge.orm.expression.select with parameters of type FieldAccessorModifierConstructorDescriptionSelectFieldSpec(FieldAccessor field, Column column) Creates a new expression spec that selects a DTO field. -
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.@Nullable FieldAccessorOrmTable.fieldForColumnNameOrNull(String columnName) Get the field accessor for the specified column name, or null if not found.OrmTable.getFieldForColumnName(String columnName) Get the field accessor for the specified column name.MappedOneToMany.mappedByField()Returns the value of themappedByFieldrecord component.Methods in org.litebridge.orm.persistence that return types with arguments of type FieldAccessorModifier and TypeMethodDescriptionOrmTable.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.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.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.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 joinTable, String joinColumn, FieldAccessor collection, ConcurrentLazy<OrmTable> targetTable, String inverseJoinColumn) 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.OrmTable(Class<?> dtoClass, TableMetaData metaData, Map<FieldAccessor, MappedFieldTarget> fieldTargetMap, 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.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).