Class RelationDef

java.lang.Object
ch.tocco.nice2.persist.core.api.qb2.RelationDef

public final class RelationDef extends Object
  • Constructor Details Link icon

    • RelationDef Link icon

      public RelationDef(String relationPath)
  • Method Details Link icon

    • getPath Link icon

      public String getPath()
    • is Link icon

      public Condition is(PrimaryKey key)
      Creates a condition that checks whether this relation points to the entity specified by key.
    • isOneKey Link icon

      public Condition isOneKey(Iterable<PrimaryKey> keys)
      Creates a condition that checks whether the this relation points to at least one of the entities specified by keys.
    • isOneKey Link icon

      public Condition isOneKey(PrimaryKey... keys)
      Creates a condition that checks whether the this relation points to at least one of the entities specified by keys.
    • isAllKeys Link icon

      public Condition isAllKeys(Iterable<PrimaryKey> keys)
      Creates a condition that checks whether the this relation points to all entities given by keys.
    • isAllKeys Link icon

      public Condition isAllKeys(PrimaryKey... keys)
      Creates a condition that checks whether the this relation points to all entities given by keys.
    • isNotKeys Link icon

      public Condition isNotKeys(Iterable<PrimaryKey> keys)
    • isNot Link icon

      public Condition isNot(PrimaryKey... keys)
    • is Link icon

      public Condition is(Entity entity)
      Creates a condition that checks whether this relation points to the entity specified by entity.
    • isOne Link icon

      public Condition isOne(Iterable<Entity> entities)
      Creates a condition that checks whether the this relation points to at least one of the entities specified by entities.
    • isOne Link icon

      public Condition isOne(Entity... entities)
      Creates a condition that checks whether the this relation points to at least one of the entities specified by entities.
    • isAll Link icon

      public Condition isAll(Iterable<Entity> entities)
      Creates a condition that checks whether the this relation points to all entities given by entities.
    • isAll Link icon

      public Condition isAll(Entity... entities)
      Creates a condition that checks whether the this relation points to all entities given by entities.
    • isNot Link icon

      public Condition isNot(Iterable<Entity> entities)
    • isNot Link icon

      public Condition isNot(Entity... entities)
    • isOneFrom Link icon

      public Condition isOneFrom(Iterable<? extends Entity> entities)
      Creates a condition that checks whether the this relation points to at least one of the entities specified by entities.
    • isAllFrom Link icon

      public Condition isAllFrom(Iterable<? extends Entity> entities)
      Creates a condition that checks whether the this relation points to all entities given by entities.
    • isNotFrom Link icon

      public Condition isNotFrom(Iterable<? extends Entity> entities)
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object