Class RelationDef

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

public final class RelationDef extends Object
  • Constructor Details

    • RelationDef

      public RelationDef(String relationPath)
  • Method Details

    • getPath

      public String getPath()
    • is

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

      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

      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

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

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

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

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

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

      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

      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

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

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

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

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

      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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object