Interface RelationQuery

All Superinterfaces:
Query
All Known Implementing Classes:
AbstractRelationQueryAdapter, ToManyRelationQueryAdapter, ToOneRelationQueryAdapter

public interface RelationQuery extends Query
A specialised query variant used by the Entity.resolve(String) method.
  • Method Details

    • getSource

      Entity getSource()
    • getRelationModel

      RelationModel getRelationModel()
    • execute

      Relation execute()
      Description copied from interface: Query
      Execute the query in Query.Mode.LAZY mode using the default limit.
      Specified by:
      execute in interface Query
      Returns:
      The result of the query. To further process it use the EntityLists class.
    • execute

      Relation execute(Query.Mode mode)
      Description copied from interface: Query
      Execute the query in the specified Query.Mode using the default limit.
      Specified by:
      execute in interface Query
      Parameters:
      mode - The query mode.
      Returns:
      The result of the query.
    • execute

      @Deprecated Relation execute(int limit)
      Deprecated.
      Description copied from interface: Query
      Execute the query using the specified limit in Query.Mode.LAZY mode.
      Specified by:
      execute in interface Query
      Parameters:
      limit - The maximum number of results, see class header (really).
      Returns:
      The result of the query.
    • execute

      @Deprecated Relation execute(int limit, Query.Mode mode)
      Deprecated.
      Description copied from interface: Query
      Execute the query using the specified limit in the specified Query.Mode.
      Specified by:
      execute in interface Query
      Parameters:
      limit - The maximum number of results, see class header (really).
      mode - The mode.
      Returns:
      The result of the query.
    • execute

      Relation execute(Pagination pagination)
      Description copied from interface: Query
      Execute the query using the specified pagination parameters in Query.Mode.LAZY mode.
      Specified by:
      execute in interface Query
      Parameters:
      pagination - The offset and limit of the query.
      Returns:
      The result of the query.
    • execute

      Relation execute(Pagination pagination, Query.Mode mode)
      Description copied from interface: Query
      Execute the query using the specified pagination parameters in the specified Query.Mode.
      Specified by:
      execute in interface Query
      Parameters:
      pagination - The offset and limit of the query.
      mode - The mode.
      Returns:
      The result of the query.