Uses of Class
io.objectbox.relation.RelationInfo
-
Packages that use RelationInfo Package Description io.objectbox ObjectBox is an an easy to use, object-oriented lightweight database and a full alternative to SQLite.io.objectbox.query io.objectbox.relation -
-
Uses of RelationInfo in io.objectbox
Methods in io.objectbox with parameters of type RelationInfo Modifier and Type Method Description java.util.List<T>Box. 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.java.util.List<T>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 RelationInfo Modifier and Type Field Description RelationInfo<S,T>EagerRelation. relationInfoprivate RelationInfo<T,?>RelationCountCondition. relationInfoMethods in io.objectbox.query with parameters of type RelationInfo Modifier and Type Method Description <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<T>QueryBuilder. eager(int limit, RelationInfo relationInfo, RelationInfo... more)LikeQueryBuilder.eager(RelationInfo, RelationInfo[]), but limits eager loading to the given count.QueryBuilder<T>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<T>QueryBuilder. relationCount(RelationInfo<T,?> relationInfo, int relationCount)Note: New code should use thenew query API.Constructors in io.objectbox.query with parameters of type RelationInfo Constructor Description 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 RelationInfo Modifier and Type Field Description private RelationInfo<java.lang.Object,TARGET>ToMany. relationInfoprivate RelationInfo<java.lang.Object,TARGET>ToOne. relationInfoConstructors in io.objectbox.relation with parameters of type RelationInfo Constructor Description ToMany(java.lang.Object sourceEntity, RelationInfo<?,TARGET> relationInfo)ToOne(java.lang.Object sourceEntity, RelationInfo<?,TARGET> relationInfo)In Java, the constructor call is generated by the ObjectBox plugin.
-