Class ToManyBase

  • Direct Known Subclasses:
    ToMany, ToManyWithJoinEntity

    public abstract class ToManyBase
    extends java.lang.Object
    Base class for to-many relationship from source entities to target entities.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.lang.String getOrder()  
      java.lang.String getOrderSpec()
      order spec to be used in generated @OrderBy annotation
      Entity getSourceEntity()  
      Entity getTargetEntity()  
      void orderAsc​(Property... properties)
      Property of target entity used for ascending order.
      void orderDesc​(Property... properties)
      Property of target entity used for descending order.
      void setName​(java.lang.String name)
      Sets the name of the relation, which is used as the property name in the entity (the source entity owning the to-many relationship).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sourceEntity

        protected final Entity sourceEntity
      • targetEntity

        protected final Entity targetEntity
    • Constructor Detail

      • ToManyBase

        public ToManyBase​(Schema schema,
                          Entity sourceEntity,
                          Entity targetEntity)
    • Method Detail

      • getSourceEntity

        public Entity getSourceEntity()
      • getTargetEntity

        public Entity getTargetEntity()
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the relation, which is used as the property name in the entity (the source entity owning the to-many relationship).
      • orderAsc

        public void orderAsc​(Property... properties)
        Property of target entity used for ascending order.
      • orderDesc

        public void orderDesc​(Property... properties)
        Property of target entity used for descending order.
      • getOrder

        public java.lang.String getOrder()
      • getOrderSpec

        public java.lang.String getOrderSpec()
        order spec to be used in generated @OrderBy annotation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object