com.semarchy.mdm.runtime.model.dataaccess
Class DelegatingView

java.lang.Object
  extended by com.semarchy.mdm.runtime.model.dataaccess.DelegatingView
All Implemented Interfaces:
IView

public class DelegatingView
extends Object
implements IView

Delegating View allowing to specialize easily certain part of a view

Author:
sarod

Constructor Summary
DelegatingView(IView pView)
           
 
Method Summary
 boolean containsAttribute(String pName)
           
 boolean equals(Object pObj)
           
 IViewAttribute<? extends IAttribute> getAttribute(String pName)
           
 List<IViewAttribute<? extends IAttribute>> getAttributes()
          Return the list of IViewAttribute of this view.
 String getClassNameExpression()
           
 List<OrderByExpression> getDefaultOrderBy()
           
 IView getDelegateView()
           
 List<IViewAttribute<?>> getDNAttributes()
           
 String getDNSeparator()
           
 IEntity getEntity()
           
 FromClause getFromClause()
           
 ILineageNode getLineageNode(String pName)
           
 List<ILineageNode> getLineageNodes()
           
 IManyToOneNode getManyToOneNode(String pName)
          Get the ManyToOneNode by name.
 List<IManyToOneNode> getManyToOneNodes()
          Obtain the list of outgoing ManyToOne navigation nodes
 INavigationNode getNavigationNode(String pNavigationNodeName)
           
 Binding getObjectByIDBinding()
           
 IOneToManyNode getOneToManyNode(String pName)
          Get the IOneToManyNode by name.
 List<IOneToManyNode> getOneToManyNodes()
           
 String getViewName()
           
 String getViewType()
           
 String getWhereClause()
           
 int hashCode()
           
 boolean isStandard()
          Indicates whether view is standard (can be used with standard IDataManager.
 boolean isSubViewOf(IView pParentView)
          Return true if this view and otherView have the same view type and if the IEntity of otherView is equals or parent of the entity of this view
static IView overrideWhereClause(IView baseView, String whereClause)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingView

public DelegatingView(IView pView)
Method Detail

overrideWhereClause

public static IView overrideWhereClause(IView baseView,
                                        String whereClause)

getViewName

public String getViewName()
Specified by:
getViewName in interface IView
Returns:
See Also:
IView.getViewName()

getViewType

public String getViewType()
Specified by:
getViewType in interface IView
Returns:
See Also:
IView.getViewType()

getFromClause

public FromClause getFromClause()
Specified by:
getFromClause in interface IView
Returns:
See Also:
IView.getFromClause()

getWhereClause

public String getWhereClause()
Specified by:
getWhereClause in interface IView
Returns:
See Also:
IView.getWhereClause()

getAttributes

public List<IViewAttribute<? extends IAttribute>> getAttributes()
Description copied from interface: IView
Return the list of IViewAttribute of this view. The list order is defined by the integration template however it's a good practice that the template tries to keep as much as possible the order defined in design time.

Specified by:
getAttributes in interface IView
Returns:
See Also:
IView.getAttributes()

getAttribute

public IViewAttribute<? extends IAttribute> getAttribute(String pName)
                                                  throws NoSuchViewAttributeException
Specified by:
getAttribute in interface IView
Parameters:
pName -
Returns:
Throws:
NoSuchViewAttributeException
See Also:
IView.getAttribute(java.lang.String)

getManyToOneNodes

public List<IManyToOneNode> getManyToOneNodes()
Description copied from interface: IView
Obtain the list of outgoing ManyToOne navigation nodes

Specified by:
getManyToOneNodes in interface IView
Returns:
See Also:
IView.getManyToOneNodes()

getManyToOneNode

public IManyToOneNode getManyToOneNode(String pName)
                                throws NoSuchNavigationNodeException
Description copied from interface: IView
Get the ManyToOneNode by name.

Specified by:
getManyToOneNode in interface IView
Parameters:
pName -
Returns:
Throws:
NoSuchNavigationNodeException
See Also:
IView.getManyToOneNode(java.lang.String)

getOneToManyNodes

public List<IOneToManyNode> getOneToManyNodes()
Specified by:
getOneToManyNodes in interface IView
Returns:
See Also:
IView.getOneToManyNodes()

getOneToManyNode

public IOneToManyNode getOneToManyNode(String pName)
                                throws NoSuchNavigationNodeException
Description copied from interface: IView
Get the IOneToManyNode by name.

Specified by:
getOneToManyNode in interface IView
Parameters:
pName -
Returns:
Throws:
NoSuchNavigationNodeException
See Also:
IView.getOneToManyNode(java.lang.String)

getDNAttributes

public List<IViewAttribute<?>> getDNAttributes()
Specified by:
getDNAttributes in interface IView
Returns:
See Also:
IView.getDNAttributes()

getDNSeparator

public String getDNSeparator()
Specified by:
getDNSeparator in interface IView
Returns:
See Also:
IView.getDNSeparator()

getObjectByIDBinding

public Binding getObjectByIDBinding()
Specified by:
getObjectByIDBinding in interface IView
Returns:
See Also:
IView.getObjectByIDBinding()

getDefaultOrderBy

public List<OrderByExpression> getDefaultOrderBy()
Specified by:
getDefaultOrderBy in interface IView
Returns:
See Also:
IView.getDefaultOrderBy()

getClassNameExpression

public String getClassNameExpression()
Specified by:
getClassNameExpression in interface IView
Returns:
See Also:
IView.getClassNameExpression()

getLineageNodes

public List<ILineageNode> getLineageNodes()
Specified by:
getLineageNodes in interface IView
Returns:
See Also:
IView.getLineageNodes()

getLineageNode

public ILineageNode getLineageNode(String pName)
                            throws NoSuchNavigationNodeException
Specified by:
getLineageNode in interface IView
Parameters:
pName -
Returns:
Throws:
NoSuchNavigationNodeException
See Also:
IView.getLineageNode(java.lang.String)

equals

public boolean equals(Object pObj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getEntity

public IEntity getEntity()
Specified by:
getEntity in interface IView

getDelegateView

public IView getDelegateView()

isStandard

public boolean isStandard()
Description copied from interface: IView
Indicates whether view is standard (can be used with standard IDataManager.

Specified by:
isStandard in interface IView
Returns:

isSubViewOf

public boolean isSubViewOf(IView pParentView)
Description copied from interface: IView
Return true if this view and otherView have the same view type and if the IEntity of otherView is equals or parent of the entity of this view

Specified by:
isSubViewOf in interface IView
Returns:

getNavigationNode

public INavigationNode getNavigationNode(String pNavigationNodeName)
Specified by:
getNavigationNode in interface IView

containsAttribute

public boolean containsAttribute(String pName)
Specified by:
containsAttribute in interface IView


Copyright © 2015. All Rights Reserved.