Package org.tentackle.wurblet
Class ComponentInfo
java.lang.Object
org.tentackle.wurblet.ComponentInfo
Describes the join to a component's attribute.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionComponentInfo(ModelWurblet wurblet, Entity joinedEntity) Creates info for a component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the extra classname to be joined by id.
Necessary for multi-table inherited joins if attribute belongs to child class.Gets the entity to join (right side of the join).Gets the implementing classname holding the root id.Gets the column name holding the rootid.booleanReturns whether the joined attribute belongs to another table than that holding the rootid.
-
Constructor Details
-
ComponentInfo
public ComponentInfo(ModelWurblet wurblet, Entity joinedEntity) throws org.wurbelizer.wurbel.WurbelException Creates info for a component.- Parameters:
wurblet- the wurbletjoinedEntity- the entity to join (right side of the join)- Throws:
org.wurbelizer.wurbel.WurbelException- if failed
-
-
Method Details
-
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
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
Gets the implementing classname holding the root id.- Returns:
- the class name
-
getRootIdColumnName
Gets the column name holding the rootid.- Returns:
- the column name
-