com.semarchy.mdm.runtime.data
Interface IEntityRow

All Superinterfaces:
IDataRow

public interface IEntityRow
extends IDataRow


Method Summary
 IEntity getEntity()
          The actual IEntity represented by this row
 Object getValue(IViewAttribute<? extends IAttribute> pViewAttribute)
          Get the value for a given IViewAttribute
 boolean isNew()
          Returns true if the row as been created and not yet persisted to MDM.
 void setReference(IManyToOneNode pNavNode, IEntityRow pRow)
           
 void setReference(String pManyToOneNodeName, IEntityRow pRow)
          Set the IEntityRow referenced through a IManyToOneNode.
 void setValue(IViewAttribute<? extends IAttribute> pViewAttribute, Object pValue)
          Change the value of the attribute.
 void setValue(String pAttributeName, Object pValue)
          Shortcut to: row.setValue(row.getView().getAttribute(pAttributeName), value);
 
Methods inherited from interface com.semarchy.mdm.runtime.data.IDataRow
contains, getSelectExpressions, getValue, getView, valueMap
 

Method Detail

getEntity

IEntity getEntity()
The actual IEntity represented by this row

Returns:

setValue

void setValue(IViewAttribute<? extends IAttribute> pViewAttribute,
              Object pValue)
Change the value of the attribute.

Parameters:
pViewAttribute - The attribute to modify IViewAttribute.isWritable(boolean) has to be true for this row
pValue -

setValue

void setValue(String pAttributeName,
              Object pValue)
Shortcut to: row.setValue(row.getView().getAttribute(pAttributeName), value);

Parameters:
pAttributeName -
pValue -

setReference

void setReference(IManyToOneNode pNavNode,
                  IEntityRow pRow)
Parameters:
pNavNode -
pRow -

setReference

void setReference(String pManyToOneNodeName,
                  IEntityRow pRow)
Set the IEntityRow referenced through a IManyToOneNode.

Parameters:
pManyToOneNodeName - the name of the many to one node name (this is also the name of the IForeignAttribute)
pRow -

getValue

Object getValue(IViewAttribute<? extends IAttribute> pViewAttribute)
Get the value for a given IViewAttribute

Parameters:
pViewAttribute -
Returns:

isNew

boolean isNew()
Returns true if the row as been created and not yet persisted to MDM.

Returns:


Copyright © 2015. All Rights Reserved.