Uses of Class
io.objectbox.relation.RelationInfo
Packages that use RelationInfo
Package
Description
ObjectBox is an an easy to use, object-oriented lightweight database and a full alternative to SQLite.
-
Uses of RelationInfo in io.objectbox
Methods in io.objectbox with parameters of type RelationInfoModifier and TypeMethodDescriptionBox.getRelationBacklinkEntities(RelationInfo<T, ?> relationInfo, long id) Given a ToMany relation and the ID of a target entity gets all source entities pointing to this target entity, for examplecustomerBox.getRelationEntities(Customer_.orders, order.getId()).long[]Box.getRelationBacklinkIds(RelationInfo<T, ?> relationInfo, long id) LikeBox.getRelationBacklinkEntities(RelationInfo, long), but only returns the IDs of the source entities.Box.getRelationEntities(RelationInfo<?, T> relationInfo, long id) Given a ToMany relation and the ID of a source entity gets the target entities of the relation from their box, for exampleorderBox.getRelationEntities(Customer_.orders, customer.getId()).long[]Box.getRelationIds(RelationInfo<?, T> relationInfo, long id) LikeBox.getRelationEntities(RelationInfo, long), but only returns the IDs of the target entities. -
Uses of RelationInfo in io.objectbox.query
Fields in io.objectbox.query declared as RelationInfoModifier and TypeFieldDescriptionfinal RelationInfo<S, T> EagerRelation.relationInfoprivate final RelationInfo<T, ?> RelationCountCondition.relationInfoMethods in io.objectbox.query with parameters of type RelationInfoModifier and TypeMethodDescription<TARGET> QueryBuilder<TARGET> QueryBuilder.backlink(RelationInfo<TARGET, ?> relationInfo) Creates a backlink (reversed link) to another entity, for which you also can describe conditions using the returned builder.QueryBuilder.eager(int limit, RelationInfo relationInfo, RelationInfo... more) LikeQueryBuilder.eager(RelationInfo, RelationInfo[]), but limits eager loading to the given count.QueryBuilder.eager(RelationInfo relationInfo, RelationInfo... more) Specifies relations that should be resolved eagerly.private <TARGET> QueryBuilder<TARGET> QueryBuilder.link(RelationInfo<?, ?> relationInfo, EntityInfo<?> relationOwner, EntityInfo<?> target, boolean backlink) <TARGET> QueryBuilder<TARGET> QueryBuilder.link(RelationInfo<?, TARGET> relationInfo) Creates a link to another entity, for which you also can describe conditions using the returned builder.QueryBuilder.relationCount(RelationInfo<T, ?> relationInfo, int relationCount) Note: New code should use thenew query API.Constructors in io.objectbox.query with parameters of type RelationInfoModifierConstructorDescription(package private)EagerRelation(int limit, RelationInfo<S, T> relationInfo) RelationCountCondition(RelationInfo<T, ?> relationInfo, int relationCount) -
Uses of RelationInfo in io.objectbox.relation
Fields in io.objectbox.relation declared as RelationInfoModifier and TypeFieldDescriptionprivate final RelationInfo<Object, TARGET> ToMany.relationInfoprivate final RelationInfo<Object, TARGET> ToOne.relationInfoConstructors in io.objectbox.relation with parameters of type RelationInfoModifierConstructorDescriptionToMany(Object sourceEntity, RelationInfo<?, TARGET> relationInfo) ToOne(Object sourceEntity, RelationInfo<?, TARGET> relationInfo) In Java, the constructor call is generated by the ObjectBox plugin.