Class ComponentInfo

java.lang.Object
org.tentackle.wurblet.ComponentInfo

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

    • ComponentInfo

      public ComponentInfo(ModelWurblet wurblet, 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 Details

    • getJoinedEntity

      public 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 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 String getRootIdClassName()
      Gets the implementing classname holding the root id.
      Returns:
      the class name
    • getRootIdColumnName

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