Package org.tentackle.persist.wurblet
Class ComponentInfo
- java.lang.Object
-
- org.tentackle.persist.wurblet.ComponentInfo
-
public class ComponentInfo extends java.lang.ObjectDescribes 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.StringgetExtraClassName()Returns the extra classname to be joined by id.
Necessary for multi-table inherited joins if attribute belongs to child class.org.tentackle.model.EntitygetJoinedEntity()Gets the entity to join (right side of the join).java.lang.StringgetRootIdClassName()Gets the implementing classname holding the root id.java.lang.StringgetRootIdColumnName()Gets the column name holding the rootid.booleanisExtraJoinNecessary()Returns whether the joined attribute belongs to another table than that holding the rootid.
-
-
-
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 wurbletjoinedEntity- 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
-
-