Class ComponentInfo


  • public class ComponentInfo
    extends java.lang.Object
    Describes the join to a component's attribute.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentInfo​(DbModelWurblet wurblet, org.tentackle.model.Entity joinedEntity)
      Creates info for a component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExtraClassName()
      Returns the extra classname to be joined by id.
      Necessary for multi-table inherited joins if attribute belongs to child class.
      org.tentackle.model.Entity getJoinedEntity()
      Gets the entity to join (right side of the join).
      java.lang.String getRootIdClassName()
      Gets the implementing classname holding the root id.
      java.lang.String getRootIdColumnName()
      Gets the column name holding the rootid.
      boolean isExtraJoinNecessary()
      Returns whether the joined attribute belongs to another table than that holding the rootid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentInfo

        public ComponentInfo​(DbModelWurblet wurblet,
                             org.tentackle.model.Entity joinedEntity)
                      throws org.wurbelizer.wurbel.WurbelException
        Creates info for a component.
        Parameters:
        wurblet - the wurblet
        joinedEntity - the entity to join (right side of the join)
        Throws:
        org.wurbelizer.wurbel.WurbelException - if failed
    • Method Detail

      • getJoinedEntity

        public org.tentackle.model.Entity getJoinedEntity()
        Gets the entity to join (right side of the join).
        Returns:
        the joined entity
      • isExtraJoinNecessary

        public boolean isExtraJoinNecessary()
        Returns whether the joined attribute belongs to another table than that holding the rootid.
        Returns:
        true if extra join needed
      • getExtraClassName

        public java.lang.String getExtraClassName()
        Returns the extra classname to be joined by id.
        Necessary for multi-table inherited joins if attribute belongs to child class.
        Returns:
        the extra classname
      • getRootIdClassName

        public java.lang.String getRootIdClassName()
        Gets the implementing classname holding the root id.
        Returns:
        the class name
      • getRootIdColumnName

        public java.lang.String getRootIdColumnName()
        Gets the column name holding the rootid.
        Returns:
        the column name