com.semarchy.mdm.runtime.model.dataaccess
Interface IViewAttribute<T extends IAttribute>

All Known Subinterfaces:
IAtomicViewAttribute, IBuiltInViewAttribute, IComplexAtomicViewAttribute, IComplexViewAttribute, IForeignDNViewAttribute, IForeignViewAttribute, IPkViewAttribute, IViewExprAttribute<T>

public interface IViewAttribute<T extends IAttribute>


Method Summary
 T getAttribute()
           
 DataTypeInfo getDataTypeInfo()
          Return the complete type information
 List<IViewAttribute<? extends IAttribute>> getExpandedChildren()
          Return the default list of children that will be displayed when this view attribute is expanded
 Integer getLength()
          Deprecated. use getDataTypeInfo() instead
 LogicalDataType getLogicalType()
          Deprecated. use getDataTypeInfo() instead
 String getName()
           
 Integer getPrecision()
          Deprecated. use getDataTypeInfo() instead
 Object getProp(String pPropName)
           
 Set<String> getPropNames()
           
 Integer getScale()
          Deprecated. use getDataTypeInfo() instead
 String getSimpleName()
           
 IView getView()
           
 boolean isDNAttributeCandidate()
           
 boolean isWritable(boolean pNewRecord)
          Indicates whether this attribute is writable by users.
 

Method Detail

getView

IView getView()
Returns:
the owning view

getName

String getName()
Returns:
the unique name of this attribute within the owning view

getSimpleName

String getSimpleName()
Returns:
the simple name of the attribute without any qualified prefixes

getAttribute

T getAttribute()
Returns:
the underlying logical attribute referenced by this view attribute

isDNAttributeCandidate

boolean isDNAttributeCandidate()
Returns:
whether view attribute should be part of a display name if its IAttribute is itself part of the entity's display name attributes as defined by IEntity.getDNAttributes()

getPropNames

Set<String> getPropNames()
Returns:
the set of property names defined on this view attribute

getProp

Object getProp(String pPropName)
Parameters:
pPropName -
Returns:
the value of the property or null if property is not defined

getLogicalType

LogicalDataType getLogicalType()
Deprecated. use getDataTypeInfo() instead

Returns:
the runtime logical datat type of this view attribute

getLength

Integer getLength()
Deprecated. use getDataTypeInfo() instead

Returns:
the logical length of this view attribute

getPrecision

Integer getPrecision()
Deprecated. use getDataTypeInfo() instead

Returns:
the logical precision of this view attribute

getScale

Integer getScale()
Deprecated. use getDataTypeInfo() instead

Returns:
the logical scale of this view attribute

getExpandedChildren

List<IViewAttribute<? extends IAttribute>> getExpandedChildren()
Return the default list of children that will be displayed when this view attribute is expanded

Returns:

isWritable

boolean isWritable(boolean pNewRecord)
Indicates whether this attribute is writable by users. (Regardless of defined security and privileges)

Parameters:
pNewRecord -

getDataTypeInfo

DataTypeInfo getDataTypeInfo()
Return the complete type information

Returns:


Copyright © 2015. All Rights Reserved.